Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-15 23:59:03.332146
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15062025
  port_id : 24017303
  datou_current_id : 3122668
in upload_from_sqlite, uploading in 24017303
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250517 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250518 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250519 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250520 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250521 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250522 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250523 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250524 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250525 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250526 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250527 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250528 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250529 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250530 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250531 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250601 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250602 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250603 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250604 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250605 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250606 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250607 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250608 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250609 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250610 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250611 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250612 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250613 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250614 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250615 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_44_10636.jpg', 2), ('/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_24_9626.jpg', 2), ('/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_14_10651.jpg', 2), ('/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_44_10635.jpg', 2), ('/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_33_9626.jpg', 2), ('/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_14_10654.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_44_10636.jpg', '/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_24_9626.jpg', '/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_14_10651.jpg', '/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_44_10635.jpg', '/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_33_9626.jpg', '/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_14_10654.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3122668&datou=0
/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_44_10636.jpg
/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_24_9626.jpg
/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_14_10651.jpg
/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_44_10635.jpg
/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_33_9626.jpg
/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_14_10654.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 3.368135452270508 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3122668&datou=0 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bf22be0>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-15 23:59:17.531117
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15062025
  port_id : 24017303
  datou_current_id : 3122668
in upload_from_sqlite, uploading in 24017303
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250517 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250518 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250519 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250520 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250521 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250522 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250523 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250524 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250525 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250526 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250527 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250528 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250529 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250530 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250531 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250601 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250602 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250603 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250604 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250605 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250606 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250607 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250608 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250609 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250610 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250611 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250612 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250613 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250614 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250615 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_44_10636.jpg', 2), ('/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_24_9626.jpg', 2), ('/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_14_10651.jpg', 2), ('/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_44_10635.jpg', 2), ('/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_33_9626.jpg', 2), ('/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_14_10654.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_44_10636.jpg', '/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_24_9626.jpg', '/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_14_10651.jpg', '/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_44_10635.jpg', '/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_33_9626.jpg', '/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_14_10654.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3122668&datou=0
/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_44_10636.jpg
/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_24_9626.jpg
/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_14_10651.jpg
/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_44_10635.jpg
/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_33_9626.jpg
/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_14_10654.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 1.662536859512329 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3122668&datou=0 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa398cbe0>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-15 23:59:32.464482
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15062025
  port_id : 24017303
  datou_current_id : 3122668
in upload_from_sqlite, uploading in 24017303
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250517 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250518 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250519 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250520 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250521 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250522 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250523 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250524 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250525 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250526 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250527 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250528 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250529 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250530 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250531 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250601 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250602 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250603 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250604 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250605 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250606 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250607 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250608 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250609 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250610 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250611 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250612 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250613 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250614 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250615 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_44_10636.jpg', 2), ('/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_24_9626.jpg', 2), ('/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_14_10651.jpg', 2), ('/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_44_10635.jpg', 2), ('/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_33_9626.jpg', 2), ('/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_14_10654.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_44_10636.jpg', '/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_24_9626.jpg', '/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_14_10651.jpg', '/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_44_10635.jpg', '/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_33_9626.jpg', '/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_14_10654.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3122668&datou=0
/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_44_10636.jpg
/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_24_9626.jpg
/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_14_10651.jpg
/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_44_10635.jpg
/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_33_9626.jpg
/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_14_10654.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 2.722860813140869 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3122668&datou=0 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f807bbbe0>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-15 23:59:47.446442
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15062025
  port_id : 24017303
  datou_current_id : 3122668
in upload_from_sqlite, uploading in 24017303
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250517 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250518 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250519 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250520 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250521 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250522 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250523 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250524 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250525 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250526 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250527 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250528 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250529 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250530 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250531 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250601 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250602 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250603 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250604 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250605 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250606 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250607 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250608 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250609 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250610 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250611 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250612 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250613 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250614 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250615 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_44_10636.jpg', 2), ('/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_24_9626.jpg', 2), ('/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_14_10651.jpg', 2), ('/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_44_10635.jpg', 2), ('/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_33_9626.jpg', 2), ('/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_14_10654.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_44_10636.jpg', '/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_24_9626.jpg', '/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_14_10651.jpg', '/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_44_10635.jpg', '/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_33_9626.jpg', '/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_14_10654.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3122668&datou=0
/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_44_10636.jpg
/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_24_9626.jpg
/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_14_10651.jpg
/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_44_10635.jpg
/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_33_9626.jpg
/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_14_10654.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 1.8208057880401611 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3122668&datou=0 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4e0bbe0>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:00:03.013153
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31052025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14062025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15062025
  port_id : 24017303
  datou_current_id : 3122668
in upload_from_sqlite, uploading in 24017303
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250517 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250518 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250519 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250520 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250521 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250522 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250523 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250524 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250525 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250526 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250527 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250528 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250529 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250530 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250531 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250601 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250602 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250603 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250604 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250605 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250606 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250607 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250608 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250609 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250610 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250611 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250612 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250613 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250614 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250615 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_54_9625.jpg', 2), ('/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_44_10636.jpg', 2), ('/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_24_9626.jpg', 2), ('/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_14_10651.jpg', 2), ('/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_44_10635.jpg', 2), ('/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_33_9626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_54_9625.jpg', '/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_44_10636.jpg', '/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_24_9626.jpg', '/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_14_10651.jpg', '/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_44_10635.jpg', '/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_33_9626.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3122668&datou=0
/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_54_9625.jpg
/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_44_10636.jpg
/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_24_9626.jpg
/home/nano/Desktop/images/15062025/23/59/image_15062025_23_59_14_10651.jpg
/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_44_10635.jpg
/home/nano/Desktop/images/15062025/23/58/image_15062025_23_58_33_9626.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 4.826967716217041 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3122668&datou=0 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2faaf98>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:00:17.566885
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/00/image_16062025_00_00_44_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/00/00/image_16062025_00_00_23_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/00/image_16062025_00_00_14_9662.jpg', 2), ('/home/nano/Desktop/images/15062025/23/59/image_16062025_00_00_04_10666.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3397470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3397470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3397470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:00:32.543789
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/00/image_16062025_00_00_44_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/00/00/image_16062025_00_00_23_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/00/image_16062025_00_00_14_9662.jpg', 2), ('/home/nano/Desktop/images/15062025/23/59/image_16062025_00_00_04_10666.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91a1e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91a1e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91a1e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:00:47.566846
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/00/image_16062025_00_00_44_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/00/00/image_16062025_00_00_23_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/00/image_16062025_00_00_14_9662.jpg', 2), ('/home/nano/Desktop/images/15062025/23/59/image_16062025_00_00_04_10666.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1131470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1131470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1131470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:01:03.127284
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/00/image_16062025_00_00_44_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/00/00/image_16062025_00_00_23_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/00/image_16062025_00_00_14_9662.jpg', 2), ('/home/nano/Desktop/images/15062025/23/59/image_16062025_00_00_04_10666.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d8ff470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d8ff470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d8ff470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:01:17.675647
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_14_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/00/00/image_16062025_00_01_04_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/00/00/image_16062025_00_00_53_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/00/image_16062025_00_00_44_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8cd50470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cd50470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cd50470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:01:32.665999
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_14_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/00/00/image_16062025_00_01_04_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/00/00/image_16062025_00_00_53_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/00/image_16062025_00_00_44_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3e3b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3e3b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3e3b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:01:47.660916
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_14_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/00/00/image_16062025_00_01_04_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/00/00/image_16062025_00_00_53_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/00/image_16062025_00_00_44_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98bb2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98bb2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98bb2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:02:02.115157
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_14_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/00/00/image_16062025_00_01_04_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/00/00/image_16062025_00_00_53_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/00/image_16062025_00_00_44_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8296d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8296d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8296d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:02:16.779160
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/02/image_16062025_00_02_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_02_04_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_54_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_14_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb032c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb032c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb032c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:02:31.763960
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/02/image_16062025_00_02_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_02_04_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_54_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_14_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e821470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e821470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e821470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:02:46.780787
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/02/image_16062025_00_02_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_02_04_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_54_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_14_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e2d7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e2d7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e2d7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:03:02.394520
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/02/image_16062025_00_02_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_02_04_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_54_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_14_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86fe8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86fe8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86fe8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:03:16.890313
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/02/image_16062025_00_03_04_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/00/02/image_16062025_00_02_54_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/02/image_16062025_00_02_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_02_04_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_54_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_44_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90669470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90669470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90669470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:03:31.891941
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/02/image_16062025_00_03_04_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/00/02/image_16062025_00_02_54_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/02/image_16062025_00_02_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_02_04_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_54_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_44_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9edd9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9edd9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9edd9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:03:46.871439
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/02/image_16062025_00_03_04_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/00/02/image_16062025_00_02_54_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/02/image_16062025_00_02_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_02_04_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_54_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_44_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa99ce400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa99ce400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa99ce400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:04:02.578326
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/02/image_16062025_00_03_04_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/00/02/image_16062025_00_02_54_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/02/image_16062025_00_02_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_02_04_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_54_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/01/image_16062025_00_01_44_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa21d4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa21d4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa21d4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:04:16.967464
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_44_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_33_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_24_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_14_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/00/03/image_16062025_00_04_03_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/03/image_16062025_00_03_44_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa53a8400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa53a8400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa53a8400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:04:31.980138
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_44_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_33_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_24_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_14_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/00/03/image_16062025_00_04_03_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/03/image_16062025_00_03_44_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b282470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b282470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b282470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:04:46.957559
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_44_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_33_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_24_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_14_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/00/03/image_16062025_00_04_03_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/03/image_16062025_00_03_44_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad5e0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad5e0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad5e0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:05:02.532805
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_44_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_33_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_24_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_14_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/00/03/image_16062025_00_04_03_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/03/image_16062025_00_03_44_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77a72470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77a72470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77a72470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:05:17.054205
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_24_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_54_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_44_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_33_9628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b4b0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b4b0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b4b0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:05:32.053601
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_24_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_54_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_44_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_33_9628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f951ed470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f951ed470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f951ed470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:05:47.078016
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_24_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_54_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_44_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_33_9628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7aec4400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7aec4400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7aec4400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:06:02.401392
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_24_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_54_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_44_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_33_9628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93881470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93881470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93881470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:06:17.147974
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/06/image_16062025_00_06_23_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_54_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_24_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d3bd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d3bd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d3bd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:06:32.164669
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/06/image_16062025_00_06_23_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_54_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_24_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a9ee470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a9ee470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a9ee470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:06:47.188662
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/06/image_16062025_00_06_23_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_54_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_24_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a480470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a480470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a480470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:07:02.657635
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/06/image_16062025_00_06_23_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_54_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/05/image_16062025_00_05_24_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/04/image_16062025_00_04_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f888ed470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f888ed470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f888ed470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:07:17.285367
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_07_44_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_07_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_07_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_07_14_9695.jpg', 2), ('/home/nano/Desktop/images/16062025/00/06/image_16062025_00_07_04_10664.jpg', 2), ('/home/nano/Desktop/images/16062025/00/06/image_16062025_00_06_53_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c096470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c096470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c096470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:07:32.333479
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_07_44_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_07_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_07_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_07_14_9695.jpg', 2), ('/home/nano/Desktop/images/16062025/00/06/image_16062025_00_07_04_10664.jpg', 2), ('/home/nano/Desktop/images/16062025/00/06/image_16062025_00_06_53_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fac6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fac6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fac6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:07:47.261685
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_07_44_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_07_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_07_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_07_14_9695.jpg', 2), ('/home/nano/Desktop/images/16062025/00/06/image_16062025_00_07_04_10664.jpg', 2), ('/home/nano/Desktop/images/16062025/00/06/image_16062025_00_06_53_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa55d9400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa55d9400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa55d9400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:08:02.740998
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_07_44_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_07_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_07_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_07_14_9695.jpg', 2), ('/home/nano/Desktop/images/16062025/00/06/image_16062025_00_07_04_10664.jpg', 2), ('/home/nano/Desktop/images/16062025/00/06/image_16062025_00_06_53_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ab83400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ab83400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ab83400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:08:17.361713
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/08/image_16062025_00_08_34_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/08/image_16062025_00_08_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/08/image_16062025_00_08_14_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_08_04_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_07_54_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_07_44_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2032470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2032470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2032470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:08:32.346897
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/08/image_16062025_00_08_34_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/08/image_16062025_00_08_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/08/image_16062025_00_08_14_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_08_04_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_07_54_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_07_44_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ce92470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ce92470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ce92470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:08:47.361035
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/08/image_16062025_00_08_34_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/08/image_16062025_00_08_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/08/image_16062025_00_08_14_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_08_04_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_07_54_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_07_44_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7dbe470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7dbe470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7dbe470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:09:03.196660
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/08/image_16062025_00_08_34_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/08/image_16062025_00_08_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/08/image_16062025_00_08_14_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_08_04_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_07_54_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/00/07/image_16062025_00_07_44_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a3d8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a3d8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a3d8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:09:17.449911
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/09/image_16062025_00_09_34_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/00/09/image_16062025_00_09_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/09/image_16062025_00_09_13_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/00/08/image_16062025_00_09_04_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/00/08/image_16062025_00_08_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/08/image_16062025_00_08_34_9628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8df0f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8df0f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8df0f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:09:32.457915
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/09/image_16062025_00_09_34_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/00/09/image_16062025_00_09_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/09/image_16062025_00_09_13_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/00/08/image_16062025_00_09_04_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/00/08/image_16062025_00_08_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/08/image_16062025_00_08_34_9628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8aff0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8aff0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8aff0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:09:47.493290
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/09/image_16062025_00_09_34_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/00/09/image_16062025_00_09_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/09/image_16062025_00_09_13_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/00/08/image_16062025_00_09_04_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/00/08/image_16062025_00_08_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/08/image_16062025_00_08_34_9628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76ca8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76ca8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76ca8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:10:02.905916
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/09/image_16062025_00_09_34_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/00/09/image_16062025_00_09_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/09/image_16062025_00_09_13_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/00/08/image_16062025_00_09_04_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/00/08/image_16062025_00_08_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/08/image_16062025_00_08_34_9628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84beb470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84beb470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84beb470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:10:17.563685
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/10/image_16062025_00_10_44_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/00/10/image_16062025_00_10_33_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/10/image_16062025_00_10_24_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/00/10/image_16062025_00_10_14_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/00/09/image_16062025_00_09_44_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/09/image_16062025_00_09_34_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2ea0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2ea0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2ea0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:10:32.575985
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/10/image_16062025_00_10_44_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/00/10/image_16062025_00_10_33_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/10/image_16062025_00_10_24_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/00/10/image_16062025_00_10_14_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/00/09/image_16062025_00_09_44_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/09/image_16062025_00_09_34_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb37e4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb37e4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb37e4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:10:47.596401
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/10/image_16062025_00_10_44_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/00/10/image_16062025_00_10_33_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/10/image_16062025_00_10_24_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/00/10/image_16062025_00_10_14_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/00/09/image_16062025_00_09_44_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/09/image_16062025_00_09_34_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab944470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab944470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab944470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:11:03.011954
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/10/image_16062025_00_10_44_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/00/10/image_16062025_00_10_33_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/10/image_16062025_00_10_24_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/00/10/image_16062025_00_10_14_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/00/09/image_16062025_00_09_44_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/09/image_16062025_00_09_34_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb274b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb274b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb274b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:11:17.691583
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_44_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_33_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_24_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_14_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/00/10/image_16062025_00_11_03_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/10/image_16062025_00_10_54_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4ca8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4ca8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4ca8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:11:32.699981
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_44_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_33_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_24_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_14_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/00/10/image_16062025_00_11_03_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/10/image_16062025_00_10_54_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa77de470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa77de470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa77de470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:11:47.677201
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_44_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_33_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_24_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_14_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/00/10/image_16062025_00_11_03_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/10/image_16062025_00_10_54_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad263470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad263470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad263470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:12:02.194069
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_44_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_33_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_24_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_14_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/00/10/image_16062025_00_11_03_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/10/image_16062025_00_10_54_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cc9c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cc9c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cc9c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:12:16.787043
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_12_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_54_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_44_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_33_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_24_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_14_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f904b3400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f904b3400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f904b3400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:12:31.779150
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_12_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_54_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_44_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_33_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_24_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_14_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f122470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f122470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f122470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:12:46.855206
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_12_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_54_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_44_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_33_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_24_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_14_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb114b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb114b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb114b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:13:02.470098
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_12_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_54_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_44_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_33_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_24_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_11_14_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb58a5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb58a5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb58a5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:13:16.959984
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/12/image_16062025_00_13_04_10655.jpg', 2), ('/home/nano/Desktop/images/16062025/00/12/image_16062025_00_12_44_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_12_04_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8298a400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8298a400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8298a400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:13:31.961193
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/12/image_16062025_00_13_04_10655.jpg', 2), ('/home/nano/Desktop/images/16062025/00/12/image_16062025_00_12_44_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_12_04_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0125470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0125470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0125470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:13:46.959709
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/12/image_16062025_00_13_04_10655.jpg', 2), ('/home/nano/Desktop/images/16062025/00/12/image_16062025_00_12_44_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_12_04_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f795e9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f795e9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f795e9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:14:02.441718
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/12/image_16062025_00_13_04_10655.jpg', 2), ('/home/nano/Desktop/images/16062025/00/12/image_16062025_00_12_44_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/11/image_16062025_00_12_04_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8782a400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8782a400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8782a400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:14:17.071571
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/14/image_16062025_00_14_43_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/14/image_16062025_00_14_24_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_24_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae7a5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae7a5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae7a5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:14:32.067238
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/14/image_16062025_00_14_43_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/14/image_16062025_00_14_24_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_24_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa2c2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa2c2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa2c2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:14:47.129444
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/14/image_16062025_00_14_43_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/14/image_16062025_00_14_24_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_24_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ba3b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ba3b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ba3b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:15:02.732235
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/14/image_16062025_00_14_43_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/14/image_16062025_00_14_24_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/13/image_16062025_00_13_24_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0b1f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0b1f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0b1f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:15:17.206252
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/15/image_16062025_00_15_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/15/image_16062025_00_15_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/15/image_16062025_00_15_24_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/15/image_16062025_00_15_14_10673.jpg', 2), ('/home/nano/Desktop/images/16062025/00/14/image_16062025_00_15_04_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/14/image_16062025_00_14_54_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9189e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9189e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9189e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:15:32.216937
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/15/image_16062025_00_15_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/15/image_16062025_00_15_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/15/image_16062025_00_15_24_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/15/image_16062025_00_15_14_10673.jpg', 2), ('/home/nano/Desktop/images/16062025/00/14/image_16062025_00_15_04_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/14/image_16062025_00_14_54_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d4b4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d4b4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d4b4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:15:47.219130
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/15/image_16062025_00_15_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/15/image_16062025_00_15_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/15/image_16062025_00_15_24_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/15/image_16062025_00_15_14_10673.jpg', 2), ('/home/nano/Desktop/images/16062025/00/14/image_16062025_00_15_04_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/14/image_16062025_00_14_54_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad3ba470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad3ba470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad3ba470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:16:02.761892
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/15/image_16062025_00_15_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/15/image_16062025_00_15_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/15/image_16062025_00_15_24_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/15/image_16062025_00_15_14_10673.jpg', 2), ('/home/nano/Desktop/images/16062025/00/14/image_16062025_00_15_04_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/14/image_16062025_00_14_54_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c216400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c216400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c216400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:16:17.323318
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_33_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_24_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/00/15/image_16062025_00_15_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/00/15/image_16062025_00_15_44_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99718470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99718470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99718470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:16:32.308260
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_33_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_24_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/00/15/image_16062025_00_15_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/00/15/image_16062025_00_15_44_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3e79470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3e79470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3e79470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:16:47.347392
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_33_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_24_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/00/15/image_16062025_00_15_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/00/15/image_16062025_00_15_44_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7f9e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7f9e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7f9e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:17:02.961201
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_33_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_24_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/00/15/image_16062025_00_15_54_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac4eb400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac4eb400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac4eb400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:17:17.462046
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_23_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_14_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_54_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_33_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5b17470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5b17470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5b17470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:17:32.431159
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_23_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_14_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_54_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_33_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84404470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84404470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84404470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:17:47.423846
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_23_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_14_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_54_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_33_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7be66400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7be66400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7be66400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:18:02.853945
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_23_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_14_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_54_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_33_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5144470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5144470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5144470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:18:17.514220
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/18/image_16062025_00_18_23_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_23_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_14_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_54_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6aac400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6aac400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6aac400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:18:32.550301
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/18/image_16062025_00_18_23_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_23_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_14_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_54_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f454470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f454470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f454470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:18:47.556787
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/18/image_16062025_00_18_23_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_23_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_14_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_54_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a4e5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a4e5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a4e5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:19:03.425716
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/18/image_16062025_00_18_23_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_23_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_14_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/00/16/image_16062025_00_16_54_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f834ff470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f834ff470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f834ff470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:19:17.666989
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_14_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/00/18/image_16062025_00_18_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/18/image_16062025_00_18_23_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_44_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76cdc400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76cdc400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76cdc400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:19:32.649110
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_14_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/00/18/image_16062025_00_18_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/18/image_16062025_00_18_23_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_44_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8baaf470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8baaf470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8baaf470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:19:47.658017
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_14_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/00/18/image_16062025_00_18_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/18/image_16062025_00_18_23_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_44_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1f2a400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1f2a400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1f2a400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:20:01.952926
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_14_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/00/18/image_16062025_00_18_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/18/image_16062025_00_18_23_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/00/17/image_16062025_00_17_44_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f891b4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f891b4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f891b4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:20:16.781294
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/20/image_16062025_00_20_44_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/20/image_16062025_00_20_24_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_54_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_14_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82a54470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82a54470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82a54470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:20:31.764825
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/20/image_16062025_00_20_44_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/20/image_16062025_00_20_24_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_54_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_14_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1a32470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1a32470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1a32470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:20:46.750497
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/20/image_16062025_00_20_44_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/20/image_16062025_00_20_24_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_54_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_14_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad592470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad592470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad592470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:21:02.293779
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/20/image_16062025_00_20_44_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/20/image_16062025_00_20_24_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_54_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/19/image_16062025_00_19_14_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b4dc470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b4dc470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b4dc470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:21:16.869424
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/21/image_16062025_00_21_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/21/image_16062025_00_21_33_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/00/21/image_16062025_00_21_14_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/00/20/image_16062025_00_21_04_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/00/20/image_16062025_00_20_54_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/20/image_16062025_00_20_44_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e235470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e235470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e235470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:21:31.883944
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/21/image_16062025_00_21_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/21/image_16062025_00_21_33_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/00/21/image_16062025_00_21_14_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/00/20/image_16062025_00_21_04_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/00/20/image_16062025_00_20_54_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/20/image_16062025_00_20_44_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7672d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7672d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7672d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:21:46.843732
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/21/image_16062025_00_21_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/21/image_16062025_00_21_33_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/00/21/image_16062025_00_21_14_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/00/20/image_16062025_00_21_04_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/00/20/image_16062025_00_20_54_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/20/image_16062025_00_20_44_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b41c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b41c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b41c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:22:02.346004
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/21/image_16062025_00_21_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/21/image_16062025_00_21_33_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/00/21/image_16062025_00_21_14_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/00/20/image_16062025_00_21_04_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/00/20/image_16062025_00_20_54_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/20/image_16062025_00_20_44_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95a5e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95a5e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95a5e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:22:16.944588
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_44_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_14_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/00/21/image_16062025_00_22_03_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/21/image_16062025_00_21_54_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/21/image_16062025_00_21_44_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa77de470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa77de470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa77de470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:22:31.947032
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_44_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_14_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/00/21/image_16062025_00_22_03_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/21/image_16062025_00_21_54_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/21/image_16062025_00_21_44_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96531470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96531470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96531470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:22:46.960515
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_44_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_14_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/00/21/image_16062025_00_22_03_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/21/image_16062025_00_21_54_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/21/image_16062025_00_21_44_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76ed0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76ed0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76ed0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:23:02.495184
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_44_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_14_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/00/21/image_16062025_00_22_03_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/21/image_16062025_00_21_54_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/21/image_16062025_00_21_44_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa57ce470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa57ce470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa57ce470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:23:17.090657
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/23/image_16062025_00_23_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_23_04_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_54_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_44_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_14_10654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faaee9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaee9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaee9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:23:32.059684
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/23/image_16062025_00_23_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_23_04_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_54_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_44_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_14_10654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7a92470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7a92470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7a92470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:23:47.086970
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/23/image_16062025_00_23_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_23_04_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_54_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_44_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_14_10654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faae8f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faae8f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faae8f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:24:02.617672
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/23/image_16062025_00_23_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_23_04_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_54_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_44_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/22/image_16062025_00_22_14_10654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab904470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab904470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab904470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:24:17.177423
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_24_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_14_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/23/image_16062025_00_23_44_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/23/image_16062025_00_23_34_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7df46470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7df46470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7df46470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:24:32.162205
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_24_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_14_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/23/image_16062025_00_23_44_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/23/image_16062025_00_23_34_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9c9d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9c9d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9c9d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:24:47.164921
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_24_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_14_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/23/image_16062025_00_23_44_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/23/image_16062025_00_23_34_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa088d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa088d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa088d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:25:02.702393
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_24_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_14_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/23/image_16062025_00_23_44_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/23/image_16062025_00_23_34_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e1b5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e1b5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e1b5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:25:17.264663
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/25/image_16062025_00_25_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_54_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_24_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_14_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6c6b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6c6b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6c6b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:25:32.262542
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/25/image_16062025_00_25_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_54_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_24_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_14_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faaf99470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaf99470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaf99470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:25:47.279312
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/25/image_16062025_00_25_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_54_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_24_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_14_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f900c4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f900c4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f900c4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:26:02.705006
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/25/image_16062025_00_25_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_54_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_24_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_14_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab9b8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab9b8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab9b8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:26:17.385469
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/26/image_16062025_00_26_44_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/26/image_16062025_00_26_14_10674.jpg', 2), ('/home/nano/Desktop/images/16062025/00/25/image_16062025_00_26_04_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/00/25/image_16062025_00_25_54_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/25/image_16062025_00_25_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_54_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8cd6f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cd6f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cd6f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:26:32.382874
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/26/image_16062025_00_26_44_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/26/image_16062025_00_26_14_10674.jpg', 2), ('/home/nano/Desktop/images/16062025/00/25/image_16062025_00_26_04_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/00/25/image_16062025_00_25_54_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/25/image_16062025_00_25_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_54_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82e2c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82e2c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82e2c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:26:47.380657
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/26/image_16062025_00_26_44_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/26/image_16062025_00_26_14_10674.jpg', 2), ('/home/nano/Desktop/images/16062025/00/25/image_16062025_00_26_04_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/00/25/image_16062025_00_25_54_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/25/image_16062025_00_25_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_54_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa454a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa454a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa454a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:27:02.946130
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/26/image_16062025_00_26_44_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/26/image_16062025_00_26_14_10674.jpg', 2), ('/home/nano/Desktop/images/16062025/00/25/image_16062025_00_26_04_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/00/25/image_16062025_00_25_54_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/25/image_16062025_00_25_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/24/image_16062025_00_24_54_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5ff9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5ff9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5ff9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:27:17.477295
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/27/image_16062025_00_27_44_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/27/image_16062025_00_27_24_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/00/27/image_16062025_00_27_14_10675.jpg', 2), ('/home/nano/Desktop/images/16062025/00/26/image_16062025_00_26_54_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/26/image_16062025_00_26_44_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/26/image_16062025_00_26_14_10674.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9336a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9336a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9336a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:27:32.474418
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/27/image_16062025_00_27_44_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/27/image_16062025_00_27_24_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/00/27/image_16062025_00_27_14_10675.jpg', 2), ('/home/nano/Desktop/images/16062025/00/26/image_16062025_00_26_54_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/26/image_16062025_00_26_44_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/26/image_16062025_00_26_14_10674.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c8ce400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c8ce400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c8ce400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:27:47.464411
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/27/image_16062025_00_27_44_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/27/image_16062025_00_27_24_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/00/27/image_16062025_00_27_14_10675.jpg', 2), ('/home/nano/Desktop/images/16062025/00/26/image_16062025_00_26_54_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/26/image_16062025_00_26_44_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/26/image_16062025_00_26_14_10674.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f796a3400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f796a3400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f796a3400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:28:02.873452
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/27/image_16062025_00_27_44_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/27/image_16062025_00_27_24_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/00/27/image_16062025_00_27_14_10675.jpg', 2), ('/home/nano/Desktop/images/16062025/00/26/image_16062025_00_26_54_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/26/image_16062025_00_26_44_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/26/image_16062025_00_26_14_10674.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94c86470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94c86470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94c86470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:28:17.587504
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_28_44_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_28_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_28_23_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_28_14_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/00/27/image_16062025_00_28_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/27/image_16062025_00_27_54_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83819470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83819470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83819470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:28:32.572561
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_28_44_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_28_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_28_23_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_28_14_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/00/27/image_16062025_00_28_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/27/image_16062025_00_27_54_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1537470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1537470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1537470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:28:47.559908
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_28_44_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_28_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_28_23_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_28_14_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/00/27/image_16062025_00_28_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/27/image_16062025_00_27_54_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f923fd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f923fd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f923fd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:29:03.427109
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_28_44_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_28_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_28_23_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_28_14_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/00/27/image_16062025_00_28_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/27/image_16062025_00_27_54_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faeaee470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faeaee470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faeaee470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:29:17.662028
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_23_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_14_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_29_04_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_28_53_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_28_44_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e585470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e585470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e585470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:29:32.647007
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_23_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_14_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_29_04_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_28_53_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_28_44_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb46fd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb46fd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb46fd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:29:47.651379
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_23_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_14_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_29_04_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_28_53_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_28_44_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9f1e400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9f1e400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9f1e400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:30:03.144978
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_23_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_14_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_29_04_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_28_53_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/28/image_16062025_00_28_44_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf219470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf219470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf219470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:30:17.751702
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/30/image_16062025_00_30_24_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_30_04_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_54_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_23_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_14_9647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9839a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9839a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9839a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:30:32.739214
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/30/image_16062025_00_30_24_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_30_04_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_54_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_23_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_14_9647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae3f4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae3f4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae3f4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:30:47.750559
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/30/image_16062025_00_30_24_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_30_04_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_54_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_23_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_14_9647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d717470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d717470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d717470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:31:02.429973
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/30/image_16062025_00_30_24_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_30_04_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_54_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_23_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_29_14_9647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0eac470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0eac470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0eac470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:31:16.857500
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_24_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_13_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/00/30/image_16062025_00_30_54_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/30/image_16062025_00_30_24_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_30_04_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf47b400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf47b400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf47b400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:31:31.895423
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_24_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_13_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/00/30/image_16062025_00_30_54_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/30/image_16062025_00_30_24_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_30_04_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa077a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa077a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa077a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:31:46.830309
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_24_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_13_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/00/30/image_16062025_00_30_54_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/30/image_16062025_00_30_24_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_30_04_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f892fc470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f892fc470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f892fc470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:32:02.213292
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_24_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_13_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/00/30/image_16062025_00_30_54_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/30/image_16062025_00_30_24_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/29/image_16062025_00_30_04_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86d5d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86d5d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86d5d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:32:16.993332
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/32/image_16062025_00_32_14_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_32_03_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_54_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_24_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_13_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5c3c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5c3c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5c3c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:32:31.949825
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/32/image_16062025_00_32_14_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_32_03_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_54_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_24_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_13_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8da34470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8da34470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8da34470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:32:46.904830
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/32/image_16062025_00_32_14_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_32_03_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_54_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_24_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_13_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f771b3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f771b3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f771b3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:33:02.519980
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/32/image_16062025_00_32_14_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_32_03_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_54_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_24_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/00/31/image_16062025_00_31_13_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84c76470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84c76470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84c76470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:33:17.043630
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/33/image_16062025_00_33_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/33/image_16062025_00_33_24_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/33/image_16062025_00_33_14_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/00/32/image_16062025_00_33_03_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/00/32/image_16062025_00_32_44_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/00/32/image_16062025_00_32_14_10656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa80b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa80b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa80b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:33:32.081520
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/33/image_16062025_00_33_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/33/image_16062025_00_33_24_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/33/image_16062025_00_33_14_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/00/32/image_16062025_00_33_03_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/00/32/image_16062025_00_32_44_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/00/32/image_16062025_00_32_14_10656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f976584a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f976584a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f976584a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:33:47.032794
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/33/image_16062025_00_33_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/33/image_16062025_00_33_24_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/33/image_16062025_00_33_14_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/00/32/image_16062025_00_33_03_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/00/32/image_16062025_00_32_44_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/00/32/image_16062025_00_32_14_10656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89271470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89271470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89271470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:34:02.830564
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/33/image_16062025_00_33_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/33/image_16062025_00_33_24_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/33/image_16062025_00_33_14_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/00/32/image_16062025_00_33_03_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/00/32/image_16062025_00_32_44_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/00/32/image_16062025_00_32_14_10656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fbef470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fbef470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fbef470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:34:17.134955
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_34_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_14_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/33/image_16062025_00_33_53_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/33/image_16062025_00_33_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/33/image_16062025_00_33_24_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7807c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7807c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7807c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:34:32.099484
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_34_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_14_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/33/image_16062025_00_33_53_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/33/image_16062025_00_33_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/33/image_16062025_00_33_24_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ff26470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ff26470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ff26470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:34:47.099462
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_34_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_14_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/33/image_16062025_00_33_53_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/33/image_16062025_00_33_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/33/image_16062025_00_33_24_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a1dd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a1dd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a1dd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:35:02.580653
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_34_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_14_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/33/image_16062025_00_33_53_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/33/image_16062025_00_33_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/33/image_16062025_00_33_24_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faab3b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faab3b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faab3b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:35:17.250754
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/35/image_16062025_00_35_54_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_35_04_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_53_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_34_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_14_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99e33400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99e33400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99e33400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:35:32.186382
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/35/image_16062025_00_35_54_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_35_04_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_53_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_34_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_14_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91ce4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91ce4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91ce4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:35:47.195864
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/35/image_16062025_00_35_54_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_35_04_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_53_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_34_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_14_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faba02470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faba02470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faba02470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:36:02.606409
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/35/image_16062025_00_35_54_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_35_04_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_53_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_34_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/00/34/image_16062025_00_34_14_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f346470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f346470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f346470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:36:17.300166
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_44_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/35/image_16062025_00_36_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/35/image_16062025_00_35_54_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/35/image_16062025_00_35_43_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4329470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4329470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4329470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:36:32.304753
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_44_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/35/image_16062025_00_36_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/35/image_16062025_00_35_54_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/35/image_16062025_00_35_43_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d78a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d78a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d78a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:36:47.310081
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_44_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/35/image_16062025_00_36_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/35/image_16062025_00_35_54_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/35/image_16062025_00_35_43_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83120470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83120470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83120470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:37:02.871291
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_44_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/35/image_16062025_00_36_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/35/image_16062025_00_35_54_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/35/image_16062025_00_35_43_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f1f7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f1f7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f1f7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:37:17.407111
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/37/image_16062025_00_37_24_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/37/image_16062025_00_37_14_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_54_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_44_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_13_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e684470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e684470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e684470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:37:32.412303
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/37/image_16062025_00_37_24_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/37/image_16062025_00_37_14_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_54_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_44_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_13_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faed2c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faed2c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faed2c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:37:47.401495
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/37/image_16062025_00_37_24_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/37/image_16062025_00_37_14_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_54_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_44_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_13_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa609f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa609f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa609f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:38:02.863813
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/37/image_16062025_00_37_24_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/37/image_16062025_00_37_14_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_54_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_44_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/36/image_16062025_00_36_13_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d36a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d36a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d36a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:38:17.484671
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/38/image_16062025_00_38_44_10698.jpg', 2), ('/home/nano/Desktop/images/16062025/00/38/image_16062025_00_38_24_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/00/38/image_16062025_00_38_14_10659.jpg', 2), ('/home/nano/Desktop/images/16062025/00/37/image_16062025_00_38_03_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/00/37/image_16062025_00_37_54_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/37/image_16062025_00_37_24_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ba31470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ba31470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ba31470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:38:32.502961
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/38/image_16062025_00_38_44_10698.jpg', 2), ('/home/nano/Desktop/images/16062025/00/38/image_16062025_00_38_24_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/00/38/image_16062025_00_38_14_10659.jpg', 2), ('/home/nano/Desktop/images/16062025/00/37/image_16062025_00_38_03_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/00/37/image_16062025_00_37_54_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/37/image_16062025_00_37_24_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8327a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8327a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8327a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:38:47.491907
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/38/image_16062025_00_38_44_10698.jpg', 2), ('/home/nano/Desktop/images/16062025/00/38/image_16062025_00_38_24_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/00/38/image_16062025_00_38_14_10659.jpg', 2), ('/home/nano/Desktop/images/16062025/00/37/image_16062025_00_38_03_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/00/37/image_16062025_00_37_54_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/37/image_16062025_00_37_24_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bdd0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bdd0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bdd0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:39:03.378943
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/38/image_16062025_00_38_44_10698.jpg', 2), ('/home/nano/Desktop/images/16062025/00/38/image_16062025_00_38_24_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/00/38/image_16062025_00_38_14_10659.jpg', 2), ('/home/nano/Desktop/images/16062025/00/37/image_16062025_00_38_03_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/00/37/image_16062025_00_37_54_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/37/image_16062025_00_37_24_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f957d1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f957d1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f957d1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:39:17.588283
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_44_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_14_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/00/38/image_16062025_00_39_04_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/00/38/image_16062025_00_38_54_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/38/image_16062025_00_38_44_10698.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98b1c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98b1c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98b1c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:39:32.579999
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_44_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_14_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/00/38/image_16062025_00_39_04_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/00/38/image_16062025_00_38_54_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/38/image_16062025_00_38_44_10698.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bddb470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bddb470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bddb470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:39:47.564002
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_44_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_14_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/00/38/image_16062025_00_39_04_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/00/38/image_16062025_00_38_54_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/38/image_16062025_00_38_44_10698.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f931d9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f931d9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f931d9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:40:02.974122
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_44_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_14_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/00/38/image_16062025_00_39_04_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/00/38/image_16062025_00_38_54_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/38/image_16062025_00_38_44_10698.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f913470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f913470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f913470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:40:17.668179
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_44_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_34_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_53_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_44_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_14_9664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b10b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b10b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b10b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:40:32.670648
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_44_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_34_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_53_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_44_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_14_9664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ddd2400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ddd2400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ddd2400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:40:47.662525
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_44_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_34_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_53_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_44_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_14_9664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8240e400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8240e400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8240e400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:41:02.320617
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_44_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_34_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_53_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_44_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_14_9664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96c6a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96c6a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96c6a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:41:16.768128
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_41_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_41_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_44_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_34_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_53_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83cde470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83cde470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83cde470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:41:31.762281
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_41_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_41_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_44_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_34_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_53_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f824d2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f824d2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f824d2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:41:46.777298
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_41_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_41_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_44_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_34_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_53_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e1be470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e1be470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e1be470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:42:02.271230
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_41_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_41_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_44_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_34_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/00/39/image_16062025_00_39_53_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82471470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82471470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82471470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:42:16.857000
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_42_04_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_41_43_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_41_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_41_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_44_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a006470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a006470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a006470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:42:31.842001
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_42_04_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_41_43_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_41_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_41_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_44_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7dd01470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dd01470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dd01470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:42:46.856044
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_42_04_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_41_43_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_41_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_41_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_44_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa076b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa076b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa076b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:43:02.496332
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_42_04_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_41_43_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_41_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_41_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/00/40/image_16062025_00_40_44_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e506400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e506400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e506400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:43:16.966192
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_44_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_24_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_14_10662.jpg', 2), ('/home/nano/Desktop/images/16062025/00/42/image_16062025_00_43_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/42/image_16062025_00_42_13_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_42_04_9649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f872ac470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f872ac470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f872ac470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:43:31.973311
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_44_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_24_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_14_10662.jpg', 2), ('/home/nano/Desktop/images/16062025/00/42/image_16062025_00_43_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/42/image_16062025_00_42_13_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_42_04_9649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fadd46470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadd46470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadd46470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:43:46.963146
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_44_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_24_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_14_10662.jpg', 2), ('/home/nano/Desktop/images/16062025/00/42/image_16062025_00_43_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/42/image_16062025_00_42_13_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_42_04_9649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8eebc470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8eebc470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8eebc470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:44:02.742864
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_44_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_24_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_14_10662.jpg', 2), ('/home/nano/Desktop/images/16062025/00/42/image_16062025_00_43_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/42/image_16062025_00_42_13_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/00/41/image_16062025_00_42_04_9649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a895470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a895470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a895470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:44:17.081737
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/44/image_16062025_00_44_14_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_44_03_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_54_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_44_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_24_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_14_10662.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95133470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95133470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95133470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:44:32.064526
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/44/image_16062025_00_44_14_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_44_03_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_54_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_44_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_24_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_14_10662.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac584470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac584470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac584470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:44:47.047880
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/44/image_16062025_00_44_14_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_44_03_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_54_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_44_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_24_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_14_10662.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf6fb470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf6fb470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf6fb470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:45:02.588577
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/44/image_16062025_00_44_14_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_44_03_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_54_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_44_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_24_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/43/image_16062025_00_43_14_10662.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a129400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a129400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a129400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:45:17.153195
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/45/image_16062025_00_45_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/00/45/image_16062025_00_45_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/45/image_16062025_00_45_14_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/00/44/image_16062025_00_45_04_10657.jpg', 2), ('/home/nano/Desktop/images/16062025/00/44/image_16062025_00_44_24_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/00/44/image_16062025_00_44_14_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85798470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85798470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85798470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:45:32.141729
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/45/image_16062025_00_45_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/00/45/image_16062025_00_45_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/45/image_16062025_00_45_14_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/00/44/image_16062025_00_45_04_10657.jpg', 2), ('/home/nano/Desktop/images/16062025/00/44/image_16062025_00_44_24_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/00/44/image_16062025_00_44_14_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8eefe470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8eefe470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8eefe470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:45:47.227575
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/45/image_16062025_00_45_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/00/45/image_16062025_00_45_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/45/image_16062025_00_45_14_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/00/44/image_16062025_00_45_04_10657.jpg', 2), ('/home/nano/Desktop/images/16062025/00/44/image_16062025_00_44_24_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/00/44/image_16062025_00_44_14_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91519400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91519400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91519400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:46:02.618694
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/45/image_16062025_00_45_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/00/45/image_16062025_00_45_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/45/image_16062025_00_45_14_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/00/44/image_16062025_00_45_04_10657.jpg', 2), ('/home/nano/Desktop/images/16062025/00/44/image_16062025_00_44_24_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/00/44/image_16062025_00_44_14_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0484470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0484470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0484470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:46:17.330436
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_46_44_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_46_34_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_46_14_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/00/45/image_16062025_00_46_04_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/00/45/image_16062025_00_45_53_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/45/image_16062025_00_45_44_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c5e3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c5e3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c5e3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:46:32.339704
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_46_44_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_46_34_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_46_14_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/00/45/image_16062025_00_46_04_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/00/45/image_16062025_00_45_53_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/45/image_16062025_00_45_44_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9650d400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9650d400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9650d400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:46:47.314845
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_46_44_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_46_34_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_46_14_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/00/45/image_16062025_00_46_04_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/00/45/image_16062025_00_45_53_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/45/image_16062025_00_45_44_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bc00470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bc00470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bc00470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:47:02.892864
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_46_44_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_46_34_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_46_14_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/00/45/image_16062025_00_46_04_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/00/45/image_16062025_00_45_53_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/45/image_16062025_00_45_44_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80776470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80776470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80776470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:47:17.416978
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/47/image_16062025_00_47_34_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/47/image_16062025_00_47_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_47_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_46_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_46_44_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_46_34_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8bc53470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bc53470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bc53470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:47:32.426322
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/47/image_16062025_00_47_34_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/47/image_16062025_00_47_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_47_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_46_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_46_44_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_46_34_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa32dc470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa32dc470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa32dc470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:47:47.450031
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/47/image_16062025_00_47_34_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/47/image_16062025_00_47_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_47_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_46_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_46_44_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_46_34_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f890de470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f890de470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f890de470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:48:02.951663
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/47/image_16062025_00_47_34_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/47/image_16062025_00_47_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_47_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_46_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_46_44_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/46/image_16062025_00_46_34_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa484d400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa484d400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa484d400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:48:17.517935
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_24_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/00/47/image_16062025_00_48_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/47/image_16062025_00_47_43_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/47/image_16062025_00_47_34_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f923400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f923400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f923400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:48:32.527703
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_24_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/00/47/image_16062025_00_48_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/47/image_16062025_00_47_43_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/47/image_16062025_00_47_34_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f778a6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f778a6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f778a6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:48:47.514738
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_24_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/00/47/image_16062025_00_48_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/47/image_16062025_00_47_43_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/47/image_16062025_00_47_34_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faee91470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faee91470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faee91470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:49:03.335673
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_24_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/00/47/image_16062025_00_48_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/00/47/image_16062025_00_47_43_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/47/image_16062025_00_47_34_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fad7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fad7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fad7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:49:17.638246
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_49_03_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_24_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/00/47/image_16062025_00_48_04_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb41e3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb41e3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb41e3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:49:32.609632
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_49_03_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_24_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/00/47/image_16062025_00_48_04_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8607b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8607b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8607b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:49:47.696420
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_49_03_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_24_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/00/47/image_16062025_00_48_04_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86669470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86669470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86669470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:50:02.082785
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_49_03_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_24_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/00/47/image_16062025_00_48_04_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b750470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b750470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b750470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:50:16.779560
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/50/image_16062025_00_50_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/49/image_16062025_00_50_04_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/00/49/image_16062025_00_49_14_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_49_03_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_34_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4698470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4698470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4698470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:50:31.784593
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/50/image_16062025_00_50_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/49/image_16062025_00_50_04_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/00/49/image_16062025_00_49_14_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_49_03_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_34_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87404400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87404400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87404400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:50:46.766979
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/50/image_16062025_00_50_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/49/image_16062025_00_50_04_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/00/49/image_16062025_00_49_14_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_49_03_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_34_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c1d6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c1d6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c1d6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:51:02.353870
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/50/image_16062025_00_50_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/49/image_16062025_00_50_04_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/00/49/image_16062025_00_49_14_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_49_03_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/48/image_16062025_00_48_34_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2bb8400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2bb8400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2bb8400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:51:16.877961
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/51/image_16062025_00_51_23_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/51/image_16062025_00_51_14_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/00/50/image_16062025_00_51_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/50/image_16062025_00_50_53_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/50/image_16062025_00_50_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/49/image_16062025_00_50_04_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91e43470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91e43470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91e43470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:51:31.889861
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/51/image_16062025_00_51_23_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/51/image_16062025_00_51_14_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/00/50/image_16062025_00_51_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/50/image_16062025_00_50_53_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/50/image_16062025_00_50_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/49/image_16062025_00_50_04_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96f39470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96f39470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96f39470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:51:46.869129
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/51/image_16062025_00_51_23_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/51/image_16062025_00_51_14_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/00/50/image_16062025_00_51_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/50/image_16062025_00_50_53_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/50/image_16062025_00_50_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/49/image_16062025_00_50_04_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8523b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8523b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8523b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:52:02.346547
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/51/image_16062025_00_51_23_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/51/image_16062025_00_51_14_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/00/50/image_16062025_00_51_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/50/image_16062025_00_50_53_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/50/image_16062025_00_50_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/49/image_16062025_00_50_04_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7ebd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7ebd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7ebd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:52:16.981667
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_13_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/00/51/image_16062025_00_52_04_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/00/51/image_16062025_00_51_34_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/51/image_16062025_00_51_23_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78617400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78617400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78617400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:52:31.974239
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_13_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/00/51/image_16062025_00_52_04_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/00/51/image_16062025_00_51_34_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/51/image_16062025_00_51_23_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fce8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fce8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fce8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:52:46.966478
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_13_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/00/51/image_16062025_00_52_04_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/00/51/image_16062025_00_51_34_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/51/image_16062025_00_51_23_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fabcef470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabcef470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabcef470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:53:02.378257
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_13_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/00/51/image_16062025_00_52_04_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/00/51/image_16062025_00_51_34_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/51/image_16062025_00_51_23_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ceac470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ceac470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ceac470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:53:17.049179
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_53_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_53_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_53_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_24_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f7f5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f7f5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f7f5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:53:32.064212
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_53_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_53_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_53_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_24_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9c35470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9c35470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9c35470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:53:47.066542
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_53_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_53_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_53_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_24_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f917b3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f917b3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f917b3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:54:02.921225
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_53_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_53_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_53_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_24_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90407470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90407470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90407470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:54:17.166132
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_54_03_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_53_54_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_53_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_53_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_53_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_54_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91d5f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91d5f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91d5f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:54:32.165114
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_54_03_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_53_54_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_53_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_53_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_53_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_54_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89b3e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89b3e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89b3e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:54:47.186724
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_54_03_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_53_54_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_53_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_53_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_53_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_54_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4375470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4375470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4375470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:55:02.631686
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_54_03_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_53_54_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_53_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_53_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_53_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/00/52/image_16062025_00_52_54_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92931470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92931470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92931470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:55:17.287863
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/55/image_16062025_00_55_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/00/55/image_16062025_00_55_24_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/54/image_16062025_00_55_04_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/00/54/image_16062025_00_54_14_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_54_03_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_53_54_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4103470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4103470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4103470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:55:32.257024
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/55/image_16062025_00_55_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/00/55/image_16062025_00_55_24_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/54/image_16062025_00_55_04_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/00/54/image_16062025_00_54_14_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_54_03_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_53_54_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90d3b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90d3b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90d3b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:55:47.313740
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/55/image_16062025_00_55_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/00/55/image_16062025_00_55_24_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/54/image_16062025_00_55_04_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/00/54/image_16062025_00_54_14_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_54_03_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_53_54_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa76c0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa76c0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa76c0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:56:02.687387
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/55/image_16062025_00_55_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/00/55/image_16062025_00_55_24_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/00/54/image_16062025_00_55_04_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/00/54/image_16062025_00_54_14_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_54_03_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/00/53/image_16062025_00_53_54_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87db1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87db1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87db1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:56:17.429702
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_56_34_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_56_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_56_14_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/00/55/image_16062025_00_55_53_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/55/image_16062025_00_55_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/00/55/image_16062025_00_55_24_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9765b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9765b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9765b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:56:32.406137
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_56_34_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_56_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_56_14_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/00/55/image_16062025_00_55_53_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/55/image_16062025_00_55_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/00/55/image_16062025_00_55_24_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9dc63400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dc63400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dc63400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:56:47.423317
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_56_34_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_56_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_56_14_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/00/55/image_16062025_00_55_53_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/55/image_16062025_00_55_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/00/55/image_16062025_00_55_24_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e355400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e355400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e355400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:57:02.873011
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_56_34_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_56_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_56_14_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/00/55/image_16062025_00_55_53_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/55/image_16062025_00_55_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/00/55/image_16062025_00_55_24_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d22b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d22b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d22b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:57:17.533158
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/57/image_16062025_00_57_34_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/57/image_16062025_00_57_24_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_57_04_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_56_44_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_56_34_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_56_23_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f828cf470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f828cf470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f828cf470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:57:32.525827
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/57/image_16062025_00_57_34_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/57/image_16062025_00_57_24_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_57_04_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_56_44_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_56_34_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_56_23_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb18e3400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb18e3400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb18e3400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:57:47.549227
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/57/image_16062025_00_57_34_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/57/image_16062025_00_57_24_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_57_04_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_56_44_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_56_34_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_56_23_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7face6c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7face6c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7face6c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:58:02.955352
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/57/image_16062025_00_57_34_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/00/57/image_16062025_00_57_24_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_57_04_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_56_44_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_56_34_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/56/image_16062025_00_56_23_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0d36470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0d36470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0d36470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:59:02.832518
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/58/image_16062025_00_58_44_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/00/58/image_16062025_00_58_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/58/image_16062025_00_58_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/00/58/image_16062025_00_58_13_9648.jpg', 2), ('/home/nano/Desktop/images/16062025/00/57/image_16062025_00_58_04_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/57/image_16062025_00_57_43_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88382470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88382470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88382470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:59:17.291749
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/59/image_16062025_00_59_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/59/image_16062025_00_59_24_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/59/image_16062025_00_59_14_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/00/58/image_16062025_00_59_03_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/00/58/image_16062025_00_58_54_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/58/image_16062025_00_58_44_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb527b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb527b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb527b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:59:32.223960
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/59/image_16062025_00_59_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/59/image_16062025_00_59_24_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/59/image_16062025_00_59_14_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/00/58/image_16062025_00_59_03_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/00/58/image_16062025_00_58_54_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/58/image_16062025_00_58_44_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f883b6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f883b6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f883b6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 00:59:47.214447
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/59/image_16062025_00_59_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/59/image_16062025_00_59_24_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/59/image_16062025_00_59_14_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/00/58/image_16062025_00_59_03_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/00/58/image_16062025_00_58_54_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/58/image_16062025_00_58_44_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a2f7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a2f7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a2f7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:00:02.655233
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/00/59/image_16062025_00_59_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/59/image_16062025_00_59_24_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/00/59/image_16062025_00_59_14_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/00/58/image_16062025_00_59_03_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/00/58/image_16062025_00_58_54_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/00/58/image_16062025_00_58_44_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99882470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99882470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99882470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:00:17.313450
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/00/image_16062025_01_00_34_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/00/image_16062025_01_00_24_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/00/image_16062025_01_00_14_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/00/59/image_16062025_00_59_54_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/59/image_16062025_00_59_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/59/image_16062025_00_59_24_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88074470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88074470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88074470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:00:32.310160
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/00/image_16062025_01_00_34_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/00/image_16062025_01_00_24_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/00/image_16062025_01_00_14_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/00/59/image_16062025_00_59_54_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/59/image_16062025_00_59_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/59/image_16062025_00_59_24_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8003d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8003d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8003d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:00:47.325643
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/00/image_16062025_01_00_34_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/00/image_16062025_01_00_24_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/00/image_16062025_01_00_14_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/00/59/image_16062025_00_59_54_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/59/image_16062025_00_59_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/59/image_16062025_00_59_24_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7eb59470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7eb59470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7eb59470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:01:03.030869
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/00/image_16062025_01_00_34_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/00/image_16062025_01_00_24_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/00/image_16062025_01_00_14_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/00/59/image_16062025_00_59_54_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/00/59/image_16062025_00_59_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/00/59/image_16062025_00_59_24_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf14f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf14f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf14f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:01:17.461529
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/01/image_16062025_01_01_44_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/01/image_16062025_01_01_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/01/image_16062025_01_01_14_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/00/image_16062025_01_00_53_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/00/image_16062025_01_00_34_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/00/image_16062025_01_00_24_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f804fd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f804fd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f804fd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:01:32.459011
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/01/image_16062025_01_01_44_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/01/image_16062025_01_01_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/01/image_16062025_01_01_14_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/00/image_16062025_01_00_53_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/00/image_16062025_01_00_34_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/00/image_16062025_01_00_24_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b817470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b817470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b817470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:01:47.432475
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/01/image_16062025_01_01_44_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/01/image_16062025_01_01_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/01/image_16062025_01_01_14_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/00/image_16062025_01_00_53_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/00/image_16062025_01_00_34_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/00/image_16062025_01_00_24_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91d57400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91d57400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91d57400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:02:02.707874
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/01/image_16062025_01_01_44_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/01/image_16062025_01_01_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/01/image_16062025_01_01_14_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/00/image_16062025_01_00_53_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/00/image_16062025_01_00_34_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/00/image_16062025_01_00_24_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7dee4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dee4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dee4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:02:17.553094
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/02/image_16062025_01_02_43_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/02/image_16062025_01_02_34_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/02/image_16062025_01_02_24_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/01/image_16062025_01_02_04_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/01/image_16062025_01_01_54_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/01/01/image_16062025_01_01_44_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8deb2400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8deb2400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8deb2400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:02:32.555867
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/02/image_16062025_01_02_43_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/02/image_16062025_01_02_34_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/02/image_16062025_01_02_24_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/01/image_16062025_01_02_04_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/01/image_16062025_01_01_54_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/01/01/image_16062025_01_01_44_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9670d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9670d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9670d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:02:47.552355
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/02/image_16062025_01_02_43_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/02/image_16062025_01_02_34_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/02/image_16062025_01_02_24_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/01/image_16062025_01_02_04_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/01/image_16062025_01_01_54_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/01/01/image_16062025_01_01_44_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4a16470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4a16470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4a16470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:03:03.043532
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/02/image_16062025_01_02_43_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/02/image_16062025_01_02_34_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/02/image_16062025_01_02_24_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/01/image_16062025_01_02_04_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/01/image_16062025_01_01_54_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/01/01/image_16062025_01_01_44_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f773d6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f773d6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f773d6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:03:17.646834
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_03_44_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_03_34_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_03_13_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/02/image_16062025_01_02_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/02/image_16062025_01_02_43_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/02/image_16062025_01_02_34_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92d27470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92d27470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92d27470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:03:32.644832
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_03_44_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_03_34_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_03_13_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/02/image_16062025_01_02_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/02/image_16062025_01_02_43_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/02/image_16062025_01_02_34_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8eb89470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8eb89470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8eb89470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:03:47.683651
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_03_44_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_03_34_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_03_13_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/02/image_16062025_01_02_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/02/image_16062025_01_02_43_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/02/image_16062025_01_02_34_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5d2d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5d2d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5d2d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:04:02.343052
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_03_44_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_03_34_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_03_13_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/02/image_16062025_01_02_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/02/image_16062025_01_02_43_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/02/image_16062025_01_02_34_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92a32470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92a32470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92a32470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:04:16.760069
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/04/image_16062025_01_04_24_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/01/04/image_16062025_01_04_14_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_04_03_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_03_54_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_03_44_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_03_34_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1cb1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1cb1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1cb1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:04:31.768387
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/04/image_16062025_01_04_24_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/01/04/image_16062025_01_04_14_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_04_03_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_03_54_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_03_44_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_03_34_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8eaa7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8eaa7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8eaa7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:04:46.772232
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/04/image_16062025_01_04_24_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/01/04/image_16062025_01_04_14_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_04_03_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_03_54_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_03_44_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_03_34_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78aab470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78aab470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78aab470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:05:02.447650
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/04/image_16062025_01_04_24_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/01/04/image_16062025_01_04_14_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_04_03_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_03_54_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_03_44_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/03/image_16062025_01_03_34_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9cca470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9cca470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9cca470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:05:16.883882
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/05/image_16062025_01_05_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/05/image_16062025_01_05_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/05/image_16062025_01_05_24_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/04/image_16062025_01_05_03_9648.jpg', 2), ('/home/nano/Desktop/images/16062025/01/04/image_16062025_01_04_44_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/01/04/image_16062025_01_04_24_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88afc470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88afc470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88afc470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:05:31.857364
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/05/image_16062025_01_05_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/05/image_16062025_01_05_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/05/image_16062025_01_05_24_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/04/image_16062025_01_05_03_9648.jpg', 2), ('/home/nano/Desktop/images/16062025/01/04/image_16062025_01_04_44_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/01/04/image_16062025_01_04_24_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb449f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb449f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb449f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:05:46.913677
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/05/image_16062025_01_05_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/05/image_16062025_01_05_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/05/image_16062025_01_05_24_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/04/image_16062025_01_05_03_9648.jpg', 2), ('/home/nano/Desktop/images/16062025/01/04/image_16062025_01_04_44_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/01/04/image_16062025_01_04_24_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa47e0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa47e0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa47e0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:06:02.294276
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/05/image_16062025_01_05_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/05/image_16062025_01_05_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/05/image_16062025_01_05_24_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/04/image_16062025_01_05_03_9648.jpg', 2), ('/home/nano/Desktop/images/16062025/01/04/image_16062025_01_04_44_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/01/04/image_16062025_01_04_24_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7995f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7995f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7995f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:06:17.001370
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/06/image_16062025_01_06_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/01/06/image_16062025_01_06_23_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/06/image_16062025_01_06_14_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/01/05/image_16062025_01_06_04_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/05/image_16062025_01_05_53_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/05/image_16062025_01_05_44_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a5fb470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a5fb470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a5fb470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:06:31.962598
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/06/image_16062025_01_06_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/01/06/image_16062025_01_06_23_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/06/image_16062025_01_06_14_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/01/05/image_16062025_01_06_04_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/05/image_16062025_01_05_53_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/05/image_16062025_01_05_44_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95c52470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95c52470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95c52470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:06:46.963452
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/06/image_16062025_01_06_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/01/06/image_16062025_01_06_23_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/06/image_16062025_01_06_14_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/01/05/image_16062025_01_06_04_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/05/image_16062025_01_05_53_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/05/image_16062025_01_05_44_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99271470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99271470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99271470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:07:02.673954
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/06/image_16062025_01_06_34_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/01/06/image_16062025_01_06_23_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/06/image_16062025_01_06_14_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/01/05/image_16062025_01_06_04_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/05/image_16062025_01_05_53_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/05/image_16062025_01_05_44_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d573470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d573470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d573470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:07:17.072839
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_07_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_07_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_07_14_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/01/06/image_16062025_01_07_04_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/06/image_16062025_01_06_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/06/image_16062025_01_06_34_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c328470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c328470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c328470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:07:32.062982
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_07_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_07_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_07_14_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/01/06/image_16062025_01_07_04_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/06/image_16062025_01_06_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/06/image_16062025_01_06_34_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f449470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f449470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f449470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:07:47.056708
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_07_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_07_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_07_14_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/01/06/image_16062025_01_07_04_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/06/image_16062025_01_06_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/06/image_16062025_01_06_34_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafe2b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafe2b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafe2b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:08:02.478137
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_07_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_07_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_07_14_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/01/06/image_16062025_01_07_04_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/06/image_16062025_01_06_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/06/image_16062025_01_06_34_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb12c3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb12c3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb12c3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:08:17.171833
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_24_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_13_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_08_04_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_07_54_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_07_43_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85301400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85301400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85301400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:08:32.140660
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_24_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_13_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_08_04_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_07_54_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_07_43_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83dca400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83dca400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83dca400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:08:47.165112
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_24_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_13_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_08_04_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_07_54_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_07_43_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7845470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7845470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7845470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:09:02.914323
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_24_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_13_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_08_04_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_07_54_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_07_43_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c0e5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c0e5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c0e5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:09:17.255297
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/09/image_16062025_01_09_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_24_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_13_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_08_04_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f915d9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f915d9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f915d9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:09:32.280690
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/09/image_16062025_01_09_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_24_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_13_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_08_04_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8619c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8619c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8619c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:09:47.260796
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/09/image_16062025_01_09_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_24_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_13_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_08_04_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7eeb9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7eeb9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7eeb9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:10:02.816299
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/09/image_16062025_01_09_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_24_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_13_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/07/image_16062025_01_08_04_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82ff9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82ff9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82ff9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:10:17.377932
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/10/image_16062025_01_10_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/10/image_16062025_01_10_34_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/10/image_16062025_01_10_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/01/09/image_16062025_01_09_33_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/09/image_16062025_01_09_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_44_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92a9e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92a9e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92a9e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:10:32.378361
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/10/image_16062025_01_10_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/10/image_16062025_01_10_34_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/10/image_16062025_01_10_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/01/09/image_16062025_01_09_33_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/09/image_16062025_01_09_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_44_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86f81470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86f81470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86f81470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:10:47.359615
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/10/image_16062025_01_10_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/10/image_16062025_01_10_34_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/10/image_16062025_01_10_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/01/09/image_16062025_01_09_33_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/09/image_16062025_01_09_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_44_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5a1b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5a1b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5a1b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:11:02.985325
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/10/image_16062025_01_10_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/10/image_16062025_01_10_34_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/10/image_16062025_01_10_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/01/09/image_16062025_01_09_33_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/09/image_16062025_01_09_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/08/image_16062025_01_08_44_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fabf470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fabf470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fabf470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:11:17.451314
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/11/image_16062025_01_11_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/11/image_16062025_01_11_34_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/11/image_16062025_01_11_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/11/image_16062025_01_11_14_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/01/10/image_16062025_01_11_04_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/01/10/image_16062025_01_10_53_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86c6d400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86c6d400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86c6d400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:11:32.443816
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/11/image_16062025_01_11_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/11/image_16062025_01_11_34_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/11/image_16062025_01_11_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/11/image_16062025_01_11_14_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/01/10/image_16062025_01_11_04_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/01/10/image_16062025_01_10_53_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa98b2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa98b2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa98b2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:11:47.473462
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/11/image_16062025_01_11_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/11/image_16062025_01_11_34_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/11/image_16062025_01_11_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/11/image_16062025_01_11_14_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/01/10/image_16062025_01_11_04_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/01/10/image_16062025_01_10_53_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f830fc470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f830fc470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f830fc470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:12:02.849113
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/11/image_16062025_01_11_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/11/image_16062025_01_11_34_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/11/image_16062025_01_11_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/11/image_16062025_01_11_14_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/01/10/image_16062025_01_11_04_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/01/10/image_16062025_01_10_53_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80881470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80881470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80881470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:12:17.552627
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_12_43_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_12_34_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_12_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_12_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/11/image_16062025_01_12_04_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/11/image_16062025_01_11_54_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88bb8400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88bb8400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88bb8400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:12:32.582838
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_12_43_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_12_34_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_12_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_12_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/11/image_16062025_01_12_04_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/11/image_16062025_01_11_54_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d764470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d764470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d764470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:12:47.553635
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_12_43_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_12_34_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_12_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_12_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/11/image_16062025_01_12_04_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/11/image_16062025_01_11_54_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95f5b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95f5b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95f5b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:13:03.045042
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_12_43_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_12_34_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_12_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_12_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/11/image_16062025_01_12_04_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/11/image_16062025_01_11_54_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faba48470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faba48470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faba48470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:13:17.699248
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/13/image_16062025_01_13_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/13/image_16062025_01_13_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/01/13/image_16062025_01_13_13_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_13_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_12_54_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_12_43_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa38c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa38c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa38c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:13:32.673449
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/13/image_16062025_01_13_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/13/image_16062025_01_13_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/01/13/image_16062025_01_13_13_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_13_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_12_54_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_12_43_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e929470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e929470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e929470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:13:47.659728
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/13/image_16062025_01_13_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/13/image_16062025_01_13_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/01/13/image_16062025_01_13_13_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_13_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_12_54_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_12_43_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa97aa470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa97aa470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa97aa470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:14:02.400374
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/13/image_16062025_01_13_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/13/image_16062025_01_13_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/01/13/image_16062025_01_13_13_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_13_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_12_54_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/01/12/image_16062025_01_12_43_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85bb5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85bb5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85bb5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:14:16.747561
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_33_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_14_10659.jpg', 2), ('/home/nano/Desktop/images/16062025/01/13/image_16062025_01_14_03_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/01/13/image_16062025_01_13_54_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/13/image_16062025_01_13_34_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c43b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c43b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c43b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:14:31.766179
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_33_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_14_10659.jpg', 2), ('/home/nano/Desktop/images/16062025/01/13/image_16062025_01_14_03_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/01/13/image_16062025_01_13_54_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/13/image_16062025_01_13_34_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa738e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa738e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa738e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:14:46.743464
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_33_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_14_10659.jpg', 2), ('/home/nano/Desktop/images/16062025/01/13/image_16062025_01_14_03_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/01/13/image_16062025_01_13_54_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/13/image_16062025_01_13_34_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5562470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5562470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5562470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:15:02.353347
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_33_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_14_10659.jpg', 2), ('/home/nano/Desktop/images/16062025/01/13/image_16062025_01_14_03_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/01/13/image_16062025_01_13_54_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/13/image_16062025_01_13_34_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f790e14a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f790e14a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f790e14a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:15:16.861839
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/15/image_16062025_01_15_14_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_15_03_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_44_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_33_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_14_10659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82b11470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82b11470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82b11470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:15:31.907007
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/15/image_16062025_01_15_14_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_15_03_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_44_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_33_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_14_10659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f887e8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f887e8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f887e8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:15:46.842220
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/15/image_16062025_01_15_14_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_15_03_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_44_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_33_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_14_10659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77055400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77055400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77055400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:16:02.223939
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/15/image_16062025_01_15_14_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_15_03_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_44_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_33_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_14_14_10659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d564470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d564470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d564470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:16:16.951121
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_16_44_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_16_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/15/image_16062025_01_16_04_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/01/15/image_16062025_01_15_53_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/15/image_16062025_01_15_14_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_15_03_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90d78470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90d78470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90d78470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:16:31.975176
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_16_44_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_16_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/15/image_16062025_01_16_04_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/01/15/image_16062025_01_15_53_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/15/image_16062025_01_15_14_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_15_03_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9acd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9acd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9acd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:16:46.941349
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_16_44_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_16_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/15/image_16062025_01_16_04_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/01/15/image_16062025_01_15_53_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/15/image_16062025_01_15_14_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_15_03_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1759470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1759470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1759470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:17:02.629271
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_16_44_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_16_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/15/image_16062025_01_16_04_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/01/15/image_16062025_01_15_53_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/15/image_16062025_01_15_14_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/01/14/image_16062025_01_15_03_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f98d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f98d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f98d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:17:17.060671
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_17_04_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_16_54_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_16_44_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_16_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/15/image_16062025_01_16_04_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/01/15/image_16062025_01_15_53_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a3be470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a3be470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a3be470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:17:32.043351
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_17_04_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_16_54_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_16_44_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_16_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/15/image_16062025_01_16_04_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/01/15/image_16062025_01_15_53_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93555470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93555470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93555470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:17:47.047574
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_17_04_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_16_54_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_16_44_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_16_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/15/image_16062025_01_16_04_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/01/15/image_16062025_01_15_53_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb22a3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb22a3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb22a3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:18:02.492367
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_17_04_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_16_54_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_16_44_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_16_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/15/image_16062025_01_16_04_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/01/15/image_16062025_01_15_53_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c33c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c33c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c33c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:18:17.137236
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/18/image_16062025_01_18_34_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/18/image_16062025_01_18_24_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/18/image_16062025_01_18_13_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/01/17/image_16062025_01_18_04_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/01/17/image_16062025_01_17_43_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_17_04_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79fd8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79fd8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79fd8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:18:32.221202
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/18/image_16062025_01_18_34_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/18/image_16062025_01_18_24_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/18/image_16062025_01_18_13_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/01/17/image_16062025_01_18_04_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/01/17/image_16062025_01_17_43_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_17_04_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9c79470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9c79470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9c79470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:18:47.119374
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/18/image_16062025_01_18_34_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/18/image_16062025_01_18_24_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/18/image_16062025_01_18_13_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/01/17/image_16062025_01_18_04_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/01/17/image_16062025_01_17_43_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_17_04_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a77c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a77c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a77c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:19:02.988444
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/18/image_16062025_01_18_34_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/18/image_16062025_01_18_24_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/18/image_16062025_01_18_13_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/01/17/image_16062025_01_18_04_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/01/17/image_16062025_01_17_43_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/16/image_16062025_01_17_04_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9617a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9617a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9617a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:19:17.267401
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/19/image_16062025_01_19_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/01/19/image_16062025_01_19_24_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/19/image_16062025_01_19_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/01/18/image_16062025_01_19_04_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/01/18/image_16062025_01_18_43_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/18/image_16062025_01_18_34_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99884400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99884400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99884400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:19:32.224908
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/19/image_16062025_01_19_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/01/19/image_16062025_01_19_24_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/19/image_16062025_01_19_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/01/18/image_16062025_01_19_04_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/01/18/image_16062025_01_18_43_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/18/image_16062025_01_18_34_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96867470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96867470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96867470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:19:47.229287
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/19/image_16062025_01_19_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/01/19/image_16062025_01_19_24_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/19/image_16062025_01_19_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/01/18/image_16062025_01_19_04_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/01/18/image_16062025_01_18_43_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/18/image_16062025_01_18_34_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e862470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e862470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e862470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:20:02.677286
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/19/image_16062025_01_19_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/01/19/image_16062025_01_19_24_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/19/image_16062025_01_19_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/01/18/image_16062025_01_19_04_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/01/18/image_16062025_01_18_43_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/18/image_16062025_01_18_34_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85c75400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85c75400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85c75400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:20:17.316950
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_44_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_24_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_14_10664.jpg', 2), ('/home/nano/Desktop/images/16062025/01/19/image_16062025_01_20_03_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/01/19/image_16062025_01_19_54_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3eb0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3eb0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3eb0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:20:32.326751
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_44_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_24_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_14_10664.jpg', 2), ('/home/nano/Desktop/images/16062025/01/19/image_16062025_01_20_03_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/01/19/image_16062025_01_19_54_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ae89400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ae89400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ae89400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:20:47.359344
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_44_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_24_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_14_10664.jpg', 2), ('/home/nano/Desktop/images/16062025/01/19/image_16062025_01_20_03_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/01/19/image_16062025_01_19_54_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85ae6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85ae6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85ae6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:21:02.898430
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_44_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_24_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_14_10664.jpg', 2), ('/home/nano/Desktop/images/16062025/01/19/image_16062025_01_20_03_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/01/19/image_16062025_01_19_54_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f922a0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f922a0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f922a0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:21:17.440907
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/21/image_16062025_01_21_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_54_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_44_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_24_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_14_10664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8bf9a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bf9a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bf9a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:21:32.448448
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/21/image_16062025_01_21_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_54_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_44_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_24_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_14_10664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f961d6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f961d6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f961d6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:21:47.475329
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/21/image_16062025_01_21_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_54_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_44_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_24_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_14_10664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb39e1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb39e1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb39e1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:22:02.895131
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/21/image_16062025_01_21_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_54_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_44_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_34_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_24_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_14_10664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fadd8a400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadd8a400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadd8a400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:22:17.586914
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/22/image_16062025_01_22_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/22/image_16062025_01_22_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/22/image_16062025_01_22_14_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/21/image_16062025_01_21_44_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/21/image_16062025_01_21_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89bbf470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89bbf470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89bbf470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:22:32.572196
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/22/image_16062025_01_22_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/22/image_16062025_01_22_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/22/image_16062025_01_22_14_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/21/image_16062025_01_21_44_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/21/image_16062025_01_21_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81eab470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81eab470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81eab470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:22:47.561373
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/22/image_16062025_01_22_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/22/image_16062025_01_22_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/22/image_16062025_01_22_14_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/21/image_16062025_01_21_44_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/21/image_16062025_01_21_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7add6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7add6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7add6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:23:03.121451
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/22/image_16062025_01_22_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/22/image_16062025_01_22_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/22/image_16062025_01_22_14_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/21/image_16062025_01_21_44_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/21/image_16062025_01_21_23_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/20/image_16062025_01_20_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95735470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95735470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95735470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:23:17.680917
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_43_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_13_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/22/image_16062025_01_23_04_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/22/image_16062025_01_22_43_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87969470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87969470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87969470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:23:32.693602
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_43_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_13_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/22/image_16062025_01_23_04_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/22/image_16062025_01_22_43_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90361438>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90361438>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90361438>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:23:47.696857
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_43_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_13_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/22/image_16062025_01_23_04_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/22/image_16062025_01_22_43_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ba36470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ba36470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ba36470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:24:02.382218
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_43_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_13_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/22/image_16062025_01_23_04_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/22/image_16062025_01_22_43_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1fff400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1fff400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1fff400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:24:16.814079
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/24/image_16062025_01_24_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_24_04_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_43_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_24_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb54f6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb54f6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb54f6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:24:31.804421
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/24/image_16062025_01_24_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_24_04_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_43_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_24_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f931f8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f931f8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f931f8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:24:46.756883
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/24/image_16062025_01_24_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_24_04_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_43_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_24_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3fa6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3fa6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3fa6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:25:02.462606
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/24/image_16062025_01_24_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_24_04_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_43_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/23/image_16062025_01_23_24_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2409400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2409400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2409400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:25:16.868314
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_25_44_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_25_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_25_24_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_25_14_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/01/24/image_16062025_01_25_03_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/24/image_16062025_01_24_33_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1f2c400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1f2c400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1f2c400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:25:31.851383
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_25_44_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_25_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_25_24_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_25_14_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/01/24/image_16062025_01_25_03_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/24/image_16062025_01_24_33_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f855a5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f855a5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f855a5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:25:46.901230
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_25_44_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_25_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_25_24_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_25_14_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/01/24/image_16062025_01_25_03_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/24/image_16062025_01_24_33_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2105470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2105470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2105470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:26:02.297693
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_25_44_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_25_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_25_24_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_25_14_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/01/24/image_16062025_01_25_03_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/24/image_16062025_01_24_33_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fa8c400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fa8c400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fa8c400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:26:17.012820
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/26/image_16062025_01_26_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/26/image_16062025_01_26_23_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/26/image_16062025_01_26_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_26_04_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_25_54_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_25_44_9649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa87ef470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa87ef470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa87ef470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:26:32.021207
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/26/image_16062025_01_26_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/26/image_16062025_01_26_23_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/26/image_16062025_01_26_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_26_04_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_25_54_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_25_44_9649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8af00470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8af00470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8af00470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:26:47.002048
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/26/image_16062025_01_26_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/26/image_16062025_01_26_23_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/26/image_16062025_01_26_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_26_04_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_25_54_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_25_44_9649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79a85470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79a85470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79a85470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:27:02.465466
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/26/image_16062025_01_26_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/26/image_16062025_01_26_23_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/26/image_16062025_01_26_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_26_04_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_25_54_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/25/image_16062025_01_25_44_9649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97656470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97656470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97656470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:27:17.198461
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/27/image_16062025_01_27_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/27/image_16062025_01_27_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/27/image_16062025_01_27_24_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/26/image_16062025_01_27_04_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/01/26/image_16062025_01_26_53_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/26/image_16062025_01_26_44_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2fb9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2fb9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2fb9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:27:32.108032
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/27/image_16062025_01_27_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/27/image_16062025_01_27_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/27/image_16062025_01_27_24_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/26/image_16062025_01_27_04_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/01/26/image_16062025_01_26_53_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/26/image_16062025_01_26_44_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76f50470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76f50470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76f50470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:27:47.120339
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/27/image_16062025_01_27_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/27/image_16062025_01_27_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/27/image_16062025_01_27_24_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/26/image_16062025_01_27_04_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/01/26/image_16062025_01_26_53_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/26/image_16062025_01_26_44_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f892470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f892470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f892470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:28:02.598416
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/27/image_16062025_01_27_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/27/image_16062025_01_27_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/27/image_16062025_01_27_24_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/26/image_16062025_01_27_04_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/01/26/image_16062025_01_26_53_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/26/image_16062025_01_26_44_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb23a7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb23a7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb23a7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:28:17.209756
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_43_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_24_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/01/27/image_16062025_01_28_04_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/27/image_16062025_01_27_54_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/27/image_16062025_01_27_43_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4c8e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4c8e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4c8e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:28:32.220804
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_43_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_24_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/01/27/image_16062025_01_28_04_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/27/image_16062025_01_27_54_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/27/image_16062025_01_27_43_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fdd1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fdd1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fdd1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:28:47.218349
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_43_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_24_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/01/27/image_16062025_01_28_04_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/27/image_16062025_01_27_54_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/27/image_16062025_01_27_43_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa0c9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa0c9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa0c9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:29:03.004493
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_43_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_24_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/01/27/image_16062025_01_28_04_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/27/image_16062025_01_27_54_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/27/image_16062025_01_27_43_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a824470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a824470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a824470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:29:17.399686
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/29/image_16062025_01_29_33_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/29/image_16062025_01_29_14_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_43_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_24_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_13_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85ea1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85ea1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85ea1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:29:32.331013
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/29/image_16062025_01_29_33_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/29/image_16062025_01_29_14_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_43_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_24_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_13_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa14ad400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa14ad400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa14ad400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:29:47.334879
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/29/image_16062025_01_29_33_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/29/image_16062025_01_29_14_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_43_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_24_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_13_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f28f400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f28f400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f28f400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:30:02.728461
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/29/image_16062025_01_29_33_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/29/image_16062025_01_29_14_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_43_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_24_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_13_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cc0c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cc0c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cc0c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:30:17.432891
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/29/image_16062025_01_30_03_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/29/image_16062025_01_29_54_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/29/image_16062025_01_29_33_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/29/image_16062025_01_29_14_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_43_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8201f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8201f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8201f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:30:32.445807
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/29/image_16062025_01_30_03_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/29/image_16062025_01_29_54_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/29/image_16062025_01_29_33_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/29/image_16062025_01_29_14_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_43_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94f0e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94f0e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94f0e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:30:47.426653
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/29/image_16062025_01_30_03_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/29/image_16062025_01_29_54_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/29/image_16062025_01_29_33_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/29/image_16062025_01_29_14_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_43_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8abc9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8abc9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8abc9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:31:02.893559
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/29/image_16062025_01_30_03_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/29/image_16062025_01_29_54_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/29/image_16062025_01_29_33_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/29/image_16062025_01_29_14_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/28/image_16062025_01_28_43_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae3e6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae3e6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae3e6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:31:17.525188
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_23_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_14_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/01/30/image_16062025_01_31_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/30/image_16062025_01_30_44_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f871ef470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f871ef470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f871ef470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:31:32.566316
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_23_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_14_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/01/30/image_16062025_01_31_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/30/image_16062025_01_30_44_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89ed6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89ed6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89ed6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:31:47.537216
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_23_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_14_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/01/30/image_16062025_01_31_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/30/image_16062025_01_30_44_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9412c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9412c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9412c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:32:02.928799
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_23_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_14_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/01/30/image_16062025_01_31_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/30/image_16062025_01_30_44_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d53f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d53f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d53f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:32:17.636581
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/32/image_16062025_01_32_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/32/image_16062025_01_32_24_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_32_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_53_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_34_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f508470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f508470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f508470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:32:32.631438
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/32/image_16062025_01_32_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/32/image_16062025_01_32_24_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_32_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_53_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_34_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ff66470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ff66470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ff66470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:32:47.678029
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/32/image_16062025_01_32_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/32/image_16062025_01_32_24_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_32_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_53_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_34_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9af3b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9af3b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9af3b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:33:02.275963
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/32/image_16062025_01_32_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/32/image_16062025_01_32_24_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_32_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_53_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/31/image_16062025_01_31_34_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8106d400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8106d400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8106d400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:33:16.775357
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/33/image_16062025_01_33_43_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/33/image_16062025_01_33_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/33/image_16062025_01_33_24_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/33/image_16062025_01_33_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/32/image_16062025_01_32_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/32/image_16062025_01_32_34_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d2b6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d2b6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d2b6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:33:31.794150
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/33/image_16062025_01_33_43_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/33/image_16062025_01_33_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/33/image_16062025_01_33_24_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/33/image_16062025_01_33_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/32/image_16062025_01_32_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/32/image_16062025_01_32_34_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99134400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99134400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99134400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:33:46.800643
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/33/image_16062025_01_33_43_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/33/image_16062025_01_33_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/33/image_16062025_01_33_24_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/33/image_16062025_01_33_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/32/image_16062025_01_32_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/32/image_16062025_01_32_34_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d3fc470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d3fc470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d3fc470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:34:02.636490
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/33/image_16062025_01_33_43_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/33/image_16062025_01_33_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/33/image_16062025_01_33_24_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/33/image_16062025_01_33_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/32/image_16062025_01_32_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/32/image_16062025_01_32_34_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a81f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a81f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a81f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:34:16.889147
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_44_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_33_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_24_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_14_10657.jpg', 2), ('/home/nano/Desktop/images/16062025/01/33/image_16062025_01_34_04_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/01/33/image_16062025_01_33_54_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90eb5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90eb5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90eb5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:34:31.896000
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_44_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_33_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_24_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_14_10657.jpg', 2), ('/home/nano/Desktop/images/16062025/01/33/image_16062025_01_34_04_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/01/33/image_16062025_01_33_54_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9e57470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9e57470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9e57470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:34:46.893720
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_44_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_33_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_24_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_14_10657.jpg', 2), ('/home/nano/Desktop/images/16062025/01/33/image_16062025_01_34_04_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/01/33/image_16062025_01_33_54_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89d54470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89d54470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89d54470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:35:02.536234
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_44_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_33_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_24_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_14_10657.jpg', 2), ('/home/nano/Desktop/images/16062025/01/33/image_16062025_01_34_04_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/01/33/image_16062025_01_33_54_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa53e5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa53e5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa53e5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:35:17.013791
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/35/image_16062025_01_35_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/01/35/image_16062025_01_35_14_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_35_03_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_54_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_44_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_33_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bd25470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bd25470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bd25470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:35:32.028249
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/35/image_16062025_01_35_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/01/35/image_16062025_01_35_14_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_35_03_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_54_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_44_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_33_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99797470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99797470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99797470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:35:47.103688
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/35/image_16062025_01_35_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/01/35/image_16062025_01_35_14_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_35_03_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_54_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_44_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_33_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83d69470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83d69470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83d69470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:36:02.486902
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/35/image_16062025_01_35_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/01/35/image_16062025_01_35_14_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_35_03_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_54_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_44_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_33_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2ccb400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2ccb400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2ccb400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:36:17.183670
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/36/image_16062025_01_36_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/35/image_16062025_01_35_53_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/35/image_16062025_01_35_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/01/35/image_16062025_01_35_14_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_35_03_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_54_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91401470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91401470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91401470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:36:32.170734
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/36/image_16062025_01_36_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/35/image_16062025_01_35_53_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/35/image_16062025_01_35_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/01/35/image_16062025_01_35_14_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_35_03_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_54_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7facba5400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facba5400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facba5400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:36:47.191733
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/36/image_16062025_01_36_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/35/image_16062025_01_35_53_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/35/image_16062025_01_35_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/01/35/image_16062025_01_35_14_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_35_03_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_54_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f913b9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f913b9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f913b9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:37:02.755352
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/36/image_16062025_01_36_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/35/image_16062025_01_35_53_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/35/image_16062025_01_35_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/01/35/image_16062025_01_35_14_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_35_03_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/01/34/image_16062025_01_34_54_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa08fb470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa08fb470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa08fb470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:37:17.274018
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/37/image_16062025_01_37_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/37/image_16062025_01_37_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/37/image_16062025_01_37_24_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/01/37/image_16062025_01_37_14_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/01/36/image_16062025_01_37_04_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/01/36/image_16062025_01_36_23_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7ec9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7ec9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7ec9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:37:32.284258
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/37/image_16062025_01_37_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/37/image_16062025_01_37_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/37/image_16062025_01_37_24_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/01/37/image_16062025_01_37_14_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/01/36/image_16062025_01_37_04_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/01/36/image_16062025_01_36_23_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb163e4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb163e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb163e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:37:47.275956
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/37/image_16062025_01_37_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/37/image_16062025_01_37_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/37/image_16062025_01_37_24_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/01/37/image_16062025_01_37_14_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/01/36/image_16062025_01_37_04_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/01/36/image_16062025_01_36_23_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa333470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa333470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa333470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:38:02.651708
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/37/image_16062025_01_37_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/37/image_16062025_01_37_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/37/image_16062025_01_37_24_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/01/37/image_16062025_01_37_14_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/01/36/image_16062025_01_37_04_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/01/36/image_16062025_01_36_23_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b253400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b253400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b253400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:38:17.396983
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/01/37/image_16062025_01_38_04_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/37/image_16062025_01_37_54_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ebb2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ebb2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ebb2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:38:32.383466
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/01/37/image_16062025_01_38_04_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/37/image_16062025_01_37_54_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5599470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5599470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5599470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:38:47.390591
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/01/37/image_16062025_01_38_04_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/37/image_16062025_01_37_54_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98dcc470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98dcc470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98dcc470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:39:03.217526
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/39/image_16062025_01_39_14_10684.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_13_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/01/37/image_16062025_01_38_04_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d678470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d678470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d678470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:39:17.492484
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/39/image_16062025_01_39_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/39/image_16062025_01_39_14_10684.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_39_04_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_54_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_34_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86a08400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86a08400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86a08400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:39:32.485051
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/39/image_16062025_01_39_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/39/image_16062025_01_39_14_10684.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_39_04_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_54_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_34_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7751e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7751e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7751e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:39:47.498113
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/39/image_16062025_01_39_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/39/image_16062025_01_39_14_10684.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_39_04_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_54_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_34_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a12b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a12b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a12b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:40:02.934106
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/39/image_16062025_01_39_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/39/image_16062025_01_39_14_10684.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_39_04_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_54_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_43_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/38/image_16062025_01_38_34_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1b33470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1b33470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1b33470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:40:17.591009
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_40_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_40_33_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_40_24_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/39/image_16062025_01_39_54_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/39/image_16062025_01_39_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/39/image_16062025_01_39_14_10684.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8be6e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8be6e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8be6e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:40:32.602562
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_40_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_40_33_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_40_24_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/39/image_16062025_01_39_54_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/39/image_16062025_01_39_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/39/image_16062025_01_39_14_10684.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97f55470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97f55470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97f55470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:40:47.587376
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_40_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_40_33_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_40_24_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/39/image_16062025_01_39_54_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/39/image_16062025_01_39_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/39/image_16062025_01_39_14_10684.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89d5d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89d5d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89d5d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:41:03.248910
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_40_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_40_33_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_40_24_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/39/image_16062025_01_39_54_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/39/image_16062025_01_39_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/39/image_16062025_01_39_14_10684.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92a30470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92a30470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92a30470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:41:17.748658
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/41/image_16062025_01_41_44_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/41/image_16062025_01_41_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_41_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_40_54_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_40_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_40_33_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8df1e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8df1e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8df1e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:41:32.687828
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/41/image_16062025_01_41_44_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/41/image_16062025_01_41_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_41_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_40_54_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_40_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_40_33_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac41c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac41c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac41c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:41:47.709346
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/41/image_16062025_01_41_44_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/41/image_16062025_01_41_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_41_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_40_54_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_40_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_40_33_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa158b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa158b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa158b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:42:02.075893
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/41/image_16062025_01_41_44_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/41/image_16062025_01_41_34_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_41_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_40_54_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_40_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/40/image_16062025_01_40_33_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93a0d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93a0d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93a0d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:42:16.791613
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_42_44_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_42_34_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_42_23_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_42_14_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/41/image_16062025_01_42_04_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/01/41/image_16062025_01_41_53_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7dc56470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dc56470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dc56470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:42:31.789841
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_42_44_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_42_34_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_42_23_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_42_14_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/41/image_16062025_01_42_04_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/01/41/image_16062025_01_41_53_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9618b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9618b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9618b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:42:46.784246
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_42_44_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_42_34_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_42_23_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_42_14_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/41/image_16062025_01_42_04_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/01/41/image_16062025_01_41_53_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b3a2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b3a2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b3a2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:43:02.285344
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_42_44_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_42_34_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_42_23_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_42_14_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/41/image_16062025_01_42_04_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/01/41/image_16062025_01_41_53_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3092470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3092470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3092470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:43:16.885405
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/43/image_16062025_01_43_43_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/43/image_16062025_01_43_24_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/43/image_16062025_01_43_13_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_43_04_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_42_54_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_42_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fabd53470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabd53470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabd53470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:43:31.892069
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/43/image_16062025_01_43_43_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/43/image_16062025_01_43_24_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/43/image_16062025_01_43_13_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_43_04_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_42_54_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_42_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9070400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9070400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9070400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:43:46.877842
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/43/image_16062025_01_43_43_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/43/image_16062025_01_43_24_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/43/image_16062025_01_43_13_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_43_04_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_42_54_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_42_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ddab470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ddab470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ddab470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:44:02.567675
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/43/image_16062025_01_43_43_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/43/image_16062025_01_43_24_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/43/image_16062025_01_43_13_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_43_04_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_42_54_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/01/42/image_16062025_01_42_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7facd69470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facd69470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facd69470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:44:17.025318
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/44/image_16062025_01_44_44_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/01/44/image_16062025_01_44_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/01/44/image_16062025_01_44_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/44/image_16062025_01_44_13_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/01/43/image_16062025_01_44_04_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/43/image_16062025_01_43_54_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faaadf470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaadf470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaadf470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:44:31.986987
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/44/image_16062025_01_44_44_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/01/44/image_16062025_01_44_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/01/44/image_16062025_01_44_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/44/image_16062025_01_44_13_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/01/43/image_16062025_01_44_04_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/43/image_16062025_01_43_54_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8cc6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8cc6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8cc6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:44:47.000245
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/44/image_16062025_01_44_44_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/01/44/image_16062025_01_44_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/01/44/image_16062025_01_44_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/44/image_16062025_01_44_13_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/01/43/image_16062025_01_44_04_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/43/image_16062025_01_43_54_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99cf1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99cf1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99cf1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:45:02.719697
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/44/image_16062025_01_44_44_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/01/44/image_16062025_01_44_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/01/44/image_16062025_01_44_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/44/image_16062025_01_44_13_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/01/43/image_16062025_01_44_04_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/43/image_16062025_01_43_54_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91762470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91762470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91762470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:45:17.082361
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_45_44_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_45_33_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_45_24_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_45_14_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/01/44/image_16062025_01_44_54_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/44/image_16062025_01_44_44_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0d58470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0d58470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0d58470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:45:32.131544
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_45_44_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_45_33_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_45_24_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_45_14_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/01/44/image_16062025_01_44_54_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/44/image_16062025_01_44_44_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9be3a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9be3a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9be3a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:45:47.093527
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_45_44_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_45_33_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_45_24_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_45_14_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/01/44/image_16062025_01_44_54_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/44/image_16062025_01_44_44_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98e91470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98e91470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98e91470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:46:02.489274
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_45_44_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_45_33_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_45_24_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_45_14_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/01/44/image_16062025_01_44_54_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/01/44/image_16062025_01_44_44_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f46b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f46b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f46b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:46:17.249312
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/46/image_16062025_01_46_34_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/01/46/image_16062025_01_46_24_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/01/46/image_16062025_01_46_14_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_46_04_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_45_54_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_45_44_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b311470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b311470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b311470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:46:32.197006
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/46/image_16062025_01_46_34_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/01/46/image_16062025_01_46_24_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/01/46/image_16062025_01_46_14_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_46_04_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_45_54_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_45_44_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90e00470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90e00470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90e00470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:46:47.194334
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/46/image_16062025_01_46_34_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/01/46/image_16062025_01_46_24_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/01/46/image_16062025_01_46_14_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_46_04_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_45_54_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_45_44_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f997fd400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f997fd400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f997fd400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:47:02.743857
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/46/image_16062025_01_46_34_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/01/46/image_16062025_01_46_24_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/01/46/image_16062025_01_46_14_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_46_04_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_45_54_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/01/45/image_16062025_01_45_44_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9a27470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9a27470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9a27470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:47:17.364888
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/47/image_16062025_01_47_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/01/47/image_16062025_01_47_34_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/47/image_16062025_01_47_23_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/01/47/image_16062025_01_47_14_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/46/image_16062025_01_46_44_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/46/image_16062025_01_46_34_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb28cb400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb28cb400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb28cb400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:47:32.366193
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/47/image_16062025_01_47_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/01/47/image_16062025_01_47_34_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/47/image_16062025_01_47_23_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/01/47/image_16062025_01_47_14_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/46/image_16062025_01_46_44_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/46/image_16062025_01_46_34_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5e2b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5e2b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5e2b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:47:47.299484
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/47/image_16062025_01_47_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/01/47/image_16062025_01_47_34_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/47/image_16062025_01_47_23_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/01/47/image_16062025_01_47_14_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/46/image_16062025_01_46_44_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/46/image_16062025_01_46_34_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99a10470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99a10470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99a10470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:48:02.738960
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/47/image_16062025_01_47_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/01/47/image_16062025_01_47_34_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/47/image_16062025_01_47_23_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/01/47/image_16062025_01_47_14_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/46/image_16062025_01_46_44_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/46/image_16062025_01_46_34_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faaf25470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaf25470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaf25470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:48:17.388189
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_13_9653.jpg', 2), ('/home/nano/Desktop/images/16062025/01/47/image_16062025_01_48_04_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/47/image_16062025_01_47_54_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d764470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d764470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d764470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:48:32.399048
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_13_9653.jpg', 2), ('/home/nano/Desktop/images/16062025/01/47/image_16062025_01_48_04_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/47/image_16062025_01_47_54_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fe3f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fe3f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fe3f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:48:47.408315
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_13_9653.jpg', 2), ('/home/nano/Desktop/images/16062025/01/47/image_16062025_01_48_04_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/47/image_16062025_01_47_54_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8af12400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8af12400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8af12400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:49:03.428116
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_13_9653.jpg', 2), ('/home/nano/Desktop/images/16062025/01/47/image_16062025_01_48_04_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/47/image_16062025_01_47_54_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97d40400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97d40400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97d40400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:49:17.543866
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/49/image_16062025_01_49_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_49_04_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_24_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faacd7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faacd7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faacd7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:49:32.546886
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/49/image_16062025_01_49_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_49_04_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_24_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb22f7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb22f7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb22f7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:49:47.550685
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/49/image_16062025_01_49_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_49_04_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_24_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa86f5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa86f5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa86f5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:50:02.981802
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/49/image_16062025_01_49_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_49_04_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_24_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3724470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3724470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3724470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:50:17.624534
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/50/image_16062025_01_50_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/50/image_16062025_01_50_24_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/49/image_16062025_01_49_54_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/01/49/image_16062025_01_49_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_49_04_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_54_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fadab5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadab5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadab5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:50:32.622239
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/50/image_16062025_01_50_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/50/image_16062025_01_50_24_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/49/image_16062025_01_49_54_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/01/49/image_16062025_01_49_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_49_04_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_54_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5036470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5036470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5036470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:50:47.643919
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/50/image_16062025_01_50_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/50/image_16062025_01_50_24_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/49/image_16062025_01_49_54_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/01/49/image_16062025_01_49_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_49_04_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_54_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7671c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7671c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7671c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:51:03.301517
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/50/image_16062025_01_50_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/50/image_16062025_01_50_24_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/01/49/image_16062025_01_49_54_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/01/49/image_16062025_01_49_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_49_04_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/48/image_16062025_01_48_54_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f914b9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f914b9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f914b9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:51:17.747470
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/51/image_16062025_01_51_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/51/image_16062025_01_51_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/51/image_16062025_01_51_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/01/50/image_16062025_01_51_04_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/50/image_16062025_01_50_54_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/01/50/image_16062025_01_50_44_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94e46400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94e46400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94e46400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:51:32.734695
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/51/image_16062025_01_51_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/51/image_16062025_01_51_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/51/image_16062025_01_51_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/01/50/image_16062025_01_51_04_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/50/image_16062025_01_50_54_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/01/50/image_16062025_01_50_44_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88a84470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88a84470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88a84470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:51:47.804890
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/51/image_16062025_01_51_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/51/image_16062025_01_51_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/51/image_16062025_01_51_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/01/50/image_16062025_01_51_04_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/50/image_16062025_01_50_54_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/01/50/image_16062025_01_50_44_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8da3e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8da3e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8da3e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:52:02.319459
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/51/image_16062025_01_51_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/51/image_16062025_01_51_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/51/image_16062025_01_51_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/01/50/image_16062025_01_51_04_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/50/image_16062025_01_50_54_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/01/50/image_16062025_01_50_44_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9349c400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9349c400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9349c400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:52:16.953327
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_43_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_34_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_24_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_14_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/01/51/image_16062025_01_52_04_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/01/51/image_16062025_01_51_53_9612.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4bb2400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4bb2400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4bb2400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:52:31.895545
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_43_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_34_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_24_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_14_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/01/51/image_16062025_01_52_04_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/01/51/image_16062025_01_51_53_9612.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9719a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9719a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9719a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:52:46.892527
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_43_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_34_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_24_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_14_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/01/51/image_16062025_01_52_04_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/01/51/image_16062025_01_51_53_9612.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f087470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f087470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f087470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:53:02.555590
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_43_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_34_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_24_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_14_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/01/51/image_16062025_01_52_04_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/01/51/image_16062025_01_51_53_9612.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a237470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a237470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a237470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:53:16.976362
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/53/image_16062025_01_53_24_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/01/53/image_16062025_01_53_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_53_04_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_54_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_43_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_34_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c5f7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c5f7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c5f7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:53:32.013631
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/53/image_16062025_01_53_24_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/01/53/image_16062025_01_53_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_53_04_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_54_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_43_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_34_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa3a0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa3a0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa3a0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:53:47.002992
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/53/image_16062025_01_53_24_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/01/53/image_16062025_01_53_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_53_04_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_54_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_43_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_34_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faeb9e400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faeb9e400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faeb9e400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:54:02.735965
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/53/image_16062025_01_53_24_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/01/53/image_16062025_01_53_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_53_04_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_54_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_43_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/52/image_16062025_01_52_34_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2a82470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2a82470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2a82470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:54:17.105633
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/54/image_16062025_01_54_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/01/54/image_16062025_01_54_24_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/01/54/image_16062025_01_54_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/01/53/image_16062025_01_54_03_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/53/image_16062025_01_53_54_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/01/53/image_16062025_01_53_24_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2165400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2165400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2165400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:54:32.102929
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/54/image_16062025_01_54_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/01/54/image_16062025_01_54_24_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/01/54/image_16062025_01_54_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/01/53/image_16062025_01_54_03_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/53/image_16062025_01_53_54_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/01/53/image_16062025_01_53_24_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f809e5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f809e5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f809e5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:54:47.101016
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/54/image_16062025_01_54_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/01/54/image_16062025_01_54_24_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/01/54/image_16062025_01_54_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/01/53/image_16062025_01_54_03_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/53/image_16062025_01_53_54_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/01/53/image_16062025_01_53_24_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9df93470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9df93470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9df93470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:55:02.663703
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/54/image_16062025_01_54_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/01/54/image_16062025_01_54_24_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/01/54/image_16062025_01_54_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/01/53/image_16062025_01_54_03_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/53/image_16062025_01_53_54_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/01/53/image_16062025_01_53_24_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf3da400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf3da400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf3da400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:55:17.242460
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/55/image_16062025_01_55_34_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/01/55/image_16062025_01_55_24_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/55/image_16062025_01_55_14_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/01/54/image_16062025_01_55_03_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/54/image_16062025_01_54_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/54/image_16062025_01_54_33_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4a0a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4a0a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4a0a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:55:32.210472
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/55/image_16062025_01_55_34_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/01/55/image_16062025_01_55_24_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/55/image_16062025_01_55_14_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/01/54/image_16062025_01_55_03_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/54/image_16062025_01_54_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/54/image_16062025_01_54_33_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae9ce470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae9ce470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae9ce470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:55:47.203603
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/55/image_16062025_01_55_34_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/01/55/image_16062025_01_55_24_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/55/image_16062025_01_55_14_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/01/54/image_16062025_01_55_03_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/54/image_16062025_01_54_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/54/image_16062025_01_54_33_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f963bd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f963bd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f963bd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:56:02.650538
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/55/image_16062025_01_55_34_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/01/55/image_16062025_01_55_24_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/55/image_16062025_01_55_14_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/01/54/image_16062025_01_55_03_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/01/54/image_16062025_01_54_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/54/image_16062025_01_54_33_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87fed470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87fed470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87fed470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:56:17.343261
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/56/image_16062025_01_56_44_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/01/56/image_16062025_01_56_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/56/image_16062025_01_56_23_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/01/55/image_16062025_01_56_04_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/55/image_16062025_01_55_53_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/01/55/image_16062025_01_55_34_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93701470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93701470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93701470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:56:32.387986
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/56/image_16062025_01_56_44_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/01/56/image_16062025_01_56_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/56/image_16062025_01_56_23_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/01/55/image_16062025_01_56_04_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/55/image_16062025_01_55_53_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/01/55/image_16062025_01_55_34_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f812d7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f812d7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f812d7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:56:47.303971
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/56/image_16062025_01_56_44_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/01/56/image_16062025_01_56_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/56/image_16062025_01_56_23_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/01/55/image_16062025_01_56_04_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/55/image_16062025_01_55_53_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/01/55/image_16062025_01_55_34_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0c21470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0c21470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0c21470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:57:02.898870
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/56/image_16062025_01_56_44_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/01/56/image_16062025_01_56_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/56/image_16062025_01_56_23_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/01/55/image_16062025_01_56_04_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/55/image_16062025_01_55_53_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/01/55/image_16062025_01_55_34_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96e81400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96e81400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96e81400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:57:17.451501
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/57/image_16062025_01_57_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/01/57/image_16062025_01_57_34_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/01/57/image_16062025_01_57_24_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/01/57/image_16062025_01_57_13_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/56/image_16062025_01_57_04_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/01/56/image_16062025_01_56_54_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9210b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9210b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9210b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:57:32.409166
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/57/image_16062025_01_57_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/01/57/image_16062025_01_57_34_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/01/57/image_16062025_01_57_24_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/01/57/image_16062025_01_57_13_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/56/image_16062025_01_57_04_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/01/56/image_16062025_01_56_54_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89e27470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89e27470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89e27470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:57:47.434977
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/57/image_16062025_01_57_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/01/57/image_16062025_01_57_34_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/01/57/image_16062025_01_57_24_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/01/57/image_16062025_01_57_13_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/01/56/image_16062025_01_57_04_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/01/56/image_16062025_01_56_54_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a297470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a297470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a297470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:58:32.542937
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/58/image_16062025_01_58_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/01/58/image_16062025_01_58_14_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/57/image_16062025_01_58_04_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/57/image_16062025_01_57_54_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/57/image_16062025_01_57_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/01/57/image_16062025_01_57_34_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f968f7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f968f7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f968f7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:58:47.535656
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/58/image_16062025_01_58_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/01/58/image_16062025_01_58_14_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/57/image_16062025_01_58_04_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/57/image_16062025_01_57_54_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/57/image_16062025_01_57_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/01/57/image_16062025_01_57_34_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7166470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7166470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7166470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:59:03.354339
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/58/image_16062025_01_58_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/01/58/image_16062025_01_58_14_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/01/57/image_16062025_01_58_04_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/57/image_16062025_01_57_54_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/01/57/image_16062025_01_57_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/01/57/image_16062025_01_57_34_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8289470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8289470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8289470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:59:17.784211
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/59/image_16062025_01_59_24_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/01/59/image_16062025_01_59_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/01/58/image_16062025_01_59_03_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/01/58/image_16062025_01_58_54_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/58/image_16062025_01_58_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/01/58/image_16062025_01_58_14_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7dcfa470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dcfa470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dcfa470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:59:32.630048
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/59/image_16062025_01_59_24_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/01/59/image_16062025_01_59_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/01/58/image_16062025_01_59_03_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/01/58/image_16062025_01_58_54_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/58/image_16062025_01_58_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/01/58/image_16062025_01_58_14_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7cb0f400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cb0f400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cb0f400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 01:59:47.755662
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/59/image_16062025_01_59_24_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/01/59/image_16062025_01_59_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/01/58/image_16062025_01_59_03_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/01/58/image_16062025_01_58_54_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/58/image_16062025_01_58_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/01/58/image_16062025_01_58_14_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fe2b400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fe2b400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fe2b400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:00:02.249695
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/01/59/image_16062025_01_59_24_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/01/59/image_16062025_01_59_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/01/58/image_16062025_01_59_03_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/01/58/image_16062025_01_58_54_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/01/58/image_16062025_01_58_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/01/58/image_16062025_01_58_14_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad1c9400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad1c9400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad1c9400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:00:16.870507
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/00/image_16062025_02_00_14_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/01/59/image_16062025_02_00_04_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/01/59/image_16062025_01_59_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/59/image_16062025_01_59_24_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/01/59/image_16062025_01_59_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/01/58/image_16062025_01_59_03_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e6fa470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e6fa470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e6fa470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:00:31.888314
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/00/image_16062025_02_00_14_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/01/59/image_16062025_02_00_04_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/01/59/image_16062025_01_59_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/59/image_16062025_01_59_24_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/01/59/image_16062025_01_59_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/01/58/image_16062025_01_59_03_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b858470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b858470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b858470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:00:46.880920
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/00/image_16062025_02_00_14_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/01/59/image_16062025_02_00_04_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/01/59/image_16062025_01_59_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/59/image_16062025_01_59_24_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/01/59/image_16062025_01_59_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/01/58/image_16062025_01_59_03_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f989cc470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f989cc470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f989cc470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:01:02.514613
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/00/image_16062025_02_00_14_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/01/59/image_16062025_02_00_04_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/01/59/image_16062025_01_59_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/01/59/image_16062025_01_59_24_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/01/59/image_16062025_01_59_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/01/58/image_16062025_01_59_03_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad775470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad775470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad775470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:01:16.950207
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_34_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_24_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_14_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/02/00/image_16062025_02_01_04_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/00/image_16062025_02_00_34_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/00/image_16062025_02_00_14_9659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97ea3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97ea3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97ea3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:01:31.959063
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_34_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_24_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_14_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/02/00/image_16062025_02_01_04_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/00/image_16062025_02_00_34_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/00/image_16062025_02_00_14_9659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9320f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9320f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9320f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:01:46.977580
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_34_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_24_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_14_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/02/00/image_16062025_02_01_04_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/00/image_16062025_02_00_34_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/00/image_16062025_02_00_14_9659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f24b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f24b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f24b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:02:02.353678
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_34_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_24_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_14_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/02/00/image_16062025_02_01_04_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/00/image_16062025_02_00_34_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/00/image_16062025_02_00_14_9659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d32a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d32a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d32a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:02:17.093395
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_02_44_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_02_13_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_34_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_24_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_14_9658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8bf95470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bf95470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bf95470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:02:32.086568
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_02_44_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_02_13_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_34_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_24_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_14_9658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f940d0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f940d0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f940d0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:02:47.084633
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_02_44_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_02_13_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_34_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_24_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_14_9658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f894bb470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f894bb470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f894bb470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:03:02.703772
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_02_44_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_02_13_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_34_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_24_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/01/image_16062025_02_01_14_9658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81efc470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81efc470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81efc470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:03:17.187632
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/03/image_16062025_02_03_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/03/image_16062025_02_03_33_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_03_04_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_02_54_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_02_44_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_02_13_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa395400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa395400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa395400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:03:32.164846
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/03/image_16062025_02_03_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/03/image_16062025_02_03_33_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_03_04_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_02_54_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_02_44_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_02_13_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96ff9400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96ff9400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96ff9400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:03:47.217950
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/03/image_16062025_02_03_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/03/image_16062025_02_03_33_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_03_04_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_02_54_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_02_44_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_02_13_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa50b7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa50b7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa50b7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:04:02.683790
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/03/image_16062025_02_03_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/03/image_16062025_02_03_33_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_03_04_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_02_54_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_02_44_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_02_13_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6adc470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6adc470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6adc470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:04:17.338629
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/04/image_16062025_02_04_34_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/02/03/image_16062025_02_03_54_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/03/image_16062025_02_03_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/03/image_16062025_02_03_33_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_03_04_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_02_54_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87bc2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87bc2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87bc2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:04:32.296116
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/04/image_16062025_02_04_34_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/02/03/image_16062025_02_03_54_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/03/image_16062025_02_03_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/03/image_16062025_02_03_33_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_03_04_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_02_54_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8da42400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8da42400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8da42400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:04:47.283589
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/04/image_16062025_02_04_34_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/02/03/image_16062025_02_03_54_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/03/image_16062025_02_03_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/03/image_16062025_02_03_33_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_03_04_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_02_54_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1f7f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1f7f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1f7f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:05:02.811932
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/04/image_16062025_02_04_34_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/02/03/image_16062025_02_03_54_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/03/image_16062025_02_03_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/03/image_16062025_02_03_33_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_03_04_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/02/image_16062025_02_02_54_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88416470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88416470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88416470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:05:17.404859
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_05_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_05_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_05_23_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/02/04/image_16062025_02_04_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/04/image_16062025_02_04_34_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/02/03/image_16062025_02_03_54_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90eae470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90eae470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90eae470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:05:32.390807
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_05_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_05_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_05_23_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/02/04/image_16062025_02_04_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/04/image_16062025_02_04_34_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/02/03/image_16062025_02_03_54_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5264470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5264470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5264470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:05:47.379486
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_05_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_05_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_05_23_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/02/04/image_16062025_02_04_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/04/image_16062025_02_04_34_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/02/03/image_16062025_02_03_54_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e31a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e31a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e31a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:06:02.897186
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/06/image_16062025_02_06_43_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_05_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_05_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_05_23_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/02/04/image_16062025_02_04_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/04/image_16062025_02_04_34_10623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0c66470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0c66470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0c66470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:06:17.497257
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/06/image_16062025_02_06_43_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/06/image_16062025_02_06_13_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_06_04_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_05_54_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_05_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_05_34_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89f9c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89f9c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89f9c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:06:32.500239
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/06/image_16062025_02_06_43_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/06/image_16062025_02_06_13_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_06_04_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_05_54_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_05_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_05_34_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4e21470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4e21470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4e21470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:06:47.488764
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/06/image_16062025_02_06_43_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/06/image_16062025_02_06_13_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_06_04_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_05_54_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_05_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_05_34_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f869c6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f869c6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f869c6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:07:03.118710
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/06/image_16062025_02_06_43_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/06/image_16062025_02_06_13_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_06_04_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_05_54_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_05_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_05_34_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f15b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f15b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f15b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:07:17.652772
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/07/image_16062025_02_07_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/07/image_16062025_02_07_13_9732.jpg', 2), ('/home/nano/Desktop/images/16062025/02/06/image_16062025_02_06_43_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/06/image_16062025_02_06_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/06/image_16062025_02_06_13_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_06_04_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1ec2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1ec2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1ec2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:07:32.568137
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/07/image_16062025_02_07_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/07/image_16062025_02_07_13_9732.jpg', 2), ('/home/nano/Desktop/images/16062025/02/06/image_16062025_02_06_43_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/06/image_16062025_02_06_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/06/image_16062025_02_06_13_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_06_04_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f905aa400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f905aa400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f905aa400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:07:47.582402
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/07/image_16062025_02_07_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/07/image_16062025_02_07_13_9732.jpg', 2), ('/home/nano/Desktop/images/16062025/02/06/image_16062025_02_06_43_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/06/image_16062025_02_06_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/06/image_16062025_02_06_13_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_06_04_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e684470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e684470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e684470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:08:02.946875
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/07/image_16062025_02_07_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/07/image_16062025_02_07_13_9732.jpg', 2), ('/home/nano/Desktop/images/16062025/02/06/image_16062025_02_06_43_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/06/image_16062025_02_06_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/06/image_16062025_02_06_13_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/02/05/image_16062025_02_06_04_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98445400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98445400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98445400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:08:17.690623
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_08_33_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_08_24_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_08_14_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/02/07/image_16062025_02_07_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/07/image_16062025_02_07_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/07/image_16062025_02_07_13_9732.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3c98470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3c98470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3c98470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:08:32.708232
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_08_33_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_08_24_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_08_14_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/02/07/image_16062025_02_07_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/07/image_16062025_02_07_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/07/image_16062025_02_07_13_9732.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89317470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89317470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89317470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:08:47.699429
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_08_33_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_08_24_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_08_14_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/02/07/image_16062025_02_07_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/07/image_16062025_02_07_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/07/image_16062025_02_07_13_9732.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76827470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76827470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76827470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:09:02.533474
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_08_33_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_08_24_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_08_14_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/02/07/image_16062025_02_07_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/07/image_16062025_02_07_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/07/image_16062025_02_07_13_9732.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f891fd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f891fd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f891fd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:09:16.773543
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_24_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_09_03_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_08_54_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_08_33_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77e7b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77e7b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77e7b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:09:31.828343
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_24_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_09_03_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_08_54_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_08_33_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5cf7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5cf7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5cf7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:09:46.807375
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_24_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_09_03_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_08_54_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_08_33_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf78c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf78c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf78c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:10:02.309133
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_24_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_09_03_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_08_54_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_08_33_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a18e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a18e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a18e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:10:16.941842
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/10/image_16062025_02_10_14_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_44_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_24_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_09_03_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa80ee470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa80ee470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa80ee470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:10:31.905020
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/10/image_16062025_02_10_14_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_44_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_24_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_09_03_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87010400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87010400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87010400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:10:46.890994
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/10/image_16062025_02_10_14_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_44_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_24_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_09_03_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8588c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8588c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8588c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:11:02.568710
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/10/image_16062025_02_10_14_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_44_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_24_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/02/08/image_16062025_02_09_03_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac3e7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac3e7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac3e7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:11:16.976540
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/11/image_16062025_02_11_24_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/11/image_16062025_02_11_14_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/02/10/image_16062025_02_11_04_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/10/image_16062025_02_10_54_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/10/image_16062025_02_10_14_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_44_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d892470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d892470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d892470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:11:32.006566
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/11/image_16062025_02_11_24_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/11/image_16062025_02_11_14_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/02/10/image_16062025_02_11_04_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/10/image_16062025_02_10_54_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/10/image_16062025_02_10_14_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_44_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5f09470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5f09470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5f09470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:11:46.984711
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/11/image_16062025_02_11_24_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/11/image_16062025_02_11_14_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/02/10/image_16062025_02_11_04_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/10/image_16062025_02_10_54_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/10/image_16062025_02_10_14_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_44_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9049c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9049c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9049c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:12:02.365497
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/11/image_16062025_02_11_24_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/11/image_16062025_02_11_14_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/02/10/image_16062025_02_11_04_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/10/image_16062025_02_10_54_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/10/image_16062025_02_10_14_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/09/image_16062025_02_09_44_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1532470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1532470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1532470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:12:17.102347
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_24_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_13_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/02/11/image_16062025_02_12_04_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/11/image_16062025_02_11_54_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2b79470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2b79470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2b79470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:12:32.080169
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_24_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_13_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/02/11/image_16062025_02_12_04_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/11/image_16062025_02_11_54_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98845470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98845470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98845470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:12:47.062455
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_24_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_13_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/02/11/image_16062025_02_12_04_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/11/image_16062025_02_11_54_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c94a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c94a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c94a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:13:02.587484
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_24_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_13_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/02/11/image_16062025_02_12_04_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/11/image_16062025_02_11_54_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6c89470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6c89470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6c89470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:13:17.193904
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_33_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_24_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_14_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_34_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ff46470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ff46470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ff46470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:13:32.225485
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_33_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_24_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_14_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_34_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb15b2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb15b2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb15b2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:13:47.201486
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_33_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_24_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_14_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_34_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f983fb470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f983fb470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f983fb470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:14:02.925486
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_33_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_24_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_14_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/12/image_16062025_02_12_34_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa25ae400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa25ae400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa25ae400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:14:17.337278
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/14/image_16062025_02_14_34_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/14/image_16062025_02_14_14_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_14_04_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_44_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_33_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_24_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb11f1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb11f1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb11f1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:14:32.318383
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/14/image_16062025_02_14_34_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/14/image_16062025_02_14_14_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_14_04_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_44_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_33_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_24_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7749470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7749470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7749470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:14:47.306213
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/14/image_16062025_02_14_34_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/14/image_16062025_02_14_14_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_14_04_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_44_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_33_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_24_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9026e400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9026e400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9026e400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:15:02.860278
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/15/image_16062025_02_15_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/14/image_16062025_02_14_34_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/14/image_16062025_02_14_14_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_14_04_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_44_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_33_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb61c5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb61c5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb61c5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:15:17.392818
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/15/image_16062025_02_15_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/14/image_16062025_02_14_44_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/14/image_16062025_02_14_34_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/14/image_16062025_02_14_14_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_14_04_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_44_10645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88e80400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88e80400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88e80400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:15:32.426275
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/15/image_16062025_02_15_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/14/image_16062025_02_14_44_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/14/image_16062025_02_14_34_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/14/image_16062025_02_14_14_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_14_04_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_44_10645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82a5f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82a5f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82a5f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:15:47.398930
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/15/image_16062025_02_15_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/14/image_16062025_02_14_44_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/14/image_16062025_02_14_34_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/14/image_16062025_02_14_14_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_14_04_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_44_10645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bc14470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bc14470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bc14470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:16:02.818233
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/15/image_16062025_02_15_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/14/image_16062025_02_14_44_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/14/image_16062025_02_14_34_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/14/image_16062025_02_14_14_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_14_04_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/02/13/image_16062025_02_13_44_10645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92433400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92433400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92433400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:16:17.547939
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_43_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_24_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_13_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/15/image_16062025_02_16_04_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/15/image_16062025_02_15_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/15/image_16062025_02_15_14_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1c58470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1c58470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1c58470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:16:32.523269
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_43_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_24_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_13_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/15/image_16062025_02_16_04_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/15/image_16062025_02_15_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/15/image_16062025_02_15_14_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae663470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae663470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae663470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:16:47.506017
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_43_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_24_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_13_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/15/image_16062025_02_16_04_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/15/image_16062025_02_15_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/15/image_16062025_02_15_14_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80949400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80949400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80949400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:17:03.012504
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_43_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_24_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_13_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/15/image_16062025_02_16_04_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/15/image_16062025_02_15_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/15/image_16062025_02_15_14_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac9d7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac9d7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac9d7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:17:17.616700
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/17/image_16062025_02_17_24_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/02/17/image_16062025_02_17_14_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_43_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_24_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_13_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2767470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2767470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2767470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:17:32.595811
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/17/image_16062025_02_17_24_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/02/17/image_16062025_02_17_14_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_43_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_24_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_13_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d705470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d705470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d705470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:17:47.616896
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/17/image_16062025_02_17_24_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/02/17/image_16062025_02_17_14_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_43_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_24_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_13_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95e36400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95e36400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95e36400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:18:03.111655
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/17/image_16062025_02_17_24_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/02/17/image_16062025_02_17_14_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_43_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_24_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/02/16/image_16062025_02_16_13_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84664470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84664470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84664470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:18:17.729948
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/18/image_16062025_02_18_44_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/18/image_16062025_02_18_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/18/image_16062025_02_18_24_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/18/image_16062025_02_18_14_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/02/17/image_16062025_02_17_44_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/17/image_16062025_02_17_24_9613.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c8dc470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c8dc470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c8dc470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:18:32.708166
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/18/image_16062025_02_18_44_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/18/image_16062025_02_18_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/18/image_16062025_02_18_24_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/18/image_16062025_02_18_14_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/02/17/image_16062025_02_17_44_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/17/image_16062025_02_17_24_9613.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87a87470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87a87470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87a87470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:18:47.712697
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/18/image_16062025_02_18_44_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/18/image_16062025_02_18_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/18/image_16062025_02_18_24_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/18/image_16062025_02_18_14_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/02/17/image_16062025_02_17_44_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/17/image_16062025_02_17_24_9613.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb28b0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb28b0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb28b0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:19:02.483218
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/18/image_16062025_02_18_44_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/18/image_16062025_02_18_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/18/image_16062025_02_18_24_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/18/image_16062025_02_18_14_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/02/17/image_16062025_02_17_44_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/17/image_16062025_02_17_24_9613.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d0b8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d0b8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d0b8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:19:16.822342
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_23_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_14_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/18/image_16062025_02_18_54_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/18/image_16062025_02_18_44_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ea6a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ea6a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ea6a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:19:31.822686
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_23_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_14_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/18/image_16062025_02_18_54_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/18/image_16062025_02_18_44_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2205400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2205400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2205400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:19:46.808996
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_23_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_14_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/18/image_16062025_02_18_54_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/18/image_16062025_02_18_44_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96be1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96be1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96be1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:20:02.332123
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_23_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_14_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/18/image_16062025_02_18_54_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/18/image_16062025_02_18_44_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa50d7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa50d7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa50d7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:20:16.921174
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/20/image_16062025_02_20_43_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/20/image_16062025_02_20_14_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_23_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6af4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6af4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6af4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:20:31.916938
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/20/image_16062025_02_20_43_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/20/image_16062025_02_20_14_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_23_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e877470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e877470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e877470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:20:46.914211
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/20/image_16062025_02_20_43_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/20/image_16062025_02_20_14_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_23_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1872470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1872470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1872470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:21:02.455359
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/20/image_16062025_02_20_43_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/20/image_16062025_02_20_14_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/19/image_16062025_02_19_23_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa81fe470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa81fe470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa81fe470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:21:16.998831
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/21/image_16062025_02_21_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/21/image_16062025_02_21_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/21/image_16062025_02_21_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/21/image_16062025_02_21_13_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/02/20/image_16062025_02_20_54_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/02/20/image_16062025_02_20_43_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab03e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab03e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab03e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:21:31.978631
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/21/image_16062025_02_21_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/21/image_16062025_02_21_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/21/image_16062025_02_21_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/21/image_16062025_02_21_13_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/02/20/image_16062025_02_20_54_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/02/20/image_16062025_02_20_43_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91fb3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91fb3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91fb3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:21:46.997086
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/21/image_16062025_02_21_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/21/image_16062025_02_21_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/21/image_16062025_02_21_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/21/image_16062025_02_21_13_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/02/20/image_16062025_02_20_54_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/02/20/image_16062025_02_20_43_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9db2b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9db2b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9db2b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:22:02.395688
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/21/image_16062025_02_21_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/21/image_16062025_02_21_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/21/image_16062025_02_21_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/21/image_16062025_02_21_13_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/02/20/image_16062025_02_20_54_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/02/20/image_16062025_02_20_43_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6ee5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6ee5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6ee5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:22:17.125166
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_22_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_22_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_22_24_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_22_14_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/21/image_16062025_02_22_03_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/02/21/image_16062025_02_21_54_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa681f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa681f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa681f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:22:32.121222
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_22_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_22_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_22_24_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_22_14_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/21/image_16062025_02_22_03_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/02/21/image_16062025_02_21_54_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8421d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8421d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8421d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:22:47.108789
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_22_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_22_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_22_24_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_22_14_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/21/image_16062025_02_22_03_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/02/21/image_16062025_02_21_54_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8aed2400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8aed2400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8aed2400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:23:02.537752
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_22_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_22_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_22_24_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_22_14_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/21/image_16062025_02_22_03_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/02/21/image_16062025_02_21_54_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f861ac470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f861ac470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f861ac470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:23:17.216944
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/23/image_16062025_02_23_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/23/image_16062025_02_23_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/23/image_16062025_02_23_14_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_23_04_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_22_54_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_22_44_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ceed470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ceed470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ceed470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:23:32.174740
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/23/image_16062025_02_23_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/23/image_16062025_02_23_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/23/image_16062025_02_23_14_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_23_04_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_22_54_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_22_44_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fabb42400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabb42400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabb42400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:23:47.215684
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/23/image_16062025_02_23_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/23/image_16062025_02_23_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/23/image_16062025_02_23_14_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_23_04_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_22_54_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_22_44_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b0a0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b0a0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b0a0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:24:02.942938
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/23/image_16062025_02_23_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/23/image_16062025_02_23_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/23/image_16062025_02_23_14_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_23_04_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_22_54_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/02/22/image_16062025_02_22_44_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f928400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f928400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f928400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:24:17.316687
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_14_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/02/23/image_16062025_02_24_04_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/23/image_16062025_02_23_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/23/image_16062025_02_23_34_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa78c1400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa78c1400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa78c1400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:24:32.290394
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_14_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/02/23/image_16062025_02_24_04_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/23/image_16062025_02_23_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/23/image_16062025_02_23_34_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac6b4400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac6b4400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac6b4400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:24:47.352557
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_14_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/02/23/image_16062025_02_24_04_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/23/image_16062025_02_23_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/23/image_16062025_02_23_34_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91f33470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91f33470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91f33470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:25:02.961336
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_14_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/02/23/image_16062025_02_24_04_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/23/image_16062025_02_23_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/23/image_16062025_02_23_34_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95066470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95066470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95066470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:25:17.468247
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/25/image_16062025_02_25_13_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_25_04_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_43_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_14_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f3d4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f3d4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f3d4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:25:32.473865
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/25/image_16062025_02_25_13_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_25_04_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_43_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_14_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80995400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80995400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80995400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:25:47.536475
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/25/image_16062025_02_25_13_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_25_04_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_43_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_14_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1cd0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1cd0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1cd0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:26:02.941944
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/25/image_16062025_02_25_13_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_25_04_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_43_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_14_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a839470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a839470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a839470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:26:17.633517
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/26/image_16062025_02_26_24_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/02/25/image_16062025_02_26_04_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/02/25/image_16062025_02_25_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/25/image_16062025_02_25_13_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_25_04_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_43_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8836400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8836400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8836400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:26:32.615012
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/26/image_16062025_02_26_24_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/02/25/image_16062025_02_26_04_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/02/25/image_16062025_02_25_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/25/image_16062025_02_25_13_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_25_04_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_43_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94cc8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94cc8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94cc8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:26:47.599702
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/26/image_16062025_02_26_24_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/02/25/image_16062025_02_26_04_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/02/25/image_16062025_02_25_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/25/image_16062025_02_25_13_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_25_04_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_43_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86ec9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86ec9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86ec9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:27:03.251618
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/26/image_16062025_02_26_24_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/02/25/image_16062025_02_26_04_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/02/25/image_16062025_02_25_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/25/image_16062025_02_25_13_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_25_04_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/02/24/image_16062025_02_24_43_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7b48470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7b48470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7b48470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:27:17.698705
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_44_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_14_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/26/image_16062025_02_27_03_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/26/image_16062025_02_26_54_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/26/image_16062025_02_26_24_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad861470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad861470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad861470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:27:32.703944
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_44_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_14_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/26/image_16062025_02_27_03_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/26/image_16062025_02_26_54_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/26/image_16062025_02_26_24_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8718f400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8718f400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8718f400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:27:47.741295
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_44_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_14_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/26/image_16062025_02_27_03_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/26/image_16062025_02_26_54_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/26/image_16062025_02_26_24_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80353470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80353470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80353470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:28:02.097210
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_44_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_14_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/26/image_16062025_02_27_03_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/26/image_16062025_02_26_54_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/26/image_16062025_02_26_24_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faff7a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faff7a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faff7a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:28:16.875008
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/28/image_16062025_02_28_14_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_28_04_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_53_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_44_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_14_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9127470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9127470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9127470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:28:31.847706
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/28/image_16062025_02_28_14_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_28_04_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_53_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_44_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_14_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97557470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97557470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97557470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:28:46.819491
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/28/image_16062025_02_28_14_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_28_04_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_53_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_44_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_14_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7facb16470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facb16470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facb16470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:29:02.625288
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/28/image_16062025_02_28_14_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_28_04_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_53_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_44_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/27/image_16062025_02_27_14_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac35a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac35a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac35a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:29:16.978159
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_43_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_34_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_24_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_14_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/28/image_16062025_02_29_04_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/02/28/image_16062025_02_28_54_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f861de470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f861de470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f861de470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:29:31.915643
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_43_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_34_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_24_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_14_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/28/image_16062025_02_29_04_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/02/28/image_16062025_02_28_54_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa514f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa514f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa514f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:29:46.928437
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_43_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_34_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_24_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_14_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/28/image_16062025_02_29_04_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/02/28/image_16062025_02_28_54_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafe66470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafe66470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafe66470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:30:02.282902
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_43_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_34_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_24_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_14_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/28/image_16062025_02_29_04_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/02/28/image_16062025_02_28_54_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83405470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83405470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83405470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:30:17.047302
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/30/image_16062025_02_30_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/30/image_16062025_02_30_13_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_43_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_34_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_24_10624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9dae5400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dae5400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dae5400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:30:32.052129
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/30/image_16062025_02_30_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/30/image_16062025_02_30_13_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_43_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_34_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_24_10624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92be7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92be7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92be7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:30:47.057570
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/30/image_16062025_02_30_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/30/image_16062025_02_30_13_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_43_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_34_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_24_10624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a7d3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a7d3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a7d3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:31:02.688271
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/30/image_16062025_02_30_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/30/image_16062025_02_30_13_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_43_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_34_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/29/image_16062025_02_29_24_10624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77bb8400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77bb8400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77bb8400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:31:17.147999
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_31_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_31_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_31_24_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_31_14_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/02/30/image_16062025_02_31_03_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/02/30/image_16062025_02_30_34_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79ec7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79ec7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79ec7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:31:32.174538
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_31_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_31_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_31_24_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_31_14_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/02/30/image_16062025_02_31_03_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/02/30/image_16062025_02_30_34_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e426470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e426470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e426470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:31:47.138058
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_31_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_31_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_31_24_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_31_14_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/02/30/image_16062025_02_31_03_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/02/30/image_16062025_02_30_34_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94889470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94889470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94889470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:32:02.640872
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_31_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_31_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_31_24_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_31_14_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/02/30/image_16062025_02_31_03_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/02/30/image_16062025_02_30_34_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9230e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9230e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9230e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:32:17.260103
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_24_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_32_03_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_31_54_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_31_44_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8eab470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8eab470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8eab470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:32:32.238707
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_24_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_32_03_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_31_54_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_31_44_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faaefc470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaefc470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaefc470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:32:47.221964
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_24_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_32_03_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_31_54_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_31_44_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7943d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7943d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7943d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:33:02.856813
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_24_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_32_03_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_31_54_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/31/image_16062025_02_31_44_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb61ac470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb61ac470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb61ac470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:33:17.336028
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_23_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_14_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_53_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_24_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa472470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa472470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa472470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:33:32.351362
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_23_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_14_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_53_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_24_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8bd92400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bd92400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bd92400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:33:47.316497
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_23_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_14_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_53_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_24_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3c6f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3c6f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3c6f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:34:03.076507
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_23_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_14_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_53_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_24_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ef3f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ef3f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ef3f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:34:17.407350
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/34/image_16062025_02_34_13_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_54_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_23_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_14_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_53_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98c0b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98c0b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98c0b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:34:32.443715
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/34/image_16062025_02_34_13_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_54_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_23_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_14_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_53_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa812470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa812470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa812470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:34:47.456079
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/34/image_16062025_02_34_13_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_54_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_23_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_14_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_53_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8087400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8087400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8087400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:35:02.909347
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/34/image_16062025_02_34_13_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_54_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_23_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/33/image_16062025_02_33_14_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/32/image_16062025_02_32_53_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5241470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5241470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5241470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:35:17.597452
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/35/image_16062025_02_35_44_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/02/35/image_16062025_02_35_33_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/35/image_16062025_02_35_24_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/34/image_16062025_02_35_04_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/02/34/image_16062025_02_34_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/34/image_16062025_02_34_13_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f961aa470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f961aa470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f961aa470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:35:32.536798
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/35/image_16062025_02_35_44_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/02/35/image_16062025_02_35_33_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/35/image_16062025_02_35_24_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/34/image_16062025_02_35_04_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/02/34/image_16062025_02_34_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/34/image_16062025_02_34_13_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa746c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa746c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa746c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:35:47.532689
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/35/image_16062025_02_35_44_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/02/35/image_16062025_02_35_33_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/35/image_16062025_02_35_24_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/34/image_16062025_02_35_04_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/02/34/image_16062025_02_34_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/34/image_16062025_02_34_13_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2c16470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2c16470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2c16470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:36:02.925396
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/35/image_16062025_02_35_44_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/02/35/image_16062025_02_35_33_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/35/image_16062025_02_35_24_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/34/image_16062025_02_35_04_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/02/34/image_16062025_02_34_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/34/image_16062025_02_34_13_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d0a6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d0a6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d0a6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:36:17.630153
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_36_33_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_36_24_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_36_14_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/02/35/image_16062025_02_35_54_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/35/image_16062025_02_35_44_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/02/35/image_16062025_02_35_33_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fadce8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadce8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadce8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:36:32.705927
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_36_33_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_36_24_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_36_14_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/02/35/image_16062025_02_35_54_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/35/image_16062025_02_35_44_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/02/35/image_16062025_02_35_33_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa098d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa098d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa098d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:36:47.628383
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_36_33_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_36_24_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_36_14_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/02/35/image_16062025_02_35_54_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/35/image_16062025_02_35_44_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/02/35/image_16062025_02_35_33_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e3b4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e3b4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e3b4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:37:03.227049
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_36_33_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_36_24_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_36_14_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/02/35/image_16062025_02_35_54_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/35/image_16062025_02_35_44_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/02/35/image_16062025_02_35_33_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ed24400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ed24400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ed24400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:37:17.810824
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/37/image_16062025_02_37_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/37/image_16062025_02_37_23_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_37_04_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_36_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_36_33_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_36_24_9632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f926b4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f926b4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f926b4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:37:32.756811
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/37/image_16062025_02_37_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/37/image_16062025_02_37_23_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_37_04_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_36_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_36_33_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_36_24_9632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f958e7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f958e7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f958e7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:37:47.730759
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/37/image_16062025_02_37_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/37/image_16062025_02_37_23_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_37_04_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_36_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_36_33_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_36_24_9632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb50c6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb50c6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb50c6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:38:02.200313
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/37/image_16062025_02_37_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/37/image_16062025_02_37_23_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_37_04_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_36_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_36_33_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_36_24_9632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5f4e400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5f4e400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5f4e400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:38:16.826269
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/38/image_16062025_02_38_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/38/image_16062025_02_38_23_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/37/image_16062025_02_37_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/37/image_16062025_02_37_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/37/image_16062025_02_37_23_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_37_04_10639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f908b2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f908b2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f908b2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:38:31.856067
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/38/image_16062025_02_38_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/38/image_16062025_02_38_23_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/37/image_16062025_02_37_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/37/image_16062025_02_37_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/37/image_16062025_02_37_23_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_37_04_10639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83560400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83560400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83560400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:38:46.840057
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/38/image_16062025_02_38_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/38/image_16062025_02_38_23_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/37/image_16062025_02_37_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/37/image_16062025_02_37_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/37/image_16062025_02_37_23_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_37_04_10639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95533470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95533470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95533470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:39:02.657141
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/38/image_16062025_02_38_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/38/image_16062025_02_38_23_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/37/image_16062025_02_37_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/37/image_16062025_02_37_34_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/37/image_16062025_02_37_23_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/02/36/image_16062025_02_37_04_10639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8dec8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dec8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dec8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:39:16.927051
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_34_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_24_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_13_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/02/38/image_16062025_02_39_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/38/image_16062025_02_38_54_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/02/38/image_16062025_02_38_34_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8257d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8257d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8257d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:39:31.920737
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_34_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_24_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_13_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/02/38/image_16062025_02_39_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/38/image_16062025_02_38_54_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/02/38/image_16062025_02_38_34_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77f25470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77f25470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77f25470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:39:46.936644
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_34_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_24_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_13_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/02/38/image_16062025_02_39_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/38/image_16062025_02_38_54_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/02/38/image_16062025_02_38_34_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84b2e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84b2e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84b2e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:40:02.334158
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_34_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_24_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_13_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/02/38/image_16062025_02_39_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/38/image_16062025_02_38_54_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/02/38/image_16062025_02_38_34_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9160e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9160e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9160e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:40:17.032486
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_40_04_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_34_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_24_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_13_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/02/38/image_16062025_02_39_04_9630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1e80400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1e80400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1e80400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:40:32.024726
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_40_04_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_34_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_24_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_13_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/02/38/image_16062025_02_39_04_9630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0401470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0401470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0401470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:40:47.033130
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_40_04_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_34_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_24_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_13_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/02/38/image_16062025_02_39_04_9630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d3e0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d3e0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d3e0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:41:02.573889
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_40_04_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_34_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_24_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_13_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/02/38/image_16062025_02_39_04_9630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97313470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97313470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97313470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:41:17.131489
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_41_33_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_41_24_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_41_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/02/40/image_16062025_02_40_54_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_40_04_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_43_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb164e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb164e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb164e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:41:32.154739
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_41_33_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_41_24_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_41_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/02/40/image_16062025_02_40_54_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_40_04_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_43_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ac49400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ac49400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ac49400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:41:47.179321
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_41_33_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_41_24_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_41_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/02/40/image_16062025_02_40_54_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_40_04_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_43_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79878470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79878470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79878470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:42:02.533744
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_41_33_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_41_24_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_41_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/02/40/image_16062025_02_40_54_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_40_04_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/39/image_16062025_02_39_43_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb51d8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb51d8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb51d8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:42:17.290574
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/42/image_16062025_02_42_23_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/02/42/image_16062025_02_42_14_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_42_04_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_41_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_41_33_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_41_24_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4e76400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4e76400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4e76400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:42:32.275955
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/42/image_16062025_02_42_23_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/02/42/image_16062025_02_42_14_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_42_04_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_41_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_41_33_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_41_24_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7daf4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7daf4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7daf4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:42:47.271284
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/42/image_16062025_02_42_23_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/02/42/image_16062025_02_42_14_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_42_04_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_41_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_41_33_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_41_24_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7dc2a4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dc2a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dc2a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:43:02.967873
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/42/image_16062025_02_42_23_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/02/42/image_16062025_02_42_14_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_42_04_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_41_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_41_33_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/41/image_16062025_02_41_24_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6eb0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6eb0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6eb0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:43:17.382030
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/43/image_16062025_02_43_34_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/43/image_16062025_02_43_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/02/43/image_16062025_02_43_14_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/02/42/image_16062025_02_42_34_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/02/42/image_16062025_02_42_23_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/02/42/image_16062025_02_42_14_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fd02470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fd02470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fd02470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:43:32.361938
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/43/image_16062025_02_43_34_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/43/image_16062025_02_43_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/02/43/image_16062025_02_43_14_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/02/42/image_16062025_02_42_34_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/02/42/image_16062025_02_42_23_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/02/42/image_16062025_02_42_14_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8bb7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8bb7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8bb7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:43:47.373003
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/43/image_16062025_02_43_34_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/43/image_16062025_02_43_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/02/43/image_16062025_02_43_14_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/02/42/image_16062025_02_42_34_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/02/42/image_16062025_02_42_23_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/02/42/image_16062025_02_42_14_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0055470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0055470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0055470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:44:03.035274
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/43/image_16062025_02_43_34_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/43/image_16062025_02_43_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/02/43/image_16062025_02_43_14_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/02/42/image_16062025_02_42_34_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/02/42/image_16062025_02_42_23_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/02/42/image_16062025_02_42_14_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9393f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9393f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9393f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:44:17.477773
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/44/image_16062025_02_44_34_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/44/image_16062025_02_44_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/44/image_16062025_02_44_13_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/43/image_16062025_02_44_04_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/02/43/image_16062025_02_43_43_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/43/image_16062025_02_43_34_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f963d7400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f963d7400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f963d7400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:44:32.464611
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/44/image_16062025_02_44_34_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/44/image_16062025_02_44_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/44/image_16062025_02_44_13_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/43/image_16062025_02_44_04_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/02/43/image_16062025_02_43_43_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/43/image_16062025_02_43_34_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7eeca470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7eeca470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7eeca470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:44:47.467638
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/44/image_16062025_02_44_34_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/44/image_16062025_02_44_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/44/image_16062025_02_44_13_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/43/image_16062025_02_44_04_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/02/43/image_16062025_02_43_43_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/43/image_16062025_02_43_34_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4934470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4934470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4934470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:45:02.950492
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/44/image_16062025_02_44_34_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/44/image_16062025_02_44_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/44/image_16062025_02_44_13_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/43/image_16062025_02_44_04_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/02/43/image_16062025_02_43_43_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/43/image_16062025_02_43_34_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a58e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a58e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a58e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:45:17.558134
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/45/image_16062025_02_45_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/45/image_16062025_02_45_24_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/45/image_16062025_02_45_14_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/02/44/image_16062025_02_45_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/02/44/image_16062025_02_44_54_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/44/image_16062025_02_44_34_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4a11470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4a11470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4a11470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:45:32.537791
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/45/image_16062025_02_45_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/45/image_16062025_02_45_24_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/45/image_16062025_02_45_14_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/02/44/image_16062025_02_45_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/02/44/image_16062025_02_44_54_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/44/image_16062025_02_44_34_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80ad5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80ad5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80ad5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:45:47.557876
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/45/image_16062025_02_45_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/45/image_16062025_02_45_24_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/45/image_16062025_02_45_14_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/02/44/image_16062025_02_45_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/02/44/image_16062025_02_44_54_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/44/image_16062025_02_44_34_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa07ff470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa07ff470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa07ff470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:46:02.879109
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/45/image_16062025_02_45_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/45/image_16062025_02_45_24_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/45/image_16062025_02_45_14_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/02/44/image_16062025_02_45_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/02/44/image_16062025_02_44_54_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/44/image_16062025_02_44_34_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad397470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad397470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad397470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:46:17.633140
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/46/image_16062025_02_46_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/46/image_16062025_02_46_24_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/46/image_16062025_02_46_14_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/45/image_16062025_02_45_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/45/image_16062025_02_45_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/45/image_16062025_02_45_24_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4fd1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4fd1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4fd1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:46:32.641351
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/46/image_16062025_02_46_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/46/image_16062025_02_46_24_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/46/image_16062025_02_46_14_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/45/image_16062025_02_45_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/45/image_16062025_02_45_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/45/image_16062025_02_45_24_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae4a0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae4a0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae4a0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:46:47.652860
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/46/image_16062025_02_46_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/46/image_16062025_02_46_24_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/46/image_16062025_02_46_14_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/45/image_16062025_02_45_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/45/image_16062025_02_45_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/45/image_16062025_02_45_24_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99d28470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99d28470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99d28470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:47:03.061807
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/46/image_16062025_02_46_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/46/image_16062025_02_46_24_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/46/image_16062025_02_46_14_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/45/image_16062025_02_45_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/45/image_16062025_02_45_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/45/image_16062025_02_45_24_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1afa470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1afa470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1afa470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:47:17.734078
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_34_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_23_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_14_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/46/image_16062025_02_47_04_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/02/46/image_16062025_02_46_53_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/46/image_16062025_02_46_44_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa72a400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa72a400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa72a400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:47:32.730763
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_34_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_23_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_14_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/46/image_16062025_02_47_04_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/02/46/image_16062025_02_46_53_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/46/image_16062025_02_46_44_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f793ec470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f793ec470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f793ec470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:47:47.750407
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_34_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_23_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_14_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/46/image_16062025_02_47_04_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/02/46/image_16062025_02_46_53_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/46/image_16062025_02_46_44_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a4e3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a4e3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a4e3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:48:02.178007
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_34_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_23_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_14_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/46/image_16062025_02_47_04_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/02/46/image_16062025_02_46_53_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/46/image_16062025_02_46_44_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f428400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f428400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f428400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:48:16.830872
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/48/image_16062025_02_48_13_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_48_04_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_44_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_34_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_23_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_14_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93d06470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93d06470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93d06470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:48:31.848481
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/48/image_16062025_02_48_13_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_48_04_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_44_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_34_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_23_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_14_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a025470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a025470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a025470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:48:46.843098
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/48/image_16062025_02_48_13_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_48_04_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_44_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_34_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_23_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_14_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90e8d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90e8d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90e8d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:49:02.655404
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/48/image_16062025_02_48_13_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_48_04_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_44_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_34_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_23_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_47_14_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77875470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77875470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77875470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:49:16.954488
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/49/image_16062025_02_49_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/49/image_16062025_02_49_33_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/49/image_16062025_02_49_24_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/48/image_16062025_02_48_43_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/48/image_16062025_02_48_13_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_48_04_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf99f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf99f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf99f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:49:31.959631
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/49/image_16062025_02_49_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/49/image_16062025_02_49_33_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/49/image_16062025_02_49_24_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/48/image_16062025_02_48_43_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/48/image_16062025_02_48_13_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_48_04_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac072400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac072400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac072400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:49:46.957692
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/49/image_16062025_02_49_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/49/image_16062025_02_49_33_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/49/image_16062025_02_49_24_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/48/image_16062025_02_48_43_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/48/image_16062025_02_48_13_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_48_04_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7dddc400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dddc400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dddc400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:50:02.295269
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/49/image_16062025_02_49_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/49/image_16062025_02_49_33_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/49/image_16062025_02_49_24_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/48/image_16062025_02_48_43_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/48/image_16062025_02_48_13_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/02/47/image_16062025_02_48_04_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b368470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b368470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b368470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:50:17.069823
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_50_33_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_50_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_50_14_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/49/image_16062025_02_50_03_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/49/image_16062025_02_49_54_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/02/49/image_16062025_02_49_44_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98d99470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98d99470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98d99470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:50:32.056388
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_50_33_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_50_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_50_14_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/49/image_16062025_02_50_03_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/49/image_16062025_02_49_54_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/02/49/image_16062025_02_49_44_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f7794a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f7794a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f7794a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:50:47.062324
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_50_33_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_50_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_50_14_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/49/image_16062025_02_50_03_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/49/image_16062025_02_49_54_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/02/49/image_16062025_02_49_44_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8ceb470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8ceb470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8ceb470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:51:02.602513
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_50_33_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_50_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_50_14_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/49/image_16062025_02_50_03_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/02/49/image_16062025_02_49_54_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/02/49/image_16062025_02_49_44_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84be2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84be2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84be2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:51:17.220573
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/51/image_16062025_02_51_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/51/image_16062025_02_51_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_51_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_50_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_50_33_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_50_24_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a7f7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a7f7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a7f7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:51:32.165591
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/51/image_16062025_02_51_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/51/image_16062025_02_51_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_51_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_50_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_50_33_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_50_24_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97b1d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97b1d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97b1d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:51:47.150508
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/51/image_16062025_02_51_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/51/image_16062025_02_51_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_51_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_50_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_50_33_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_50_24_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97dc9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97dc9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97dc9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:52:02.674238
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/51/image_16062025_02_51_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/51/image_16062025_02_51_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_51_04_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_50_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_50_33_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_50_24_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f953df470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f953df470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f953df470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:52:17.248483
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/52/image_16062025_02_52_14_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/02/51/image_16062025_02_52_04_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/02/51/image_16062025_02_51_53_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/02/51/image_16062025_02_51_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/51/image_16062025_02_51_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_51_04_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89210470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89210470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89210470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:52:32.274126
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/52/image_16062025_02_52_14_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/02/51/image_16062025_02_52_04_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/02/51/image_16062025_02_51_53_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/02/51/image_16062025_02_51_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/51/image_16062025_02_51_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_51_04_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faef684a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faef684a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faef684a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:52:47.256716
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/52/image_16062025_02_52_14_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/02/51/image_16062025_02_52_04_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/02/51/image_16062025_02_51_53_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/02/51/image_16062025_02_51_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/51/image_16062025_02_51_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_51_04_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a376470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a376470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a376470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:53:02.895626
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/52/image_16062025_02_52_14_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/02/51/image_16062025_02_52_04_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/02/51/image_16062025_02_51_53_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/02/51/image_16062025_02_51_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/51/image_16062025_02_51_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/50/image_16062025_02_51_04_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ba4a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ba4a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ba4a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:53:17.354581
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_44_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_13_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/52/image_16062025_02_53_04_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/52/image_16062025_02_52_24_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88894470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88894470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88894470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:53:32.383914
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_44_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_13_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/52/image_16062025_02_53_04_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/52/image_16062025_02_52_24_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78e62400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78e62400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78e62400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:53:47.392429
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_44_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_13_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/52/image_16062025_02_53_04_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/52/image_16062025_02_52_24_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad301470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad301470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad301470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:54:03.014158
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_44_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_13_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/52/image_16062025_02_53_04_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/52/image_16062025_02_52_24_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f795c4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f795c4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f795c4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:54:17.484187
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/54/image_16062025_02_54_14_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_54_03_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_54_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_44_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_24_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ddd0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ddd0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ddd0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:54:32.482758
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/54/image_16062025_02_54_14_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_54_03_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_54_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_44_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_24_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e81a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e81a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e81a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:54:47.480363
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/54/image_16062025_02_54_14_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_54_03_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_54_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_44_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_24_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f987ce470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f987ce470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f987ce470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:55:03.105134
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/54/image_16062025_02_54_14_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_54_03_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_54_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_44_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/53/image_16062025_02_53_24_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81ca9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81ca9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81ca9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:55:17.580632
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_24_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_14_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/02/54/image_16062025_02_55_03_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/02/54/image_16062025_02_54_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/54/image_16062025_02_54_14_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ad41470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ad41470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ad41470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:55:32.608761
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_24_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_14_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/02/54/image_16062025_02_55_03_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/02/54/image_16062025_02_54_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/54/image_16062025_02_54_14_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7efdc470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7efdc470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7efdc470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:55:47.628664
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_24_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_14_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/02/54/image_16062025_02_55_03_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/02/54/image_16062025_02_54_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/54/image_16062025_02_54_14_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c164470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c164470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c164470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:56:02.912034
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_24_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_14_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/02/54/image_16062025_02_55_03_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/02/54/image_16062025_02_54_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/54/image_16062025_02_54_14_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96792470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96792470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96792470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:56:17.738656
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/56/image_16062025_02_56_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/56/image_16062025_02_56_14_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_53_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_24_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_14_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e46e400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e46e400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e46e400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:56:32.719772
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/56/image_16062025_02_56_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/56/image_16062025_02_56_14_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_53_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_24_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_14_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d18e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d18e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d18e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:56:47.704254
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/56/image_16062025_02_56_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/56/image_16062025_02_56_14_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_53_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_24_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_14_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9944d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9944d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9944d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:57:02.349219
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/56/image_16062025_02_56_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/56/image_16062025_02_56_14_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_53_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_24_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/55/image_16062025_02_55_14_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb6398470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb6398470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb6398470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:57:16.830348
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/57/image_16062025_02_57_34_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/57/image_16062025_02_57_13_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/02/56/image_16062025_02_57_04_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/02/56/image_16062025_02_56_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/56/image_16062025_02_56_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/56/image_16062025_02_56_14_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94d35470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94d35470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94d35470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:57:31.818593
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/57/image_16062025_02_57_34_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/57/image_16062025_02_57_13_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/02/56/image_16062025_02_57_04_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/02/56/image_16062025_02_56_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/56/image_16062025_02_56_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/56/image_16062025_02_56_14_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa63da470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa63da470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa63da470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:57:46.834749
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/57/image_16062025_02_57_34_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/57/image_16062025_02_57_13_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/02/56/image_16062025_02_57_04_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/02/56/image_16062025_02_56_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/56/image_16062025_02_56_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/56/image_16062025_02_56_14_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e131470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e131470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e131470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:58:02.338890
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/57/image_16062025_02_57_34_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/57/image_16062025_02_57_13_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/02/56/image_16062025_02_57_04_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/02/56/image_16062025_02_56_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/56/image_16062025_02_56_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/56/image_16062025_02_56_14_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1838470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1838470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1838470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:59:03.366071
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/58/image_16062025_02_58_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/57/image_16062025_02_58_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/57/image_16062025_02_57_43_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/57/image_16062025_02_57_34_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/02/57/image_16062025_02_57_13_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/02/56/image_16062025_02_57_04_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf1cd400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf1cd400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf1cd400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:59:17.644536
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/59/image_16062025_02_59_24_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/59/image_16062025_02_59_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/02/58/image_16062025_02_59_03_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/02/58/image_16062025_02_58_54_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/58/image_16062025_02_58_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/57/image_16062025_02_58_04_9630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b902400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b902400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b902400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:59:32.583774
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/59/image_16062025_02_59_24_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/59/image_16062025_02_59_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/02/58/image_16062025_02_59_03_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/02/58/image_16062025_02_58_54_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/58/image_16062025_02_58_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/57/image_16062025_02_58_04_9630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8064e400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8064e400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8064e400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 02:59:47.565519
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/59/image_16062025_02_59_24_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/59/image_16062025_02_59_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/02/58/image_16062025_02_59_03_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/02/58/image_16062025_02_58_54_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/58/image_16062025_02_58_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/57/image_16062025_02_58_04_9630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96179470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96179470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96179470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:00:03.055768
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/02/59/image_16062025_02_59_24_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/02/59/image_16062025_02_59_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/02/58/image_16062025_02_59_03_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/02/58/image_16062025_02_58_54_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/02/58/image_16062025_02_58_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/02/57/image_16062025_02_58_04_9630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87b24400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87b24400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87b24400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:00:17.672335
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_00_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_00_34_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_00_23_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_00_14_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/59/image_16062025_03_00_04_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/59/image_16062025_02_59_44_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96a90470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96a90470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96a90470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:00:32.693915
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_00_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_00_34_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_00_23_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_00_14_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/59/image_16062025_03_00_04_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/59/image_16062025_02_59_44_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90b8c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90b8c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90b8c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:00:47.659182
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_00_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_00_34_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_00_23_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_00_14_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/59/image_16062025_03_00_04_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/59/image_16062025_02_59_44_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb27e6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb27e6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb27e6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:01:02.210036
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_00_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_00_34_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_00_23_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_00_14_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/02/59/image_16062025_03_00_04_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/02/59/image_16062025_02_59_44_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fe23470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fe23470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fe23470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:01:16.763871
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_01_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_01_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_01_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_01_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_00_54_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_00_44_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96776470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96776470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96776470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:01:31.757640
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_01_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_01_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_01_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_01_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_00_54_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_00_44_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90f2f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90f2f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90f2f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:01:46.783790
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_01_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_01_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_01_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_01_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_00_54_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_00_44_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f3ee470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f3ee470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f3ee470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:02:02.240975
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_01_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_01_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_01_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_01_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_00_54_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/00/image_16062025_03_00_44_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1631470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1631470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1631470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:02:16.875002
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/02/image_16062025_03_02_24_10663.jpg', 2), ('/home/nano/Desktop/images/16062025/03/02/image_16062025_03_02_13_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_02_04_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_01_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_01_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_01_34_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa110e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa110e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa110e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:02:31.877702
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/02/image_16062025_03_02_24_10663.jpg', 2), ('/home/nano/Desktop/images/16062025/03/02/image_16062025_03_02_13_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_02_04_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_01_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_01_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_01_34_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ce8a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ce8a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ce8a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:02:46.856899
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/02/image_16062025_03_02_24_10663.jpg', 2), ('/home/nano/Desktop/images/16062025/03/02/image_16062025_03_02_13_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_02_04_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_01_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_01_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_01_34_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84780470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84780470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84780470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:03:02.448228
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/02/image_16062025_03_02_24_10663.jpg', 2), ('/home/nano/Desktop/images/16062025/03/02/image_16062025_03_02_13_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_02_04_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_01_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_01_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/01/image_16062025_03_01_34_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad87d4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad87d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad87d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:03:17.023046
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/03/image_16062025_03_03_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/03/03/image_16062025_03_03_24_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/03/03/image_16062025_03_03_14_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/03/02/image_16062025_03_03_04_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/02/image_16062025_03_02_34_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/03/02/image_16062025_03_02_24_10663.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84ad3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84ad3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84ad3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:03:32.000030
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/03/image_16062025_03_03_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/03/03/image_16062025_03_03_24_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/03/03/image_16062025_03_03_14_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/03/02/image_16062025_03_03_04_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/02/image_16062025_03_02_34_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/03/02/image_16062025_03_02_24_10663.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8526400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8526400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8526400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:03:46.960661
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/03/image_16062025_03_03_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/03/03/image_16062025_03_03_24_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/03/03/image_16062025_03_03_14_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/03/02/image_16062025_03_03_04_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/02/image_16062025_03_02_34_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/03/02/image_16062025_03_02_24_10663.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fade97470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fade97470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fade97470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:04:02.675917
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/03/image_16062025_03_03_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/03/03/image_16062025_03_03_24_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/03/03/image_16062025_03_03_14_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/03/02/image_16062025_03_03_04_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/02/image_16062025_03_02_34_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/03/02/image_16062025_03_02_24_10663.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab264470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab264470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab264470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:04:17.048189
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/04/image_16062025_03_04_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/04/image_16062025_03_04_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/03/04/image_16062025_03_04_14_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/03/03/image_16062025_03_04_03_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/03/image_16062025_03_03_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/03/image_16062025_03_03_44_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c87a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c87a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c87a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:04:32.051498
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/04/image_16062025_03_04_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/04/image_16062025_03_04_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/03/04/image_16062025_03_04_14_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/03/03/image_16062025_03_04_03_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/03/image_16062025_03_03_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/03/image_16062025_03_03_44_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf4ae470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf4ae470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf4ae470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:04:47.036677
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/04/image_16062025_03_04_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/04/image_16062025_03_04_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/03/04/image_16062025_03_04_14_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/03/03/image_16062025_03_04_03_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/03/image_16062025_03_03_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/03/image_16062025_03_03_44_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77e1e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77e1e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77e1e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:05:02.600940
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/04/image_16062025_03_04_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/04/image_16062025_03_04_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/03/04/image_16062025_03_04_14_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/03/03/image_16062025_03_04_03_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/03/image_16062025_03_03_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/03/image_16062025_03_03_44_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafe9e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafe9e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafe9e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:05:17.200588
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/05/image_16062025_03_05_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/05/image_16062025_03_05_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/05/image_16062025_03_05_14_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/03/04/image_16062025_03_05_04_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/03/04/image_16062025_03_04_53_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/04/image_16062025_03_04_34_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa431f400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa431f400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa431f400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:05:32.135837
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/05/image_16062025_03_05_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/05/image_16062025_03_05_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/05/image_16062025_03_05_14_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/03/04/image_16062025_03_05_04_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/03/04/image_16062025_03_04_53_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/04/image_16062025_03_04_34_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f822e7400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f822e7400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f822e7400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:05:47.142481
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/05/image_16062025_03_05_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/05/image_16062025_03_05_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/05/image_16062025_03_05_14_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/03/04/image_16062025_03_05_04_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/03/04/image_16062025_03_04_53_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/04/image_16062025_03_04_34_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf9f9400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf9f9400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf9f9400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:06:02.582775
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/05/image_16062025_03_05_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/05/image_16062025_03_05_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/05/image_16062025_03_05_14_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/03/04/image_16062025_03_05_04_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/03/04/image_16062025_03_04_53_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/04/image_16062025_03_04_34_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa764470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa764470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa764470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:06:17.255557
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_34_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_13_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/05/image_16062025_03_06_04_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/05/image_16062025_03_05_44_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d457470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d457470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d457470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:06:32.267354
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_34_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_13_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/05/image_16062025_03_06_04_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/05/image_16062025_03_05_44_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98fe2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98fe2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98fe2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:06:47.242812
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_34_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_13_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/05/image_16062025_03_06_04_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/05/image_16062025_03_05_44_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac599470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac599470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac599470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:07:02.788373
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_34_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_13_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/05/image_16062025_03_06_04_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/05/image_16062025_03_05_44_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa25af470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa25af470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa25af470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:07:17.352728
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/07/image_16062025_03_07_33_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/07/image_16062025_03_07_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_07_04_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_54_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_34_9629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f789470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f789470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f789470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:07:32.339996
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/07/image_16062025_03_07_33_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/07/image_16062025_03_07_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_07_04_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_54_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_34_9629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7cb88470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cb88470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cb88470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:07:47.409577
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/07/image_16062025_03_07_33_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/07/image_16062025_03_07_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_07_04_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_54_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_34_9629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7dcd9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dcd9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dcd9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:08:02.806201
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/07/image_16062025_03_07_33_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/07/image_16062025_03_07_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_07_04_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_54_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/06/image_16062025_03_06_34_9629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ada3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ada3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ada3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:08:17.579314
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/08/image_16062025_03_08_44_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/03/08/image_16062025_03_08_33_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/03/08/image_16062025_03_08_14_10659.jpg', 2), ('/home/nano/Desktop/images/16062025/03/07/image_16062025_03_08_03_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/03/07/image_16062025_03_07_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/07/image_16062025_03_07_33_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb26f3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb26f3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb26f3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:08:32.523534
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/08/image_16062025_03_08_44_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/03/08/image_16062025_03_08_33_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/03/08/image_16062025_03_08_14_10659.jpg', 2), ('/home/nano/Desktop/images/16062025/03/07/image_16062025_03_08_03_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/03/07/image_16062025_03_07_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/07/image_16062025_03_07_33_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94a15470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94a15470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94a15470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:08:47.467065
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/08/image_16062025_03_08_44_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/03/08/image_16062025_03_08_33_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/03/08/image_16062025_03_08_14_10659.jpg', 2), ('/home/nano/Desktop/images/16062025/03/07/image_16062025_03_08_03_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/03/07/image_16062025_03_07_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/07/image_16062025_03_07_33_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f961ca470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f961ca470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f961ca470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:09:03.422493
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/08/image_16062025_03_08_44_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/03/08/image_16062025_03_08_33_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/03/08/image_16062025_03_08_14_10659.jpg', 2), ('/home/nano/Desktop/images/16062025/03/07/image_16062025_03_08_03_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/03/07/image_16062025_03_07_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/07/image_16062025_03_07_33_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8425d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8425d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8425d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:09:17.676852
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/09/image_16062025_03_09_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/09/image_16062025_03_09_23_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/09/image_16062025_03_09_14_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/08/image_16062025_03_08_54_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/03/08/image_16062025_03_08_44_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/03/08/image_16062025_03_08_33_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99917470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99917470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99917470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:09:32.565669
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/09/image_16062025_03_09_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/09/image_16062025_03_09_23_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/09/image_16062025_03_09_14_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/08/image_16062025_03_08_54_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/03/08/image_16062025_03_08_44_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/03/08/image_16062025_03_08_33_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82c7d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82c7d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82c7d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:09:47.567945
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/09/image_16062025_03_09_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/09/image_16062025_03_09_23_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/09/image_16062025_03_09_14_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/08/image_16062025_03_08_54_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/03/08/image_16062025_03_08_44_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/03/08/image_16062025_03_08_33_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f068470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f068470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f068470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:10:02.996374
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/09/image_16062025_03_09_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/09/image_16062025_03_09_23_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/09/image_16062025_03_09_14_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/08/image_16062025_03_08_54_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/03/08/image_16062025_03_08_44_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/03/08/image_16062025_03_08_33_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81f92470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81f92470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81f92470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:10:17.737774
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_24_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_14_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/03/09/image_16062025_03_10_04_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/03/09/image_16062025_03_09_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/09/image_16062025_03_09_34_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f1e7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f1e7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f1e7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:10:47.655580
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_24_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_14_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/03/09/image_16062025_03_10_04_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/03/09/image_16062025_03_09_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/09/image_16062025_03_09_34_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5169470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5169470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5169470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:11:02.314364
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_24_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_14_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/03/09/image_16062025_03_10_04_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/03/09/image_16062025_03_09_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/09/image_16062025_03_09_34_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f796ad470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f796ad470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f796ad470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:11:16.761192
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/11/image_16062025_03_11_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/11/image_16062025_03_11_13_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_54_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_24_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_14_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb6064470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb6064470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb6064470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:11:31.760530
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/11/image_16062025_03_11_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/11/image_16062025_03_11_13_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_54_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_24_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_14_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e3c9400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e3c9400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e3c9400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:11:46.794509
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/11/image_16062025_03_11_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/11/image_16062025_03_11_13_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_54_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_24_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_14_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bd5c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bd5c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bd5c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:12:02.308886
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/11/image_16062025_03_11_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/11/image_16062025_03_11_13_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_54_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_24_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_14_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d60a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d60a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d60a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:12:16.915178
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/12/image_16062025_03_12_44_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/12/image_16062025_03_12_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/03/11/image_16062025_03_11_34_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/11/image_16062025_03_11_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/11/image_16062025_03_11_13_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_54_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e0fd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e0fd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e0fd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:12:31.924106
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/12/image_16062025_03_12_44_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/12/image_16062025_03_12_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/03/11/image_16062025_03_11_34_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/11/image_16062025_03_11_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/11/image_16062025_03_11_13_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_54_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa78ac470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa78ac470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa78ac470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:12:46.898706
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/12/image_16062025_03_12_44_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/12/image_16062025_03_12_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/03/11/image_16062025_03_11_34_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/11/image_16062025_03_11_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/11/image_16062025_03_11_13_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_54_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f963d9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f963d9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f963d9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:13:02.503638
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/12/image_16062025_03_12_44_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/12/image_16062025_03_12_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/03/11/image_16062025_03_11_34_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/11/image_16062025_03_11_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/11/image_16062025_03_11_13_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/10/image_16062025_03_10_54_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9063f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9063f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9063f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:13:17.023603
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/13/image_16062025_03_13_24_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/13/image_16062025_03_13_14_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/03/12/image_16062025_03_13_04_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/12/image_16062025_03_12_54_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/12/image_16062025_03_12_44_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/12/image_16062025_03_12_24_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90ba0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90ba0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90ba0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:13:32.002604
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/13/image_16062025_03_13_24_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/13/image_16062025_03_13_14_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/03/12/image_16062025_03_13_04_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/12/image_16062025_03_12_54_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/12/image_16062025_03_12_44_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/12/image_16062025_03_12_24_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7700470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7700470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7700470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:13:47.003760
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/13/image_16062025_03_13_24_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/13/image_16062025_03_13_14_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/03/12/image_16062025_03_13_04_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/12/image_16062025_03_12_54_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/12/image_16062025_03_12_44_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/12/image_16062025_03_12_24_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f896d5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f896d5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f896d5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:14:02.634061
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/13/image_16062025_03_13_24_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/13/image_16062025_03_13_14_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/03/12/image_16062025_03_13_04_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/12/image_16062025_03_12_54_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/12/image_16062025_03_12_44_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/12/image_16062025_03_12_24_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7751d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7751d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7751d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:14:17.194383
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/14/image_16062025_03_14_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/14/image_16062025_03_14_23_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/03/14/image_16062025_03_14_14_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/03/13/image_16062025_03_13_44_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/03/13/image_16062025_03_13_24_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/13/image_16062025_03_13_14_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b551470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b551470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b551470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:14:32.099010
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/14/image_16062025_03_14_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/14/image_16062025_03_14_23_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/03/14/image_16062025_03_14_14_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/03/13/image_16062025_03_13_44_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/03/13/image_16062025_03_13_24_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/13/image_16062025_03_13_14_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faebd0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faebd0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faebd0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:14:47.203543
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/14/image_16062025_03_14_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/14/image_16062025_03_14_23_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/03/14/image_16062025_03_14_14_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/03/13/image_16062025_03_13_44_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/03/13/image_16062025_03_13_24_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/13/image_16062025_03_13_14_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81cbd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81cbd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81cbd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:15:02.721114
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/14/image_16062025_03_14_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/14/image_16062025_03_14_23_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/03/14/image_16062025_03_14_14_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/03/13/image_16062025_03_13_44_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/03/13/image_16062025_03_13_24_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/13/image_16062025_03_13_14_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa27ff470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa27ff470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa27ff470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:15:17.393351
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/15/image_16062025_03_15_43_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/15/image_16062025_03_15_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/15/image_16062025_03_15_13_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/14/image_16062025_03_15_04_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/14/image_16062025_03_14_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/14/image_16062025_03_14_34_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6791470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6791470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6791470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:15:32.282815
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/15/image_16062025_03_15_43_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/15/image_16062025_03_15_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/15/image_16062025_03_15_13_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/14/image_16062025_03_15_04_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/14/image_16062025_03_14_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/14/image_16062025_03_14_34_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7cb9a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cb9a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cb9a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:15:47.358718
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/15/image_16062025_03_15_43_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/15/image_16062025_03_15_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/15/image_16062025_03_15_13_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/14/image_16062025_03_15_04_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/14/image_16062025_03_14_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/14/image_16062025_03_14_34_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7900d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7900d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7900d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:16:02.870747
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/15/image_16062025_03_15_43_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/15/image_16062025_03_15_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/15/image_16062025_03_15_13_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/14/image_16062025_03_15_04_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/14/image_16062025_03_14_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/14/image_16062025_03_14_34_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa77ac470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa77ac470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa77ac470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:16:17.518429
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_44_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_24_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_14_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/03/15/image_16062025_03_16_04_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/15/image_16062025_03_15_54_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f907d2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f907d2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f907d2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:16:32.485795
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_44_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_24_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_14_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/03/15/image_16062025_03_16_04_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/15/image_16062025_03_15_54_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb01b2400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb01b2400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb01b2400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:16:47.474219
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_44_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_24_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_14_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/03/15/image_16062025_03_16_04_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/15/image_16062025_03_15_54_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f774f6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f774f6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f774f6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:17:03.009024
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_44_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_24_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_14_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/03/15/image_16062025_03_16_04_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/15/image_16062025_03_15_54_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2f9f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2f9f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2f9f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:17:17.537987
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/17/image_16062025_03_17_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/17/image_16062025_03_17_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_17_03_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_54_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_44_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_33_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d1b2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d1b2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d1b2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:17:32.579633
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/17/image_16062025_03_17_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/17/image_16062025_03_17_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_17_03_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_54_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_44_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_33_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1a5e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1a5e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1a5e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:17:47.583809
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/17/image_16062025_03_17_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/17/image_16062025_03_17_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_17_03_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_54_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_44_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_33_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1c7c400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1c7c400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1c7c400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:18:02.912171
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/17/image_16062025_03_17_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/17/image_16062025_03_17_14_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_17_03_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_54_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_44_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/16/image_16062025_03_16_33_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5b00400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5b00400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5b00400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:18:17.674064
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/18/image_16062025_03_18_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/18/image_16062025_03_18_23_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/17/image_16062025_03_18_04_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/03/17/image_16062025_03_17_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/17/image_16062025_03_17_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/17/image_16062025_03_17_14_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f906b1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f906b1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f906b1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:18:32.697973
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/18/image_16062025_03_18_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/18/image_16062025_03_18_23_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/17/image_16062025_03_18_04_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/03/17/image_16062025_03_17_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/17/image_16062025_03_17_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/17/image_16062025_03_17_14_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90ea9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90ea9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90ea9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:18:47.670298
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/18/image_16062025_03_18_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/18/image_16062025_03_18_23_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/17/image_16062025_03_18_04_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/03/17/image_16062025_03_17_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/17/image_16062025_03_17_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/17/image_16062025_03_17_14_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ced8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ced8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ced8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:19:02.559330
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_19_13_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/18/image_16062025_03_18_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/18/image_16062025_03_18_23_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/17/image_16062025_03_18_04_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/03/17/image_16062025_03_17_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/17/image_16062025_03_17_34_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80324470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80324470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80324470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:19:16.850926
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_19_43_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_19_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_19_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_19_13_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/18/image_16062025_03_18_54_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/03/18/image_16062025_03_18_34_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9dc8f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dc8f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dc8f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:19:31.760454
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_19_43_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_19_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_19_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_19_13_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/18/image_16062025_03_18_54_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/03/18/image_16062025_03_18_34_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1fbf470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1fbf470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1fbf470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:19:46.768785
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_19_43_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_19_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_19_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_19_13_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/18/image_16062025_03_18_54_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/03/18/image_16062025_03_18_34_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb25c1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb25c1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb25c1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:20:02.191326
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_19_43_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_19_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_19_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_19_13_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/18/image_16062025_03_18_54_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/03/18/image_16062025_03_18_34_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f845c6400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f845c6400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f845c6400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:20:16.867331
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/20/image_16062025_03_20_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/20/image_16062025_03_20_24_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/20/image_16062025_03_20_13_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_20_04_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_19_54_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_19_43_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99ac8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99ac8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99ac8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:20:31.872276
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/20/image_16062025_03_20_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/20/image_16062025_03_20_24_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/20/image_16062025_03_20_13_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_20_04_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_19_54_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_19_43_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85a55470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85a55470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85a55470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:20:46.851905
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/20/image_16062025_03_20_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/20/image_16062025_03_20_24_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/20/image_16062025_03_20_13_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_20_04_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_19_54_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_19_43_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faaa68470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaa68470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaa68470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:21:02.331774
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/20/image_16062025_03_20_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/20/image_16062025_03_20_24_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/20/image_16062025_03_20_13_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_20_04_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_19_54_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/03/19/image_16062025_03_19_43_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c1e5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c1e5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c1e5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:21:17.009360
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/21/image_16062025_03_21_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/21/image_16062025_03_21_24_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/21/image_16062025_03_21_14_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/03/20/image_16062025_03_21_03_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/20/image_16062025_03_20_54_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/03/20/image_16062025_03_20_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa74fd400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa74fd400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa74fd400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:21:31.967465
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/21/image_16062025_03_21_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/21/image_16062025_03_21_24_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/21/image_16062025_03_21_14_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/03/20/image_16062025_03_21_03_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/20/image_16062025_03_20_54_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/03/20/image_16062025_03_20_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88963470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88963470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88963470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:21:46.954780
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/21/image_16062025_03_21_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/21/image_16062025_03_21_24_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/21/image_16062025_03_21_14_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/03/20/image_16062025_03_21_03_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/20/image_16062025_03_20_54_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/03/20/image_16062025_03_20_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5ad1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5ad1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5ad1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:22:02.493154
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/21/image_16062025_03_21_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/21/image_16062025_03_21_24_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/21/image_16062025_03_21_14_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/03/20/image_16062025_03_21_03_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/20/image_16062025_03_20_54_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/03/20/image_16062025_03_20_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae283470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae283470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae283470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:22:17.039223
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_22_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_22_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_22_14_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/03/21/image_16062025_03_21_54_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/21/image_16062025_03_21_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/21/image_16062025_03_21_24_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f905f8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f905f8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f905f8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:22:32.042331
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_22_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_22_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_22_14_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/03/21/image_16062025_03_21_54_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/21/image_16062025_03_21_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/21/image_16062025_03_21_24_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa087470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa087470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa087470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:22:47.060304
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_22_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_22_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_22_14_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/03/21/image_16062025_03_21_54_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/21/image_16062025_03_21_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/21/image_16062025_03_21_24_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb61e6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb61e6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb61e6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:23:02.626785
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_22_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_22_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_22_14_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/03/21/image_16062025_03_21_54_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/21/image_16062025_03_21_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/21/image_16062025_03_21_24_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85348400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85348400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85348400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:23:17.232686
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/23/image_16062025_03_23_34_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/23/image_16062025_03_23_14_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_23_04_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_22_53_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_22_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_22_23_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2454400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2454400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2454400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:23:32.162459
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/23/image_16062025_03_23_34_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/23/image_16062025_03_23_14_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_23_04_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_22_53_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_22_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_22_23_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89086470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89086470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89086470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:23:47.162174
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/23/image_16062025_03_23_34_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/23/image_16062025_03_23_14_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_23_04_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_22_53_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_22_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_22_23_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3f87470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3f87470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3f87470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:24:02.942327
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/23/image_16062025_03_23_34_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/23/image_16062025_03_23_14_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_23_04_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_22_53_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_22_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/22/image_16062025_03_22_23_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb09e5400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb09e5400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb09e5400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:24:17.279856
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_34_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/03/23/image_16062025_03_24_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/23/image_16062025_03_23_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/23/image_16062025_03_23_34_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3e1e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3e1e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3e1e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:24:32.311626
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_34_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/03/23/image_16062025_03_24_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/23/image_16062025_03_23_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/23/image_16062025_03_23_34_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77b7a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77b7a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77b7a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:24:47.268127
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_34_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/03/23/image_16062025_03_24_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/23/image_16062025_03_23_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/23/image_16062025_03_23_34_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8aa7c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8aa7c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8aa7c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:25:02.880462
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_34_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/03/23/image_16062025_03_24_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/23/image_16062025_03_23_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/23/image_16062025_03_23_34_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0d4c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0d4c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0d4c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:25:17.362944
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/25/image_16062025_03_25_33_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_54_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_34_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/03/23/image_16062025_03_24_04_9630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8bffd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bffd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bffd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:25:32.359666
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/25/image_16062025_03_25_33_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_54_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_34_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/03/23/image_16062025_03_24_04_9630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8049a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8049a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8049a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:25:47.383908
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/25/image_16062025_03_25_33_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_54_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_34_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/03/23/image_16062025_03_24_04_9630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2631400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2631400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2631400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:26:02.818955
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/25/image_16062025_03_25_33_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_54_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_34_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/03/24/image_16062025_03_24_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/03/23/image_16062025_03_24_04_9630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8d77470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8d77470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8d77470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:26:17.543585
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_44_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_34_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_24_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/03/25/image_16062025_03_25_44_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/25/image_16062025_03_25_33_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8db5a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8db5a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8db5a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:26:32.478263
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_44_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_34_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_24_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/03/25/image_16062025_03_25_44_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/25/image_16062025_03_25_33_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b88b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b88b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b88b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:26:47.456291
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_44_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_34_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_24_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/03/25/image_16062025_03_25_44_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/25/image_16062025_03_25_33_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb55a3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb55a3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb55a3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:27:03.106980
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_44_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_34_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_24_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/03/25/image_16062025_03_25_44_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/25/image_16062025_03_25_33_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76e5b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76e5b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76e5b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:27:17.573494
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/27/image_16062025_03_27_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/27/image_16062025_03_27_23_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_27_04_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_53_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_44_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_34_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90560470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90560470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90560470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:27:32.563774
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/27/image_16062025_03_27_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/27/image_16062025_03_27_23_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_27_04_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_53_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_44_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_34_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a770470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a770470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a770470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:27:47.551265
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/27/image_16062025_03_27_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/27/image_16062025_03_27_23_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_27_04_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_53_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_44_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_34_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9720f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9720f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9720f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:28:03.018249
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/27/image_16062025_03_27_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/27/image_16062025_03_27_23_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_27_04_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_53_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/26/image_16062025_03_26_44_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf20e400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf20e400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf20e400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:28:17.651438
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_43_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_34_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_13_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/27/image_16062025_03_28_04_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/27/image_16062025_03_27_44_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7dc38470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dc38470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dc38470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:28:32.651353
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_43_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_34_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_13_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/27/image_16062025_03_28_04_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/27/image_16062025_03_27_44_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d775470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d775470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d775470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:28:47.652433
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_43_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_34_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_13_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/27/image_16062025_03_28_04_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/27/image_16062025_03_27_44_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fc3c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fc3c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fc3c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:29:02.576264
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_43_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_34_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_24_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_13_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/27/image_16062025_03_28_04_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/27/image_16062025_03_27_44_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7f1e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7f1e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7f1e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:29:16.792656
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_29_04_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_43_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_34_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95f0a400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95f0a400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95f0a400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:29:31.748759
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_29_04_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_43_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_34_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f943d0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f943d0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f943d0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:29:46.761409
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_29_04_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_43_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_34_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9825b4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9825b4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9825b4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:30:02.234520
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_29_04_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_54_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_43_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_34_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b93a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b93a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b93a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:30:16.881807
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/30/image_16062025_03_30_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_54_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_29_04_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_54_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77845470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77845470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77845470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:30:31.881628
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/30/image_16062025_03_30_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_54_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_29_04_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_54_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6697470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6697470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6697470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:30:46.861335
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/30/image_16062025_03_30_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_54_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_29_04_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_54_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa505a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa505a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa505a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:31:02.342995
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/30/image_16062025_03_30_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_54_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_29_04_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/03/28/image_16062025_03_28_54_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7affb470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7affb470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7affb470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:31:16.946409
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/31/image_16062025_03_31_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/31/image_16062025_03_31_23_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/03/30/image_16062025_03_30_44_10620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/30/image_16062025_03_30_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_54_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_44_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa0e64a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa0e64a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa0e64a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:31:31.970387
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/31/image_16062025_03_31_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/31/image_16062025_03_31_23_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/03/30/image_16062025_03_30_44_10620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/30/image_16062025_03_30_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_54_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_44_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98ef5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98ef5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98ef5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:31:46.940615
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/31/image_16062025_03_31_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/31/image_16062025_03_31_23_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/03/30/image_16062025_03_30_44_10620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/30/image_16062025_03_30_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_54_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_44_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ebc6438>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ebc6438>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ebc6438>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:32:02.438057
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/31/image_16062025_03_31_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/31/image_16062025_03_31_23_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/03/30/image_16062025_03_30_44_10620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/30/image_16062025_03_30_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_54_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/29/image_16062025_03_29_44_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76fb6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76fb6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76fb6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:32:17.041823
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_32_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_32_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_32_24_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/03/31/image_16062025_03_31_53_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/31/image_16062025_03_31_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/31/image_16062025_03_31_23_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92619470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92619470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92619470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:32:32.040144
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_32_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_32_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_32_24_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/03/31/image_16062025_03_31_53_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/31/image_16062025_03_31_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/31/image_16062025_03_31_23_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8303a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8303a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8303a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:32:47.035729
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_32_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_32_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_32_24_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/03/31/image_16062025_03_31_53_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/31/image_16062025_03_31_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/31/image_16062025_03_31_23_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f823cf470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f823cf470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f823cf470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:33:02.742266
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_32_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_32_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_32_24_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/03/31/image_16062025_03_31_53_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/31/image_16062025_03_31_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/31/image_16062025_03_31_23_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf4cf470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf4cf470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf4cf470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:33:17.137050
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/33/image_16062025_03_33_34_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/33/image_16062025_03_33_13_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_33_04_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_32_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_32_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_32_34_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa00ef470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa00ef470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa00ef470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:33:32.130243
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/33/image_16062025_03_33_34_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/33/image_16062025_03_33_13_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_33_04_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_32_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_32_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_32_34_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf079470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf079470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf079470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:33:47.262466
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/33/image_16062025_03_33_34_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/33/image_16062025_03_33_13_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_33_04_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_32_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_32_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_32_34_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4858470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4858470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4858470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:34:03.006170
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/33/image_16062025_03_33_34_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/33/image_16062025_03_33_13_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_33_04_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_32_54_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_32_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/32/image_16062025_03_32_34_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96bd9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96bd9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96bd9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:34:17.433129
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/34/image_16062025_03_34_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/34/image_16062025_03_34_33_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/34/image_16062025_03_34_24_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/03/33/image_16062025_03_34_03_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/03/33/image_16062025_03_33_54_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/33/image_16062025_03_33_34_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8636b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8636b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8636b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:34:32.371902
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/34/image_16062025_03_34_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/34/image_16062025_03_34_33_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/34/image_16062025_03_34_24_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/03/33/image_16062025_03_34_03_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/03/33/image_16062025_03_33_54_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/33/image_16062025_03_33_34_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa433e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa433e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa433e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:34:47.443638
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/34/image_16062025_03_34_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/34/image_16062025_03_34_33_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/34/image_16062025_03_34_24_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/03/33/image_16062025_03_34_03_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/03/33/image_16062025_03_33_54_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/33/image_16062025_03_33_34_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89ac3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89ac3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89ac3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:35:03.033995
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/34/image_16062025_03_34_44_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/34/image_16062025_03_34_33_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/34/image_16062025_03_34_24_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/03/33/image_16062025_03_34_03_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/03/33/image_16062025_03_33_54_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/33/image_16062025_03_33_34_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f814b8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f814b8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f814b8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:35:17.514425
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_24_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_14_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/03/34/image_16062025_03_35_04_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/03/34/image_16062025_03_34_54_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98aaf470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98aaf470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98aaf470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:35:32.558417
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_24_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_14_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/03/34/image_16062025_03_35_04_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/03/34/image_16062025_03_34_54_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb430f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb430f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb430f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:35:47.511245
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_24_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_14_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/03/34/image_16062025_03_35_04_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/03/34/image_16062025_03_34_54_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa13fc400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa13fc400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa13fc400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:36:02.953119
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_24_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_14_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/03/34/image_16062025_03_35_04_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/03/34/image_16062025_03_34_54_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b4fb470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b4fb470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b4fb470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:36:17.603341
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_53_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_24_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_14_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/03/34/image_16062025_03_35_04_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f921a9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f921a9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f921a9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:36:32.635622
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_53_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_24_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_14_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/03/34/image_16062025_03_35_04_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a0b8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a0b8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a0b8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:36:47.640524
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_53_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_24_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_14_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/03/34/image_16062025_03_35_04_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7da7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7da7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7da7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:37:03.141495
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_53_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_24_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_14_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/03/34/image_16062025_03_35_04_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f844a0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f844a0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f844a0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:37:17.704917
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_37_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_37_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_37_13_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/36/image_16062025_03_37_04_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/03/36/image_16062025_03_36_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_53_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d840470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d840470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d840470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:37:32.707286
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_37_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_37_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_37_13_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/36/image_16062025_03_37_04_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/03/36/image_16062025_03_36_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_53_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91ef6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91ef6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91ef6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:37:47.790352
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_37_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_37_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_37_13_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/36/image_16062025_03_37_04_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/03/36/image_16062025_03_36_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_53_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88ab5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88ab5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88ab5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:38:02.181446
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_37_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_37_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_37_13_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/36/image_16062025_03_37_04_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/03/36/image_16062025_03_36_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/35/image_16062025_03_35_53_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa300a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa300a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa300a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:38:16.898022
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/38/image_16062025_03_38_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/38/image_16062025_03_38_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_38_04_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_37_54_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_37_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_37_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c521470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c521470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c521470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:38:31.892509
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/38/image_16062025_03_38_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/38/image_16062025_03_38_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_38_04_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_37_54_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_37_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_37_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa487d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa487d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa487d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:38:46.897123
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/38/image_16062025_03_38_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/38/image_16062025_03_38_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_38_04_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_37_54_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_37_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_37_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f845eb470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f845eb470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f845eb470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:39:02.896172
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/38/image_16062025_03_38_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/38/image_16062025_03_38_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_38_04_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_37_54_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_37_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_37_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f874c0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f874c0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f874c0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:39:16.995681
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/39/image_16062025_03_39_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/39/image_16062025_03_39_14_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/03/38/image_16062025_03_38_54_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/38/image_16062025_03_38_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/38/image_16062025_03_38_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_38_04_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7facf92470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facf92470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facf92470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:39:31.988893
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/39/image_16062025_03_39_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/39/image_16062025_03_39_14_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/03/38/image_16062025_03_38_54_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/38/image_16062025_03_38_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/38/image_16062025_03_38_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_38_04_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f892f8400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f892f8400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f892f8400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:39:47.011229
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/39/image_16062025_03_39_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/39/image_16062025_03_39_14_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/03/38/image_16062025_03_38_54_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/38/image_16062025_03_38_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/38/image_16062025_03_38_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_38_04_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88240470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88240470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88240470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:40:02.357054
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/39/image_16062025_03_39_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/39/image_16062025_03_39_14_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/03/38/image_16062025_03_38_54_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/38/image_16062025_03_38_44_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/38/image_16062025_03_38_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/37/image_16062025_03_38_04_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d064400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d064400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d064400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:40:17.122319
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_23_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_14_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/03/39/image_16062025_03_40_04_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/03/39/image_16062025_03_39_53_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90c61470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90c61470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90c61470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:40:32.123174
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_23_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_14_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/03/39/image_16062025_03_40_04_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/03/39/image_16062025_03_39_53_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d6c1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d6c1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d6c1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:40:47.103719
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_23_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_14_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/03/39/image_16062025_03_40_04_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/03/39/image_16062025_03_39_53_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86b4a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86b4a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86b4a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:41:02.617335
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_23_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_14_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/03/39/image_16062025_03_40_04_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/03/39/image_16062025_03_39_53_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c20e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c20e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c20e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:41:17.217149
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_14_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_41_04_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_54_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_34_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9da15470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9da15470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9da15470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:41:32.206142
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_14_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_41_04_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_54_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_34_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f999ac400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f999ac400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f999ac400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:41:47.208535
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_14_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_41_04_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_54_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_34_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb00db470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb00db470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb00db470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:42:02.687584
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_14_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_41_04_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_54_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_34_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae948400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae948400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae948400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:42:17.294290
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/42/image_16062025_03_42_34_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_14_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_41_04_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_54_10622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77437470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77437470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77437470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:42:32.344037
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/42/image_16062025_03_42_34_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_14_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_41_04_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_54_10622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76a5a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76a5a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76a5a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:42:47.288238
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/42/image_16062025_03_42_34_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_14_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_41_04_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_54_10622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa97cf400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa97cf400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa97cf400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:43:02.612561
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/42/image_16062025_03_42_34_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_14_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_41_04_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/40/image_16062025_03_40_54_10622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88f9e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88f9e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88f9e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:43:17.403622
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/43/image_16062025_03_43_14_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/03/42/image_16062025_03_43_03_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/03/42/image_16062025_03_42_44_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/42/image_16062025_03_42_34_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_24_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8664400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8664400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8664400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:43:32.449964
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/43/image_16062025_03_43_14_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/03/42/image_16062025_03_43_03_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/03/42/image_16062025_03_42_44_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/42/image_16062025_03_42_34_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_24_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa077d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa077d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa077d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:43:47.382696
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/43/image_16062025_03_43_14_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/03/42/image_16062025_03_43_03_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/03/42/image_16062025_03_42_44_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/42/image_16062025_03_42_34_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_24_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa210a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa210a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa210a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:44:03.066145
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/43/image_16062025_03_43_14_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/03/42/image_16062025_03_43_03_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/03/42/image_16062025_03_42_44_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/42/image_16062025_03_42_34_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/41/image_16062025_03_41_24_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa914e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa914e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa914e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:44:17.493507
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_44_44_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_44_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_44_14_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/03/43/image_16062025_03_44_04_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/03/43/image_16062025_03_43_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/43/image_16062025_03_43_14_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5c4a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5c4a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5c4a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:44:32.515232
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_44_44_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_44_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_44_14_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/03/43/image_16062025_03_44_04_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/03/43/image_16062025_03_43_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/43/image_16062025_03_43_14_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a34b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a34b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a34b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:44:47.480178
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_44_44_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_44_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_44_14_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/03/43/image_16062025_03_44_04_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/03/43/image_16062025_03_43_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/43/image_16062025_03_43_14_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3859470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3859470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3859470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:45:03.195314
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_44_44_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_44_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_44_14_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/03/43/image_16062025_03_44_04_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/03/43/image_16062025_03_43_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/43/image_16062025_03_43_14_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f987b6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f987b6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f987b6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:45:17.580036
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/45/image_16062025_03_45_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/45/image_16062025_03_45_24_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_45_04_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_44_53_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_44_44_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_44_34_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c4a3400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c4a3400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c4a3400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:45:32.573271
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/45/image_16062025_03_45_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/45/image_16062025_03_45_24_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_45_04_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_44_53_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_44_44_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_44_34_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa137e400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa137e400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa137e400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:45:47.586031
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/45/image_16062025_03_45_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/45/image_16062025_03_45_24_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_45_04_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_44_53_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_44_44_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_44_34_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84e72470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84e72470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84e72470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:46:03.008177
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/45/image_16062025_03_45_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/45/image_16062025_03_45_24_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_45_04_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_44_53_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_44_44_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/44/image_16062025_03_44_34_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95c3e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95c3e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95c3e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:46:17.718001
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/46/image_16062025_03_46_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/46/image_16062025_03_46_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/45/image_16062025_03_46_04_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/45/image_16062025_03_45_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/45/image_16062025_03_45_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/45/image_16062025_03_45_24_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3fae400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3fae400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3fae400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:46:32.700416
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/46/image_16062025_03_46_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/46/image_16062025_03_46_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/45/image_16062025_03_46_04_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/45/image_16062025_03_45_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/45/image_16062025_03_45_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/45/image_16062025_03_45_24_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bd03400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bd03400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bd03400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:46:47.679688
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/46/image_16062025_03_46_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/46/image_16062025_03_46_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/45/image_16062025_03_46_04_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/45/image_16062025_03_45_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/45/image_16062025_03_45_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/45/image_16062025_03_45_24_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2cc3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2cc3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2cc3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:47:02.253790
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/46/image_16062025_03_46_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/46/image_16062025_03_46_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/45/image_16062025_03_46_04_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/03/45/image_16062025_03_45_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/45/image_16062025_03_45_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/45/image_16062025_03_45_24_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85ec9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85ec9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85ec9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:47:16.779408
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/47/image_16062025_03_47_44_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/03/47/image_16062025_03_47_24_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/03/47/image_16062025_03_47_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/03/46/image_16062025_03_47_03_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/46/image_16062025_03_46_54_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/46/image_16062025_03_46_44_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f800e5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f800e5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f800e5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:47:31.782311
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/47/image_16062025_03_47_44_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/03/47/image_16062025_03_47_24_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/03/47/image_16062025_03_47_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/03/46/image_16062025_03_47_03_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/46/image_16062025_03_46_54_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/46/image_16062025_03_46_44_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0360470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0360470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0360470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:47:46.784218
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/47/image_16062025_03_47_44_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/03/47/image_16062025_03_47_24_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/03/47/image_16062025_03_47_14_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/03/46/image_16062025_03_47_03_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/46/image_16062025_03_46_54_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/46/image_16062025_03_46_44_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b2d5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b2d5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b2d5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:48:16.906257
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/48/image_16062025_03_48_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/48/image_16062025_03_48_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/03/47/image_16062025_03_48_04_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/03/47/image_16062025_03_47_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/47/image_16062025_03_47_44_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/03/47/image_16062025_03_47_24_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96e56470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96e56470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96e56470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:48:31.881544
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/48/image_16062025_03_48_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/48/image_16062025_03_48_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/03/47/image_16062025_03_48_04_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/03/47/image_16062025_03_47_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/47/image_16062025_03_47_44_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/03/47/image_16062025_03_47_24_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80973470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80973470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80973470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:48:46.880791
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/48/image_16062025_03_48_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/48/image_16062025_03_48_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/03/47/image_16062025_03_48_04_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/03/47/image_16062025_03_47_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/47/image_16062025_03_47_44_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/03/47/image_16062025_03_47_24_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d2be400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d2be400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d2be400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:49:02.807375
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/48/image_16062025_03_48_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/48/image_16062025_03_48_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/03/47/image_16062025_03_48_04_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/03/47/image_16062025_03_47_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/47/image_16062025_03_47_44_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/03/47/image_16062025_03_47_24_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f998fc400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f998fc400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f998fc400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:49:16.983134
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/49/image_16062025_03_49_34_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/03/49/image_16062025_03_49_14_9734.jpg', 2), ('/home/nano/Desktop/images/16062025/03/48/image_16062025_03_49_04_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/03/48/image_16062025_03_48_53_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/48/image_16062025_03_48_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/48/image_16062025_03_48_14_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f908cc470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f908cc470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f908cc470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:49:31.994974
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/49/image_16062025_03_49_34_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/03/49/image_16062025_03_49_14_9734.jpg', 2), ('/home/nano/Desktop/images/16062025/03/48/image_16062025_03_49_04_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/03/48/image_16062025_03_48_53_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/48/image_16062025_03_48_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/48/image_16062025_03_48_14_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f82d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f82d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f82d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:49:47.020301
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/49/image_16062025_03_49_34_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/03/49/image_16062025_03_49_14_9734.jpg', 2), ('/home/nano/Desktop/images/16062025/03/48/image_16062025_03_49_04_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/03/48/image_16062025_03_48_53_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/48/image_16062025_03_48_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/48/image_16062025_03_48_14_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f951ea470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f951ea470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f951ea470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:50:02.471760
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/49/image_16062025_03_49_34_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/03/49/image_16062025_03_49_14_9734.jpg', 2), ('/home/nano/Desktop/images/16062025/03/48/image_16062025_03_49_04_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/03/48/image_16062025_03_48_53_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/48/image_16062025_03_48_23_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/48/image_16062025_03_48_14_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9f6d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9f6d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9f6d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:50:17.157901
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_50_43_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_50_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_50_24_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_50_13_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/49/image_16062025_03_50_04_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/03/49/image_16062025_03_49_54_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ce3d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ce3d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ce3d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:50:32.141639
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_50_43_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_50_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_50_24_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_50_13_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/49/image_16062025_03_50_04_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/03/49/image_16062025_03_49_54_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83975470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83975470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83975470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:50:47.113515
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_50_43_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_50_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_50_24_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_50_13_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/49/image_16062025_03_50_04_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/03/49/image_16062025_03_49_54_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8eca0400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8eca0400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8eca0400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:51:02.657460
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_50_43_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_50_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_50_24_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_50_13_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/49/image_16062025_03_50_04_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/03/49/image_16062025_03_49_54_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1ee0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1ee0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1ee0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:51:17.200425
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/51/image_16062025_03_51_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/51/image_16062025_03_51_33_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/03/51/image_16062025_03_51_13_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_51_04_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_50_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_50_43_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a745470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a745470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a745470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:51:32.191937
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/51/image_16062025_03_51_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/51/image_16062025_03_51_33_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/03/51/image_16062025_03_51_13_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_51_04_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_50_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_50_43_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d489470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d489470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d489470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:51:47.195243
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/51/image_16062025_03_51_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/51/image_16062025_03_51_33_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/03/51/image_16062025_03_51_13_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_51_04_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_50_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_50_43_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94a06400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94a06400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94a06400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:52:02.649454
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/51/image_16062025_03_51_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/51/image_16062025_03_51_33_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/03/51/image_16062025_03_51_13_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_51_04_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_50_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/03/50/image_16062025_03_50_43_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a096470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a096470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a096470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:52:17.296840
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/52/image_16062025_03_52_44_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/03/52/image_16062025_03_52_34_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/52/image_16062025_03_52_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/52/image_16062025_03_52_14_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/03/51/image_16062025_03_51_54_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/51/image_16062025_03_51_44_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb374b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb374b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb374b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:52:32.285857
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/52/image_16062025_03_52_44_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/03/52/image_16062025_03_52_34_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/52/image_16062025_03_52_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/52/image_16062025_03_52_14_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/03/51/image_16062025_03_51_54_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/51/image_16062025_03_51_44_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ce1b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ce1b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ce1b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:52:47.308615
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/52/image_16062025_03_52_44_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/03/52/image_16062025_03_52_34_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/52/image_16062025_03_52_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/52/image_16062025_03_52_14_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/03/51/image_16062025_03_51_54_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/51/image_16062025_03_51_44_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2002400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2002400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2002400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:53:02.967573
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/52/image_16062025_03_52_44_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/03/52/image_16062025_03_52_34_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/03/52/image_16062025_03_52_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/52/image_16062025_03_52_14_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/03/51/image_16062025_03_51_54_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/51/image_16062025_03_51_44_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fbed470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fbed470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fbed470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:53:17.423448
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_53_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_53_34_10620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_53_23_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_53_14_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/03/52/image_16062025_03_53_04_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/52/image_16062025_03_52_53_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91622470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91622470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91622470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:53:32.390236
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_53_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_53_34_10620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_53_23_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_53_14_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/03/52/image_16062025_03_53_04_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/52/image_16062025_03_52_53_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b401470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b401470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b401470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:53:47.383956
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_53_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_53_34_10620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_53_23_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_53_14_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/03/52/image_16062025_03_53_04_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/52/image_16062025_03_52_53_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94f58470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94f58470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94f58470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:54:03.162764
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_53_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_53_34_10620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_53_23_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_53_14_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/03/52/image_16062025_03_53_04_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/03/52/image_16062025_03_52_53_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8929a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8929a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8929a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:54:17.495553
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/54/image_16062025_03_54_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/54/image_16062025_03_54_24_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/03/54/image_16062025_03_54_13_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_54_04_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_53_54_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_53_44_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fdf74a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fdf74a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fdf74a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:54:32.508276
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/54/image_16062025_03_54_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/54/image_16062025_03_54_24_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/03/54/image_16062025_03_54_13_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_54_04_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_53_54_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_53_44_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa540e400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa540e400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa540e400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:54:47.515938
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/54/image_16062025_03_54_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/54/image_16062025_03_54_24_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/03/54/image_16062025_03_54_13_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_54_04_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_53_54_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_53_44_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fa78470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fa78470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fa78470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:55:03.002435
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/54/image_16062025_03_54_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/54/image_16062025_03_54_24_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/03/54/image_16062025_03_54_13_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_54_04_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_53_54_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/03/53/image_16062025_03_53_44_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad0bd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad0bd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad0bd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:55:17.600854
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/55/image_16062025_03_55_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/55/image_16062025_03_55_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/55/image_16062025_03_55_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/03/54/image_16062025_03_55_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/54/image_16062025_03_54_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/54/image_16062025_03_54_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7cab6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cab6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cab6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:55:32.590938
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/55/image_16062025_03_55_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/55/image_16062025_03_55_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/55/image_16062025_03_55_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/03/54/image_16062025_03_55_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/54/image_16062025_03_54_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/54/image_16062025_03_54_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f942824a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f942824a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f942824a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:55:47.602526
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/55/image_16062025_03_55_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/55/image_16062025_03_55_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/55/image_16062025_03_55_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/03/54/image_16062025_03_55_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/54/image_16062025_03_54_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/54/image_16062025_03_54_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f969d6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f969d6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f969d6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:56:03.028280
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/55/image_16062025_03_55_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/55/image_16062025_03_55_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/55/image_16062025_03_55_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/03/54/image_16062025_03_55_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/03/54/image_16062025_03_54_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/54/image_16062025_03_54_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9404470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9404470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9404470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:56:17.700706
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/56/image_16062025_03_56_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/56/image_16062025_03_56_34_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/03/56/image_16062025_03_56_14_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/03/55/image_16062025_03_56_03_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/55/image_16062025_03_55_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/55/image_16062025_03_55_44_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d30b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d30b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d30b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:56:32.735358
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/56/image_16062025_03_56_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/56/image_16062025_03_56_34_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/03/56/image_16062025_03_56_14_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/03/55/image_16062025_03_56_03_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/55/image_16062025_03_55_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/55/image_16062025_03_55_44_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97234470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97234470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97234470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:56:47.704015
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/56/image_16062025_03_56_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/56/image_16062025_03_56_34_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/03/56/image_16062025_03_56_14_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/03/55/image_16062025_03_56_03_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/55/image_16062025_03_55_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/55/image_16062025_03_55_44_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ca7e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ca7e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ca7e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:57:02.117776
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/56/image_16062025_03_56_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/56/image_16062025_03_56_34_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/03/56/image_16062025_03_56_14_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/03/55/image_16062025_03_56_03_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/55/image_16062025_03_55_54_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/55/image_16062025_03_55_44_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9445b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9445b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9445b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:57:16.840314
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/57/image_16062025_03_57_44_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/03/57/image_16062025_03_57_23_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/57/image_16062025_03_57_14_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/03/56/image_16062025_03_57_04_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/03/56/image_16062025_03_56_53_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/56/image_16062025_03_56_44_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86292470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86292470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86292470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:57:31.801969
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/57/image_16062025_03_57_44_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/03/57/image_16062025_03_57_23_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/57/image_16062025_03_57_14_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/03/56/image_16062025_03_57_04_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/03/56/image_16062025_03_56_53_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/56/image_16062025_03_56_44_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93b96470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93b96470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93b96470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:57:46.867985
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/57/image_16062025_03_57_44_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/03/57/image_16062025_03_57_23_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/57/image_16062025_03_57_14_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/03/56/image_16062025_03_57_04_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/03/56/image_16062025_03_56_53_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/56/image_16062025_03_56_44_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa80fe470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa80fe470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa80fe470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:59:02.758430
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/57/image_16062025_03_57_44_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/03/57/image_16062025_03_57_23_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/03/57/image_16062025_03_57_14_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/03/56/image_16062025_03_57_04_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/03/56/image_16062025_03_56_53_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/03/56/image_16062025_03_56_44_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1056470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1056470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1056470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:59:17.076592
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_44_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_13_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/58/image_16062025_03_59_04_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/58/image_16062025_03_58_54_10622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa48de470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa48de470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa48de470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:59:32.002644
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_44_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_13_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/58/image_16062025_03_59_04_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/58/image_16062025_03_58_54_10622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95bd4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95bd4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95bd4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 03:59:46.978435
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_44_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_13_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/58/image_16062025_03_59_04_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/58/image_16062025_03_58_54_10622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e847470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e847470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e847470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:00:02.437428
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_44_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_13_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/03/58/image_16062025_03_59_04_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/58/image_16062025_03_58_54_10622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fabd77470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabd77470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabd77470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:00:17.097389
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/00/image_16062025_04_00_24_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/04/00/image_16062025_04_00_14_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_04_00_03_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_54_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_44_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_34_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f774b7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f774b7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f774b7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:00:32.088990
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/00/image_16062025_04_00_24_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/04/00/image_16062025_04_00_14_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_04_00_03_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_54_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_44_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_34_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78691470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78691470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78691470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:00:47.099370
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/00/image_16062025_04_00_24_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/04/00/image_16062025_04_00_14_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_04_00_03_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_54_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_44_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_34_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5bc0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5bc0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5bc0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:01:02.620072
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/00/image_16062025_04_00_24_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/04/00/image_16062025_04_00_14_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_04_00_03_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_54_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_44_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/03/59/image_16062025_03_59_34_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ddc9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ddc9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ddc9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:01:17.226736
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/01/image_16062025_04_01_34_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/04/01/image_16062025_04_01_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/01/image_16062025_04_01_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/04/00/image_16062025_04_00_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/00/image_16062025_04_00_24_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/04/00/image_16062025_04_00_14_10645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4f13470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4f13470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4f13470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:01:32.213819
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/01/image_16062025_04_01_34_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/04/01/image_16062025_04_01_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/01/image_16062025_04_01_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/04/00/image_16062025_04_00_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/00/image_16062025_04_00_24_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/04/00/image_16062025_04_00_14_10645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88c7c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88c7c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88c7c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:01:47.198525
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/01/image_16062025_04_01_34_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/04/01/image_16062025_04_01_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/01/image_16062025_04_01_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/04/00/image_16062025_04_00_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/00/image_16062025_04_00_24_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/04/00/image_16062025_04_00_14_10645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97c02470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97c02470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97c02470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:02:02.699723
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/01/image_16062025_04_01_34_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/04/01/image_16062025_04_01_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/01/image_16062025_04_01_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/04/00/image_16062025_04_00_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/00/image_16062025_04_00_24_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/04/00/image_16062025_04_00_14_10645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1b69470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1b69470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1b69470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:02:17.309669
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_44_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_23_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_14_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/04/01/image_16062025_04_02_04_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/04/01/image_16062025_04_01_44_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb13a3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb13a3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb13a3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:02:32.307440
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_44_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_23_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_14_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/04/01/image_16062025_04_02_04_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/04/01/image_16062025_04_01_44_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f767c6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f767c6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f767c6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:02:47.281002
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_44_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_23_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_14_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/04/01/image_16062025_04_02_04_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/04/01/image_16062025_04_01_44_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ad00470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ad00470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ad00470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:03:02.779925
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_44_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_23_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_14_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/04/01/image_16062025_04_02_04_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/04/01/image_16062025_04_01_44_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5380470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5380470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5380470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:03:17.409847
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/03/image_16062025_04_03_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/03/image_16062025_04_03_13_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_03_04_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_44_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_34_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3416470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3416470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3416470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:03:32.416414
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/03/image_16062025_04_03_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/03/image_16062025_04_03_13_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_03_04_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_44_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_34_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99069470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99069470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99069470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:03:47.383143
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/03/image_16062025_04_03_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/03/image_16062025_04_03_13_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_03_04_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_44_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_34_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f784ab470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f784ab470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f784ab470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:04:03.007344
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/03/image_16062025_04_03_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/03/image_16062025_04_03_13_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_03_04_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_44_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_02_34_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2bf3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2bf3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2bf3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:04:17.514272
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/04/image_16062025_04_04_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/04/03/image_16062025_04_04_04_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/03/image_16062025_04_03_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/03/image_16062025_04_03_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/03/image_16062025_04_03_13_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_03_04_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad88e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad88e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad88e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:04:32.476063
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/04/image_16062025_04_04_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/04/03/image_16062025_04_04_04_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/03/image_16062025_04_03_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/03/image_16062025_04_03_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/03/image_16062025_04_03_13_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_03_04_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa3fb470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa3fb470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa3fb470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:04:47.486778
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/04/image_16062025_04_04_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/04/03/image_16062025_04_04_04_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/03/image_16062025_04_03_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/03/image_16062025_04_03_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/03/image_16062025_04_03_13_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_03_04_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81223400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81223400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81223400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:05:02.941171
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/04/image_16062025_04_04_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/04/03/image_16062025_04_04_04_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/03/image_16062025_04_03_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/03/image_16062025_04_03_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/03/image_16062025_04_03_13_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/04/02/image_16062025_04_03_04_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ea0a400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ea0a400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ea0a400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:05:17.585034
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/05/image_16062025_04_05_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/04/05/image_16062025_04_05_33_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/04/05/image_16062025_04_05_24_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/04/05/image_16062025_04_05_14_10660.jpg', 2), ('/home/nano/Desktop/images/16062025/04/04/image_16062025_04_05_03_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/04/image_16062025_04_04_44_10638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88d3d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88d3d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88d3d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:05:32.630039
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/05/image_16062025_04_05_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/04/05/image_16062025_04_05_33_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/04/05/image_16062025_04_05_24_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/04/05/image_16062025_04_05_14_10660.jpg', 2), ('/home/nano/Desktop/images/16062025/04/04/image_16062025_04_05_03_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/04/image_16062025_04_04_44_10638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f876e5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f876e5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f876e5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:05:47.622036
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/05/image_16062025_04_05_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/04/05/image_16062025_04_05_33_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/04/05/image_16062025_04_05_24_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/04/05/image_16062025_04_05_14_10660.jpg', 2), ('/home/nano/Desktop/images/16062025/04/04/image_16062025_04_05_03_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/04/image_16062025_04_04_44_10638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa28c4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa28c4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa28c4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:06:03.016863
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/05/image_16062025_04_05_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/04/05/image_16062025_04_05_33_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/04/05/image_16062025_04_05_24_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/04/05/image_16062025_04_05_14_10660.jpg', 2), ('/home/nano/Desktop/images/16062025/04/04/image_16062025_04_05_03_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/04/image_16062025_04_04_44_10638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f919b0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f919b0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f919b0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:06:17.736082
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_23_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_14_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/04/05/image_16062025_04_06_04_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/04/05/image_16062025_04_05_54_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92b3c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92b3c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92b3c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:06:32.745107
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_23_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_14_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/04/05/image_16062025_04_06_04_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/04/05/image_16062025_04_05_54_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97f46470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97f46470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97f46470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:06:47.756692
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_23_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_14_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/04/05/image_16062025_04_06_04_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/04/05/image_16062025_04_05_54_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94043400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94043400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94043400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:07:02.347860
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_34_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_23_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_14_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/04/05/image_16062025_04_06_04_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/04/05/image_16062025_04_05_54_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f998f1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f998f1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f998f1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:07:16.842313
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/07/image_16062025_04_07_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/04/07/image_16062025_04_07_14_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_07_04_10659.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_53_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_34_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80c8a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80c8a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80c8a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:07:31.843412
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/07/image_16062025_04_07_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/04/07/image_16062025_04_07_14_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_07_04_10659.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_53_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_34_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8827e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8827e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8827e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:07:46.832817
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/07/image_16062025_04_07_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/04/07/image_16062025_04_07_14_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_07_04_10659.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_53_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_34_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3b29470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3b29470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3b29470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:08:02.368104
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/07/image_16062025_04_07_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/04/07/image_16062025_04_07_14_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_07_04_10659.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_53_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/06/image_16062025_04_06_34_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5659400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5659400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5659400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:08:16.929002
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_08_34_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_08_13_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/04/07/image_16062025_04_08_04_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/04/07/image_16062025_04_07_34_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/04/07/image_16062025_04_07_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/04/07/image_16062025_04_07_14_9632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad374400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad374400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad374400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:08:31.973758
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_08_34_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_08_13_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/04/07/image_16062025_04_08_04_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/04/07/image_16062025_04_07_34_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/04/07/image_16062025_04_07_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/04/07/image_16062025_04_07_14_9632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d3a8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d3a8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d3a8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:08:46.910737
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_08_34_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_08_13_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/04/07/image_16062025_04_08_04_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/04/07/image_16062025_04_07_34_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/04/07/image_16062025_04_07_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/04/07/image_16062025_04_07_14_9632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95a92470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95a92470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95a92470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:09:02.784707
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_08_34_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_08_13_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/04/07/image_16062025_04_08_04_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/04/07/image_16062025_04_07_34_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/04/07/image_16062025_04_07_24_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/04/07/image_16062025_04_07_14_9632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f2f2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f2f2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f2f2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:09:17.058331
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/09/image_16062025_04_09_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/09/image_16062025_04_09_14_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_09_04_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_08_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_08_34_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_08_13_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96dd8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96dd8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96dd8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:09:32.049653
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/09/image_16062025_04_09_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/09/image_16062025_04_09_14_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_09_04_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_08_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_08_34_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_08_13_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95e6f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95e6f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95e6f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:09:47.035925
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/09/image_16062025_04_09_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/09/image_16062025_04_09_14_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_09_04_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_08_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_08_34_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_08_13_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d10d400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d10d400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d10d400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:10:02.412995
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/09/image_16062025_04_09_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/09/image_16062025_04_09_14_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_09_04_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_08_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_08_34_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_08_13_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8063d400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8063d400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8063d400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:10:17.146972
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/10/image_16062025_04_10_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/10/image_16062025_04_10_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/04/09/image_16062025_04_09_54_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/04/09/image_16062025_04_09_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/09/image_16062025_04_09_14_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_09_04_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ef56470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ef56470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ef56470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:10:32.143357
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/10/image_16062025_04_10_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/10/image_16062025_04_10_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/04/09/image_16062025_04_09_54_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/04/09/image_16062025_04_09_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/09/image_16062025_04_09_14_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_09_04_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0838470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0838470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0838470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:10:47.139309
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/10/image_16062025_04_10_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/10/image_16062025_04_10_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/04/09/image_16062025_04_09_54_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/04/09/image_16062025_04_09_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/09/image_16062025_04_09_14_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_09_04_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f946cf470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f946cf470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f946cf470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:11:02.822388
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/10/image_16062025_04_10_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/10/image_16062025_04_10_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/04/09/image_16062025_04_09_54_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/04/09/image_16062025_04_09_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/09/image_16062025_04_09_14_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/04/08/image_16062025_04_09_04_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81126470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81126470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81126470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:11:17.250047
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_11_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_11_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_11_23_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/10/image_16062025_04_10_53_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/10/image_16062025_04_10_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/10/image_16062025_04_10_34_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bcb9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bcb9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bcb9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:11:32.252576
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_11_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_11_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_11_23_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/10/image_16062025_04_10_53_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/10/image_16062025_04_10_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/10/image_16062025_04_10_34_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac291470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac291470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac291470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:11:47.235195
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_11_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_11_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_11_23_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/10/image_16062025_04_10_53_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/10/image_16062025_04_10_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/10/image_16062025_04_10_34_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7963470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7963470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7963470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:12:02.503943
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_11_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_11_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_11_23_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/10/image_16062025_04_10_53_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/10/image_16062025_04_10_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/10/image_16062025_04_10_34_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0a54470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0a54470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0a54470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:12:17.352268
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/12/image_16062025_04_12_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/04/12/image_16062025_04_12_13_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_12_04_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_11_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_11_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_11_34_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7dcfb470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dcfb470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dcfb470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:12:32.331720
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/12/image_16062025_04_12_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/04/12/image_16062025_04_12_13_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_12_04_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_11_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_11_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_11_34_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f941b9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f941b9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f941b9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:12:47.363085
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/12/image_16062025_04_12_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/04/12/image_16062025_04_12_13_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_12_04_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_11_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_11_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_11_34_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9acfa470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9acfa470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9acfa470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:13:03.045817
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/12/image_16062025_04_12_24_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/04/12/image_16062025_04_12_13_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_12_04_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_11_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_11_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/11/image_16062025_04_11_34_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6449470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6449470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6449470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:13:17.507821
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_14_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/04/12/image_16062025_04_13_04_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/04/12/image_16062025_04_12_43_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90276400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90276400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90276400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:13:32.464243
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_14_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/04/12/image_16062025_04_13_04_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/04/12/image_16062025_04_12_43_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9dcba470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dcba470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dcba470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:13:47.450470
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_14_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/04/12/image_16062025_04_13_04_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/04/12/image_16062025_04_12_43_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d5cf470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d5cf470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d5cf470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:14:03.130638
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_14_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/04/12/image_16062025_04_13_04_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/04/12/image_16062025_04_12_43_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b500470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b500470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b500470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:14:17.553131
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/14/image_16062025_04_14_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/04/14/image_16062025_04_14_14_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_54_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_24_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d5c0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d5c0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d5c0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:14:32.557251
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/14/image_16062025_04_14_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/04/14/image_16062025_04_14_14_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_54_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_24_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa2d0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa2d0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa2d0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:14:47.578621
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/14/image_16062025_04_14_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/04/14/image_16062025_04_14_14_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_54_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_24_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bd15470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bd15470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bd15470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:15:03.139195
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/14/image_16062025_04_14_44_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/04/14/image_16062025_04_14_14_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_54_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/13/image_16062025_04_13_24_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb408e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb408e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb408e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:15:17.692292
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_23_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_14_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/04/14/image_16062025_04_14_54_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/14/image_16062025_04_14_44_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f905f0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f905f0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f905f0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:15:32.675864
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_23_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_14_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/04/14/image_16062025_04_14_54_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/14/image_16062025_04_14_44_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9964d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9964d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9964d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:15:47.671125
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_23_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_14_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/04/14/image_16062025_04_14_54_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/14/image_16062025_04_14_44_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bde7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bde7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bde7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:16:02.210608
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_23_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_14_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/04/14/image_16062025_04_14_54_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/14/image_16062025_04_14_44_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4d82470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4d82470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4d82470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:16:16.779393
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/16/image_16062025_04_16_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/16/image_16062025_04_16_14_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_16_04_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_53_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_34_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa03ca470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa03ca470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa03ca470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:16:31.860798
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/16/image_16062025_04_16_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/16/image_16062025_04_16_14_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_16_04_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_53_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_34_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb56e8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb56e8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb56e8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:16:46.769199
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/16/image_16062025_04_16_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/16/image_16062025_04_16_14_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_16_04_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_53_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_34_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ccd4400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ccd4400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ccd4400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:17:02.463215
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/16/image_16062025_04_16_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/16/image_16062025_04_16_14_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_16_04_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_53_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/15/image_16062025_04_15_34_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8460f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8460f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8460f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:17:16.867274
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/17/image_16062025_04_17_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/17/image_16062025_04_17_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/17/image_16062025_04_17_13_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/04/16/image_16062025_04_17_04_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/04/16/image_16062025_04_16_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/04/16/image_16062025_04_16_24_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79b3c400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79b3c400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79b3c400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:17:31.871460
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/17/image_16062025_04_17_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/17/image_16062025_04_17_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/17/image_16062025_04_17_13_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/04/16/image_16062025_04_17_04_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/04/16/image_16062025_04_16_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/04/16/image_16062025_04_16_24_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99067470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99067470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99067470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:17:46.883485
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/17/image_16062025_04_17_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/17/image_16062025_04_17_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/17/image_16062025_04_17_13_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/04/16/image_16062025_04_17_04_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/04/16/image_16062025_04_16_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/04/16/image_16062025_04_16_24_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae581470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae581470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae581470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:18:02.351792
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/17/image_16062025_04_17_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/17/image_16062025_04_17_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/17/image_16062025_04_17_13_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/04/16/image_16062025_04_17_04_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/04/16/image_16062025_04_16_34_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/04/16/image_16062025_04_16_24_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c986470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c986470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c986470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:18:16.966263
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/18/image_16062025_04_18_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/18/image_16062025_04_18_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/18/image_16062025_04_18_14_10667.jpg', 2), ('/home/nano/Desktop/images/16062025/04/17/image_16062025_04_18_03_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/04/17/image_16062025_04_17_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/17/image_16062025_04_17_34_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bf21470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bf21470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bf21470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:18:31.975075
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/18/image_16062025_04_18_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/18/image_16062025_04_18_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/18/image_16062025_04_18_14_10667.jpg', 2), ('/home/nano/Desktop/images/16062025/04/17/image_16062025_04_18_03_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/04/17/image_16062025_04_17_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/17/image_16062025_04_17_34_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f870fe470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f870fe470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f870fe470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:18:46.955494
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/18/image_16062025_04_18_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/18/image_16062025_04_18_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/18/image_16062025_04_18_14_10667.jpg', 2), ('/home/nano/Desktop/images/16062025/04/17/image_16062025_04_18_03_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/04/17/image_16062025_04_17_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/17/image_16062025_04_17_34_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78b09400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78b09400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78b09400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:19:02.800989
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/18/image_16062025_04_18_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/18/image_16062025_04_18_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/18/image_16062025_04_18_14_10667.jpg', 2), ('/home/nano/Desktop/images/16062025/04/17/image_16062025_04_18_03_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/04/17/image_16062025_04_17_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/17/image_16062025_04_17_34_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac820400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac820400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac820400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:19:17.110529
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/19/image_16062025_04_19_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/19/image_16062025_04_19_23_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/04/19/image_16062025_04_19_14_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/04/18/image_16062025_04_18_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/04/18/image_16062025_04_18_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/18/image_16062025_04_18_24_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e8d0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e8d0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e8d0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:19:32.046527
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/19/image_16062025_04_19_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/19/image_16062025_04_19_23_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/04/19/image_16062025_04_19_14_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/04/18/image_16062025_04_18_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/04/18/image_16062025_04_18_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/18/image_16062025_04_18_24_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b904470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b904470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b904470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:19:47.080674
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/19/image_16062025_04_19_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/19/image_16062025_04_19_23_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/04/19/image_16062025_04_19_14_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/04/18/image_16062025_04_18_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/04/18/image_16062025_04_18_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/18/image_16062025_04_18_24_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d043470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d043470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d043470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:20:02.581611
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/19/image_16062025_04_19_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/19/image_16062025_04_19_23_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/04/19/image_16062025_04_19_14_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/04/18/image_16062025_04_18_44_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/04/18/image_16062025_04_18_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/18/image_16062025_04_18_24_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fe18470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fe18470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fe18470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:20:17.175269
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_14_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/04/19/image_16062025_04_20_04_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/04/19/image_16062025_04_19_53_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a465470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a465470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a465470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:20:32.186046
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_14_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/04/19/image_16062025_04_20_04_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/04/19/image_16062025_04_19_53_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8469b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8469b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8469b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:20:47.171849
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_14_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/04/19/image_16062025_04_20_04_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/04/19/image_16062025_04_19_53_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95afe400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95afe400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95afe400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:21:02.755222
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_24_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_14_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/04/19/image_16062025_04_20_04_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/04/19/image_16062025_04_19_53_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb52c5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb52c5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb52c5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:21:17.312783
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/21/image_16062025_04_21_43_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/21/image_16062025_04_21_34_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_21_04_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf36a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf36a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf36a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:21:32.299721
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/21/image_16062025_04_21_43_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/21/image_16062025_04_21_34_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_21_04_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9acae400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9acae400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9acae400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:21:47.297799
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/21/image_16062025_04_21_43_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/21/image_16062025_04_21_34_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_21_04_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf067470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf067470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf067470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:22:02.703233
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/21/image_16062025_04_21_43_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/21/image_16062025_04_21_34_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_21_04_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_54_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_43_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/20/image_16062025_04_20_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4892470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4892470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4892470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:22:17.402044
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_44_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_14_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/04/21/image_16062025_04_21_54_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/04/21/image_16062025_04_21_43_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78d4e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78d4e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78d4e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:22:32.373529
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_44_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_14_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/04/21/image_16062025_04_21_54_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/04/21/image_16062025_04_21_43_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7eb32470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7eb32470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7eb32470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:22:47.368388
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_44_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_14_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/04/21/image_16062025_04_21_54_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/04/21/image_16062025_04_21_43_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86f80470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86f80470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86f80470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:23:02.971627
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_44_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_14_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/04/21/image_16062025_04_21_54_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/04/21/image_16062025_04_21_43_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1856400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1856400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1856400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:23:17.477579
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/23/image_16062025_04_23_24_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_54_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_44_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_14_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faefc6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faefc6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faefc6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:23:32.463284
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/23/image_16062025_04_23_24_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_54_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_44_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_14_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4165470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4165470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4165470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:23:47.475186
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/23/image_16062025_04_23_24_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_54_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_44_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_14_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1429400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1429400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1429400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:24:03.262778
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/23/image_16062025_04_23_24_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_54_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_44_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_33_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_14_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f949c2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f949c2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f949c2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:24:17.581019
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/24/image_16062025_04_24_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/23/image_16062025_04_24_04_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/23/image_16062025_04_23_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/23/image_16062025_04_23_24_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_54_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_44_10625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1de8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1de8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1de8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:24:32.590610
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/24/image_16062025_04_24_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/23/image_16062025_04_24_04_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/23/image_16062025_04_23_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/23/image_16062025_04_23_24_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_54_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_44_10625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f868e2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f868e2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f868e2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:24:47.562455
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/24/image_16062025_04_24_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/23/image_16062025_04_24_04_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/23/image_16062025_04_23_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/23/image_16062025_04_23_24_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_54_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_44_10625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1030470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1030470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1030470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:25:03.253399
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/24/image_16062025_04_24_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/23/image_16062025_04_24_04_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/23/image_16062025_04_23_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/23/image_16062025_04_23_24_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_54_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/04/22/image_16062025_04_22_44_10625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f867c5400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f867c5400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f867c5400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:25:17.656254
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/25/image_16062025_04_25_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/25/image_16062025_04_25_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/24/image_16062025_04_25_04_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/04/24/image_16062025_04_24_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/04/24/image_16062025_04_24_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/23/image_16062025_04_24_04_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f5a3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f5a3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f5a3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:25:32.696879
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/25/image_16062025_04_25_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/25/image_16062025_04_25_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/24/image_16062025_04_25_04_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/04/24/image_16062025_04_24_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/04/24/image_16062025_04_24_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/23/image_16062025_04_24_04_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f835fe470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f835fe470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f835fe470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:25:47.684319
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/25/image_16062025_04_25_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/25/image_16062025_04_25_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/24/image_16062025_04_25_04_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/04/24/image_16062025_04_24_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/04/24/image_16062025_04_24_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/23/image_16062025_04_24_04_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77752470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77752470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77752470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:26:02.166703
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/25/image_16062025_04_25_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/25/image_16062025_04_25_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/24/image_16062025_04_25_04_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/04/24/image_16062025_04_24_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/04/24/image_16062025_04_24_34_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/23/image_16062025_04_24_04_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88c91470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88c91470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88c91470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:26:16.830211
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/26/image_16062025_04_26_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/26/image_16062025_04_26_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/04/25/image_16062025_04_25_43_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/25/image_16062025_04_25_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/25/image_16062025_04_25_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/24/image_16062025_04_25_04_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae401470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae401470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae401470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:26:31.785969
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/26/image_16062025_04_26_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/26/image_16062025_04_26_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/04/25/image_16062025_04_25_43_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/25/image_16062025_04_25_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/25/image_16062025_04_25_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/24/image_16062025_04_25_04_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f866f6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f866f6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f866f6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:26:46.795253
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/26/image_16062025_04_26_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/26/image_16062025_04_26_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/04/25/image_16062025_04_25_43_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/25/image_16062025_04_25_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/25/image_16062025_04_25_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/24/image_16062025_04_25_04_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f847e8400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f847e8400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f847e8400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:27:02.385654
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/26/image_16062025_04_26_44_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/26/image_16062025_04_26_33_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/04/25/image_16062025_04_25_43_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/25/image_16062025_04_25_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/25/image_16062025_04_25_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/24/image_16062025_04_25_04_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9561a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9561a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9561a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:27:16.955143
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_44_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_34_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_14_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/04/26/image_16062025_04_27_03_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/04/26/image_16062025_04_26_54_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/26/image_16062025_04_26_44_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c8ae470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c8ae470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c8ae470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:27:31.907396
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_44_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_34_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_14_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/04/26/image_16062025_04_27_03_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/04/26/image_16062025_04_26_54_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/26/image_16062025_04_26_44_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf39d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf39d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf39d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:27:46.916942
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_44_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_34_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_14_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/04/26/image_16062025_04_27_03_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/04/26/image_16062025_04_26_54_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/26/image_16062025_04_26_44_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f811fc470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f811fc470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f811fc470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:28:02.255049
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_44_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_34_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_14_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/04/26/image_16062025_04_27_03_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/04/26/image_16062025_04_26_54_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/04/26/image_16062025_04_26_44_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1f2d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1f2d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1f2d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:28:17.024268
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_28_04_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_53_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_44_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_34_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_14_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f950a4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f950a4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f950a4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:28:32.030691
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_28_04_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_53_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_44_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_34_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_14_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e3d2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e3d2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e3d2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:28:47.003902
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_28_04_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_53_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_44_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_34_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_14_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f958ea470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f958ea470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f958ea470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:29:03.448138
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_34_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_28_04_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_53_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_44_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_34_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/04/27/image_16062025_04_27_14_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac5e2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac5e2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac5e2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:31:06.223635
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_34_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab4c5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab4c5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab4c5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:31:17.437375
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3455470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3455470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3455470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:31:32.452263
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a48b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a48b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a48b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:31:47.474060
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0423470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0423470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0423470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:32:02.997419
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94920470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94920470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94920470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:32:17.620247
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f825cd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f825cd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f825cd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:32:32.652677
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f915f4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f915f4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f915f4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:32:47.615966
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82da3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82da3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82da3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:33:03.145159
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a633470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a633470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a633470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:33:17.770925
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8bd1f400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bd1f400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bd1f400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:33:32.779893
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92146470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92146470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92146470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:33:47.761660
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97b044a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97b044a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97b044a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:34:02.530579
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7facf9d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facf9d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facf9d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:34:16.921029
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4662470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4662470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4662470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:34:31.904862
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3c48470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3c48470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3c48470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:34:46.911317
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0895470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0895470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0895470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:35:02.533533
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f909b7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f909b7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f909b7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:35:17.060788
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa01fe400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa01fe400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa01fe400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:35:32.053441
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a33b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a33b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a33b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:35:47.045675
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f957ae400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f957ae400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f957ae400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:36:02.440338
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa568e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa568e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa568e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:36:17.178334
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b45e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b45e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b45e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:36:32.194844
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa08e14a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa08e14a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa08e14a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:36:47.184943
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa9b4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa9b4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa9b4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:37:02.901387
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b7c1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b7c1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b7c1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:37:17.330712
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb05eb470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb05eb470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb05eb470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:37:32.339559
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d377400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d377400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d377400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:37:47.333284
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f783b3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f783b3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f783b3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:38:02.809484
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c3e7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c3e7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c3e7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:38:17.490349
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2680470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2680470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2680470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:38:32.469666
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5493470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5493470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5493470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:38:47.483840
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f830a5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f830a5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f830a5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:39:03.109347
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f169400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f169400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f169400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:39:17.651510
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4e79470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4e79470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4e79470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:39:32.676890
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4384470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4384470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4384470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:39:47.636270
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6713470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6713470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6713470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:40:02.974483
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92b1e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92b1e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92b1e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:40:17.789856
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94029470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94029470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94029470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:40:32.774286
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f874c5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f874c5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f874c5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:40:47.806438
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3e09470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3e09470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3e09470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:41:02.251829
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f851c4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f851c4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f851c4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:41:16.956442
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90b37470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90b37470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90b37470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:41:31.932511
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa23a4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa23a4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa23a4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:41:46.950181
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95aba470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95aba470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95aba470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:42:02.335892
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93070470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93070470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93070470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:42:17.110139
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f812a6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f812a6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f812a6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:42:32.090237
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad9dd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad9dd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad9dd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:42:47.098741
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa22e9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa22e9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa22e9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:43:02.644876
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79eb0400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79eb0400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79eb0400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:43:17.243669
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3504400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3504400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3504400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:43:32.233517
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fdf4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fdf4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fdf4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:43:47.270223
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95b59470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95b59470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95b59470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:44:03.050751
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f862a74a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f862a74a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f862a74a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:44:17.447044
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8df13470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8df13470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8df13470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:44:32.410805
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b87d400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b87d400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b87d400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:44:47.434597
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89f96470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89f96470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89f96470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:45:02.997163
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9dc40470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dc40470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dc40470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:45:17.572279
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bd5c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bd5c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bd5c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:45:32.581479
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faef47470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faef47470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faef47470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:45:47.589093
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa17f2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa17f2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa17f2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:46:03.061055
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b145470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b145470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b145470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:46:17.810931
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d5a6400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d5a6400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d5a6400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:46:32.811224
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1c8a400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1c8a400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1c8a400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:46:47.739098
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f07b400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f07b400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f07b400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:47:02.316937
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99795470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99795470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99795470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:47:16.911170
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa976c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa976c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa976c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:47:31.887814
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e03a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e03a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e03a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:47:46.862679
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1959470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1959470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1959470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:48:02.298427
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa38c5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa38c5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa38c5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:48:17.086892
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94c31400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94c31400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94c31400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:48:32.055591
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae98b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae98b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae98b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:48:47.078524
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4fdc400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4fdc400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4fdc400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:49:02.987630
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cd2d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cd2d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cd2d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:49:17.332180
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9316d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9316d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9316d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:49:32.229010
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1205400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1205400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1205400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:49:47.234443
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ec94470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ec94470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ec94470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:50:02.575023
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f1de470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f1de470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f1de470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:50:17.377028
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa63b3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa63b3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa63b3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:50:32.371878
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77835400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77835400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77835400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:50:47.375709
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b2bd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b2bd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b2bd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:51:02.849091
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4ef0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4ef0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4ef0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:51:17.552941
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99945470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99945470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99945470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:51:32.550920
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81ec8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81ec8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81ec8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:51:47.552845
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84ab0400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84ab0400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84ab0400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:52:02.893161
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b571470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b571470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b571470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:52:17.710121
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f410470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f410470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f410470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:52:32.687305
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7753470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7753470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7753470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:52:47.719022
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81a82470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81a82470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81a82470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:53:02.398741
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1c72470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1c72470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1c72470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:53:16.921370
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad6fb470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad6fb470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad6fb470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:53:31.864659
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c37d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c37d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c37d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:53:46.861457
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4cbf470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4cbf470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4cbf470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:54:02.559829
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa46a5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa46a5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa46a5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:54:17.035688
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c9a1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c9a1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c9a1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:54:32.005338
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c182470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c182470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c182470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:54:47.000862
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f796a5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f796a5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f796a5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:55:02.623017
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4137470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4137470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4137470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:55:17.221061
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f956d8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f956d8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f956d8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:55:32.146220
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84129470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84129470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84129470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:55:47.204123
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5a93470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5a93470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5a93470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:56:02.922248
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c513400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c513400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c513400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:56:17.309659
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bd9f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bd9f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bd9f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:56:32.320383
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac84e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac84e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac84e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:56:47.289788
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95338470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95338470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95338470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:57:02.712080
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a110470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a110470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a110470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:57:17.439807
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95f31470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95f31470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95f31470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:57:32.473995
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bfc4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bfc4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bfc4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:57:47.446651
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91876470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91876470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91876470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:59:03.402257
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a645470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a645470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a645470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:59:17.786327
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9490b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9490b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9490b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:59:32.762326
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf563470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf563470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf563470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 04:59:47.719502
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d696470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d696470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d696470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:00:02.115336
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0a86470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0a86470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0a86470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:00:16.920526
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f7e6400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f7e6400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f7e6400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:00:31.865539
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a953470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a953470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a953470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:00:46.873889
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8dfd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8dfd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8dfd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:01:02.544766
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92e8a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92e8a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92e8a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:01:17.010242
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77e3b400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77e3b400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77e3b400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:01:32.014298
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d5f3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d5f3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d5f3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:01:47.022282
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93681470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93681470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93681470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:02:02.484217
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faabf9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faabf9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faabf9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:02:17.187163
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad3a6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad3a6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad3a6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:02:32.160259
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f897a0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f897a0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f897a0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:02:47.266946
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79b28470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79b28470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79b28470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:03:02.958959
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a046470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a046470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a046470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:03:17.426239
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f952470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f952470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f952470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:03:32.437646
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb10a0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb10a0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb10a0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:03:47.427944
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad928470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad928470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad928470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:04:03.091340
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77395470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77395470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77395470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:04:17.590422
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8293470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8293470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8293470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:04:32.613897
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1d5e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1d5e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1d5e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:04:47.561865
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0343400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0343400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0343400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:05:03.150525
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7880d4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7880d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7880d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:05:17.716747
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c705400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c705400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c705400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:05:32.773736
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98f1b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98f1b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98f1b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:05:47.712829
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cab3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cab3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cab3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:06:02.042009
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4461470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4461470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4461470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:06:16.869490
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d7fd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d7fd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d7fd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:06:31.829133
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8cbd2400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cbd2400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cbd2400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:06:46.862804
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95618470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95618470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95618470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:07:02.453455
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85364470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85364470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85364470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:07:17.016432
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6d42470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6d42470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6d42470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:07:32.010786
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fada51400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fada51400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fada51400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:07:47.032063
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab9a3400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab9a3400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab9a3400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:08:02.544891
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9786b400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9786b400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9786b400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:08:17.232935
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d931470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d931470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d931470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:08:32.170165
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3763470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3763470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3763470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:08:47.179143
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8812f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8812f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8812f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:09:03.044366
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a314470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a314470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a314470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:09:17.350405
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa357f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa357f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa357f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:09:32.316528
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d4a8400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d4a8400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d4a8400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:09:47.330395
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f948b9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f948b9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f948b9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:10:02.758483
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3fd2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3fd2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3fd2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:10:17.479529
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7738e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7738e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7738e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:10:32.534239
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f799cb400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f799cb400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f799cb400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:10:47.469261
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8015e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8015e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8015e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:11:02.898664
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c633470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c633470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c633470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:11:17.622428
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fefe470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fefe470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fefe470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:11:32.635556
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f123470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f123470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f123470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:11:47.626670
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2160470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2160470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2160470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:12:03.191626
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84955470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84955470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84955470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:12:17.780182
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fa9a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fa9a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fa9a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:12:32.798183
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95a3c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95a3c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95a3c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:12:47.779030
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b022400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b022400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b022400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:13:02.450250
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87f4b400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87f4b400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87f4b400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:13:16.923240
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81fda400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81fda400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81fda400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:13:31.932251
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa2c8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa2c8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa2c8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:13:46.917327
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0dec470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0dec470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0dec470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:14:02.607147
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84a9b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84a9b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84a9b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:14:17.121030
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86ac0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86ac0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86ac0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:14:32.070947
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad082470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad082470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad082470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:14:47.063746
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82d5a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82d5a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82d5a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:15:02.682065
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb62f7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb62f7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb62f7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:15:17.242634
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78671470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78671470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78671470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:15:32.209789
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7aa15470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7aa15470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7aa15470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:15:47.210667
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c693400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c693400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c693400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:16:02.629668
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb082a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb082a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb082a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:16:17.359074
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8401e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8401e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8401e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:16:32.369851
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89866470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89866470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89866470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:16:47.351653
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7facedd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facedd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facedd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:17:02.985327
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f829dd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f829dd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f829dd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:17:17.561839
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79cfb400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79cfb400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79cfb400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:17:32.509490
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f847a4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f847a4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f847a4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:17:47.525143
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9a3c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9a3c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9a3c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:18:03.043950
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e9d5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e9d5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e9d5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:18:17.670764
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85acb470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85acb470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85acb470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:18:32.652718
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83eb6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83eb6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83eb6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:18:47.686030
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7facec7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facec7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facec7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:19:02.481096
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9f28400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9f28400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9f28400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:19:16.824717
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f782db470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f782db470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f782db470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:19:31.851943
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98a53470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98a53470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98a53470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:19:46.832630
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad75f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad75f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad75f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:20:02.320666
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92c99470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92c99470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92c99470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:20:16.988193
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf4b7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf4b7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf4b7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:20:31.999274
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a8ac470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a8ac470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a8ac470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:20:46.988695
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ba31470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ba31470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ba31470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:21:02.592289
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7de60470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7de60470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7de60470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:21:17.134594
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f832d3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f832d3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f832d3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:21:32.132909
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5613470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5613470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5613470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:21:47.113593
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4642470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4642470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4642470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:22:02.581876
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2b88400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2b88400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2b88400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:22:17.245307
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93223470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93223470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93223470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:22:32.288593
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab8aa470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab8aa470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab8aa470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:22:47.273726
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6112470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6112470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6112470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:23:02.877614
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82bb8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82bb8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82bb8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:23:17.423591
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95967470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95967470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95967470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:23:32.406753
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f874cd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f874cd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f874cd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:23:47.448003
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80004400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80004400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80004400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:24:03.098189
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa171470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa171470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa171470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:24:17.613269
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf252400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf252400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf252400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:24:32.598657
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83e69470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83e69470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83e69470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:24:47.585034
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faeefc400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faeefc400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faeefc400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:25:03.246937
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8466c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8466c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8466c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:25:17.748430
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e7c9400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e7c9400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e7c9400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:25:32.746519
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9aec1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9aec1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9aec1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:25:47.718199
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ff34470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ff34470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ff34470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:26:02.122521
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88f18400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88f18400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88f18400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:26:16.906092
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5f0a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5f0a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5f0a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:26:31.886997
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8dbd7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dbd7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dbd7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:26:46.884824
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fd26400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fd26400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fd26400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:27:02.495936
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2ad4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2ad4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2ad4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:27:17.043659
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d672470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d672470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d672470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:27:32.033903
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ce80470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ce80470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ce80470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:27:47.034709
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5a04470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5a04470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5a04470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:28:02.430183
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa55f5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa55f5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa55f5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:28:17.184163
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5efb470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5efb470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5efb470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:28:32.179660
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4afc470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4afc470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4afc470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:28:47.189577
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cecb400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cecb400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cecb400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:29:03.062041
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f934b3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f934b3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f934b3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:29:17.367268
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ba86470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ba86470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ba86470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:29:32.336744
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8de54470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8de54470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8de54470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:29:47.418038
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94ae8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94ae8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94ae8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:30:02.816179
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b1b44a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b1b44a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b1b44a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:30:17.550473
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97135470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97135470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97135470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:30:32.570362
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90e4e400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90e4e400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90e4e400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:30:47.584206
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7e7b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7e7b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7e7b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:31:03.315952
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9eed7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9eed7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9eed7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:31:17.744522
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f3da470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f3da470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f3da470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:31:32.714362
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7f7c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7f7c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7f7c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:31:47.726851
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1085470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1085470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1085470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:32:02.217126
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ce71470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ce71470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ce71470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:32:16.874551
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4467470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4467470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4467470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:32:31.859051
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97bbe470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97bbe470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97bbe470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:32:46.877553
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa91c0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa91c0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa91c0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:33:02.418982
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7facba8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facba8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facba8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:33:17.023015
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77dd9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77dd9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77dd9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:33:32.038823
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b905470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b905470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b905470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:33:47.020985
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb355a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb355a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb355a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:34:02.630156
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97dfb470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97dfb470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97dfb470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:34:17.182868
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa13bf400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa13bf400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa13bf400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:34:32.201210
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f836b5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f836b5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f836b5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:34:47.180273
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c0dd400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c0dd400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c0dd400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:35:02.714372
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83a01470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83a01470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83a01470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:35:17.336184
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae3a4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae3a4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae3a4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:35:32.317214
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97beb470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97beb470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97beb470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:35:47.332679
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d6af470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d6af470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d6af470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:36:02.868937
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f921da470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f921da470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f921da470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:36:17.491491
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80042470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80042470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80042470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:36:32.479162
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8546e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8546e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8546e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:36:47.471586
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8151400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8151400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8151400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:37:03.002802
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90c82470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90c82470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90c82470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:37:17.621850
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3251400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3251400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3251400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:37:32.626402
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82c12470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82c12470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82c12470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:37:47.615871
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f955e6400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f955e6400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f955e6400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:38:03.046609
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa31a5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa31a5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa31a5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:38:17.780032
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85015470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85015470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85015470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:38:32.781556
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0060470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0060470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0060470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:38:47.822199
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1a03470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1a03470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1a03470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:39:02.816321
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85d57470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85d57470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85d57470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:39:16.985708
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b315470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b315470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b315470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:39:31.993073
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b41c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b41c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b41c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:39:46.978283
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98aca470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98aca470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98aca470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:40:02.450176
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f19e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f19e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f19e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:40:17.172106
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2b8b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2b8b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2b8b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:40:32.122437
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9eb02470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9eb02470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9eb02470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:40:47.143516
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ef3f400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ef3f400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ef3f400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:41:02.644605
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9af24470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9af24470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9af24470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:41:17.314104
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7943d400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7943d400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7943d400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:41:32.305276
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa34f8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa34f8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa34f8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:41:47.302112
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89846470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89846470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89846470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:42:02.716891
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1056470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1056470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1056470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:42:17.437316
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89426470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89426470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89426470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:42:32.468858
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97f3c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97f3c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97f3c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:42:47.437588
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7dd01400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dd01400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dd01400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:43:02.994469
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0370470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0370470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0370470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:43:17.590176
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f766ac470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f766ac470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f766ac470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:43:32.588244
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81d4b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81d4b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81d4b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:43:47.586431
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c6af400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c6af400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c6af400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:44:03.379421
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3b6e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3b6e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3b6e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:44:17.739735
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97838470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97838470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97838470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:44:32.727896
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e8c8400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e8c8400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e8c8400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:44:47.729637
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ad59470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ad59470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ad59470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:45:02.314170
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8477a400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8477a400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8477a400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:45:16.879795
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb52ee470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb52ee470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb52ee470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:45:31.878721
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7899e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7899e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7899e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:45:46.879597
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab58c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab58c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab58c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:46:02.147480
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5918470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5918470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5918470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:46:17.043057
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ef22470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ef22470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ef22470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:46:32.018225
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa124e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa124e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa124e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:46:47.038542
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87db3438>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87db3438>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87db3438>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:47:02.633027
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f895ae470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f895ae470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f895ae470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:47:17.189820
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa219b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa219b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa219b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:47:32.254783
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f832a0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f832a0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f832a0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:47:47.167810
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d282470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d282470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d282470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:48:02.576573
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a08a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a08a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a08a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:48:17.336042
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5aed470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5aed470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5aed470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:48:32.335377
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9417400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9417400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9417400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:48:47.325500
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f999ce470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f999ce470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f999ce470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:49:03.125845
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c88a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c88a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c88a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:49:17.465959
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8208470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8208470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8208470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:49:32.484618
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f8b8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f8b8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f8b8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:49:47.482341
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c1e9400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c1e9400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c1e9400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:50:02.863203
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99007470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99007470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99007470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:50:17.622989
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f793a9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f793a9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f793a9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:50:32.626740
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8eb58400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8eb58400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8eb58400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:50:47.627715
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92744470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92744470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92744470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:51:03.375415
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84baf470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84baf470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84baf470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:51:17.782714
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2034470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2034470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2034470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:51:32.759103
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96d29470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96d29470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96d29470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:51:47.773402
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0cff470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0cff470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0cff470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:52:02.210486
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e248470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e248470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e248470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:52:16.905716
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f952fc470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f952fc470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f952fc470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:52:31.915544
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88c60400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88c60400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88c60400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:52:46.909668
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8488f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8488f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8488f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:53:02.586982
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fee6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fee6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fee6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:53:17.059989
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88aea470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88aea470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88aea470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:53:32.063149
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f814ca470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f814ca470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f814ca470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:53:47.046613
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8efc54a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8efc54a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8efc54a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:54:02.748801
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95e854a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95e854a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95e854a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:54:17.203788
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5bfc400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5bfc400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5bfc400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:54:32.225519
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e6db470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e6db470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e6db470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:54:47.194523
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fb12400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fb12400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fb12400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:55:02.826954
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9707e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9707e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9707e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:55:17.355341
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f971f1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f971f1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f971f1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:55:32.394952
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa071e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa071e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa071e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:55:47.327440
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97bae470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97bae470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97bae470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:56:02.676237
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1580470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1580470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1580470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:56:17.465811
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa3ab470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa3ab470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa3ab470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:56:32.483724
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99066470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99066470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99066470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:56:47.471225
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92081470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92081470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92081470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:57:03.128653
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1789470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1789470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1789470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:57:17.653002
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa81a5400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa81a5400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa81a5400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:57:32.636871
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c6fe470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c6fe470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c6fe470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:57:47.601422
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a3ed400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a3ed400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a3ed400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:58:03.150161
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8899a400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8899a400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8899a400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:58:17.748321
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f776b5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f776b5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f776b5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:58:32.777713
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e8d74a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e8d74a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e8d74a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:58:47.796460
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae458470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae458470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae458470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:59:02.656799
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1872470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1872470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1872470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:59:16.985797
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79973470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79973470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79973470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:59:31.942361
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ddd9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ddd9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ddd9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 05:59:46.958233
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ed04470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ed04470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ed04470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:00:02.423253
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3f5f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3f5f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3f5f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:00:17.119573
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94ad9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94ad9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94ad9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:00:32.094656
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c190400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c190400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c190400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:00:47.099621
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90ef4400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90ef4400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90ef4400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:01:02.631227
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fadcba400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadcba400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadcba400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:01:17.249700
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e650470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e650470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e650470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:01:32.241141
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa19a6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa19a6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa19a6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:01:47.292516
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb10ac470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb10ac470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb10ac470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:02:02.654634
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2353470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2353470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2353470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:02:17.439838
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fb47400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fb47400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fb47400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:02:32.444527
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e14c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e14c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e14c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:02:47.456076
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f932914a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f932914a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f932914a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:03:02.971561
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8cd8f400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cd8f400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cd8f400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:03:17.583593
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa747b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa747b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa747b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:03:32.577594
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb12b3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb12b3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb12b3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:03:47.588831
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab92a400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab92a400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab92a400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:04:03.380609
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96eb8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96eb8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96eb8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:04:17.729086
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ab60400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ab60400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ab60400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:04:32.722108
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb602c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb602c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb602c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:04:47.727698
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8602d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8602d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8602d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:05:02.157060
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0a4f400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0a4f400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0a4f400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:05:16.886723
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7aac5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7aac5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7aac5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:05:31.880304
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb35f8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb35f8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb35f8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:05:46.873522
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e51d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e51d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e51d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:06:02.279469
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d574470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d574470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d574470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:06:17.011156
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a1ce470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a1ce470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a1ce470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:06:32.037654
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f925c7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f925c7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f925c7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:06:46.996239
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0e1f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0e1f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0e1f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:07:02.617800
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c6d8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c6d8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c6d8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:07:17.131414
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f843a3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f843a3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f843a3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:07:32.133533
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb178c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb178c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb178c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:07:47.135709
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f828d8438>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f828d8438>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f828d8438>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:08:02.398486
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f0d1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f0d1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f0d1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:08:17.286282
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98a1d4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98a1d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98a1d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:08:32.291428
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90745470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90745470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90745470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:08:47.292125
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78734470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78734470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78734470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:09:03.144214
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f930bf470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f930bf470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f930bf470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:09:17.457830
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f8c2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f8c2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f8c2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:09:32.452556
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faaa8f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaa8f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaa8f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:09:47.437133
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98cb1400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98cb1400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98cb1400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:10:02.898558
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ac30470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ac30470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ac30470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:10:17.582386
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa884d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa884d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa884d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:10:32.588682
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ffdd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ffdd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ffdd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:10:47.585145
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87ccc470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87ccc470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87ccc470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:11:03.196932
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3f62470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3f62470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3f62470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:11:17.729092
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faba3f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faba3f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faba3f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:11:32.740960
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a1c7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a1c7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a1c7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:11:47.832167
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2d87470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2d87470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2d87470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:12:02.229238
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7842f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7842f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7842f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:12:16.902154
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98c1a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98c1a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98c1a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:12:31.916317
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93768470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93768470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93768470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:12:46.903806
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f69f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f69f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f69f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:13:02.572194
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b9df470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b9df470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b9df470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:13:17.107160
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a9cd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a9cd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a9cd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:13:32.033930
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9be40470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9be40470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9be40470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:13:47.060925
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79ea3400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79ea3400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79ea3400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:14:02.706967
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf088470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf088470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf088470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:14:17.218377
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93be2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93be2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93be2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:14:32.207671
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77660470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77660470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77660470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:14:47.218640
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83276470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83276470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83276470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:15:02.800914
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb036d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb036d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb036d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:15:17.362727
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8542c400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8542c400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8542c400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:15:32.407048
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9feb1400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9feb1400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9feb1400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:15:47.417476
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bfaf470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bfaf470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bfaf470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:16:02.836004
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb37c8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb37c8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb37c8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:16:17.566566
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99ed1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99ed1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99ed1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:16:32.563495
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99bbe400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99bbe400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99bbe400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:16:47.604741
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ab4e400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ab4e400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ab4e400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:17:03.225962
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6ea2400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6ea2400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6ea2400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:17:17.770460
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99b50400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99b50400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99b50400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:17:32.798459
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa438e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa438e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa438e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:17:47.746408
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faef9d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faef9d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faef9d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:18:02.123931
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ddf1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ddf1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ddf1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:18:16.875666
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faadc5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faadc5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faadc5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:18:31.963986
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae090470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae090470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae090470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:18:46.893913
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1117400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1117400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1117400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:19:02.568778
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a7c7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a7c7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a7c7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:19:17.041874
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f994d6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f994d6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f994d6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:19:32.069984
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f852d2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f852d2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f852d2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:19:47.038796
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a099470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a099470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a099470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:20:02.516373
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad723470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad723470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad723470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:20:17.197635
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84a88470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84a88470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84a88470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:20:32.187218
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89399470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89399470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89399470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:20:47.193813
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b6f6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b6f6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b6f6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:21:02.751273
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77a34470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77a34470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77a34470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:21:17.350459
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2b80470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2b80470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2b80470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:21:32.325547
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77c23470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77c23470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77c23470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:21:47.337699
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5db9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5db9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5db9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:22:02.863346
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8287e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8287e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8287e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:22:17.496793
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90cf7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90cf7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90cf7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:22:32.517512
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c61f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c61f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c61f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:22:47.497329
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99c19470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99c19470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99c19470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:23:03.058539
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f789764a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f789764a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f789764a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:23:17.677437
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fff1400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fff1400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fff1400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:23:32.655002
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1ab6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1ab6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1ab6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:23:47.645521
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad1f04a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad1f04a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad1f04a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:24:02.293784
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80d3c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80d3c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80d3c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:24:16.836056
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85d3a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85d3a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85d3a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:24:31.825081
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac05f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac05f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac05f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:24:46.796620
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c68f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c68f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c68f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:25:02.377363
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83f69470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83f69470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83f69470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:25:16.965721
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86fdd400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86fdd400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86fdd400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:25:31.952315
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae328470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae328470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae328470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:25:46.933688
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f792eb470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f792eb470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f792eb470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:26:02.395199
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4855470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4855470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4855470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:26:17.125265
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d4fb470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d4fb470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d4fb470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:26:32.091061
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa88e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa88e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa88e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:26:47.069447
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4c36470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4c36470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4c36470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:27:02.642165
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f923d9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f923d9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f923d9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:27:17.202427
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94dde470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94dde470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94dde470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:27:32.222857
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2c1b400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2c1b400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2c1b400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:27:47.193895
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98a4f4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98a4f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98a4f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:28:02.652241
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9195a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9195a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9195a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:28:17.383649
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6658400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6658400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6658400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:28:32.334277
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91291470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91291470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91291470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:28:47.345856
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e317470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e317470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e317470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:29:03.179501
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7630470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7630470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7630470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:29:17.475167
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0637470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0637470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0637470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:29:32.463491
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77202470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77202470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77202470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:29:47.465797
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa95cf470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa95cf470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa95cf470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:30:03.179831
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_28_44_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9afd7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9afd7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9afd7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:30:17.586891
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85227470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85227470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85227470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:30:32.670014
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d0ed470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d0ed470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d0ed470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:30:47.653339
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78eb2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78eb2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78eb2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:31:03.407668
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_13_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/04/28/image_16062025_04_29_04_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c776400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c776400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c776400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:31:17.759623
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b7a44a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b7a44a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b7a44a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:31:32.757144
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa932e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa932e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa932e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:31:47.772932
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83ba7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83ba7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83ba7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:32:02.340036
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa290c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa290c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa290c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:32:16.857916
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f974a8400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f974a8400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f974a8400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:32:31.890537
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa92e9400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa92e9400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa92e9400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:32:46.855088
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa78a9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa78a9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa78a9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:33:02.716535
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab00c400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab00c400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab00c400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:33:17.087750
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91853470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91853470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91853470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:33:31.946395
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa08c2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa08c2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa08c2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:33:46.935860
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa0a6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa0a6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa0a6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:34:02.942265
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f786e1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f786e1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f786e1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:34:17.046492
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98b48470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98b48470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98b48470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:34:32.023560
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fadee3400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadee3400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadee3400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:34:47.034011
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f28b400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f28b400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f28b400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:35:02.886942
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2f45470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2f45470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2f45470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:35:17.143854
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fd7a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fd7a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fd7a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:35:32.127064
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85b4c400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85b4c400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85b4c400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:35:47.154945
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ebc8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ebc8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ebc8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:36:02.812517
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1518400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1518400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1518400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:36:17.256050
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98392400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98392400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98392400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:36:32.278051
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8dd72470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dd72470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dd72470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:36:47.250292
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb313b400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb313b400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb313b400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:37:02.894948
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_34_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bca1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bca1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bca1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:37:17.408371
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_25_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0dc3400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0dc3400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0dc3400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:37:32.363800
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_25_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5762470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5762470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5762470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:37:47.393933
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_25_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f821a2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f821a2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f821a2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:38:03.010695
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_25_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_15_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/30/image_16062025_06_30_14_10048.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_30_04_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_54_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/04/29/image_16062025_04_29_43_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c2aa400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c2aa400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c2aa400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:38:17.477980
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/38/image_16062025_06_38_45_10602.jpg', 2), ('/home/nano/Desktop/images/16062025/06/38/image_16062025_06_38_35_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/06/38/image_16062025_06_38_25_10601.jpg', 2), ('/home/nano/Desktop/images/16062025/06/37/image_16062025_06_38_05_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/06/37/image_16062025_06_37_55_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_25_9604.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a26a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a26a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a26a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:38:32.496751
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/38/image_16062025_06_38_45_10602.jpg', 2), ('/home/nano/Desktop/images/16062025/06/38/image_16062025_06_38_35_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/06/38/image_16062025_06_38_25_10601.jpg', 2), ('/home/nano/Desktop/images/16062025/06/37/image_16062025_06_38_05_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/06/37/image_16062025_06_37_55_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_25_9604.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa89c8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa89c8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa89c8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:38:47.502418
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/38/image_16062025_06_38_45_10602.jpg', 2), ('/home/nano/Desktop/images/16062025/06/38/image_16062025_06_38_35_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/06/38/image_16062025_06_38_25_10601.jpg', 2), ('/home/nano/Desktop/images/16062025/06/37/image_16062025_06_38_05_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/06/37/image_16062025_06_37_55_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_25_9604.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb209f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb209f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb209f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:39:03.709885
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/38/image_16062025_06_38_45_10602.jpg', 2), ('/home/nano/Desktop/images/16062025/06/38/image_16062025_06_38_35_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/06/38/image_16062025_06_38_25_10601.jpg', 2), ('/home/nano/Desktop/images/16062025/06/37/image_16062025_06_38_05_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/06/37/image_16062025_06_37_55_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/06/31/image_16062025_06_31_25_9604.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99cee400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99cee400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99cee400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:39:17.588795
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_45_9595.jpg', 2), ('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_35_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_25_9598.jpg', 2), ('/home/nano/Desktop/images/16062025/06/38/image_16062025_06_38_55_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/06/38/image_16062025_06_38_45_10602.jpg', 2), ('/home/nano/Desktop/images/16062025/06/38/image_16062025_06_38_35_9597.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cd72470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cd72470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cd72470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:39:32.612066
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_45_9595.jpg', 2), ('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_35_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_25_9598.jpg', 2), ('/home/nano/Desktop/images/16062025/06/38/image_16062025_06_38_55_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/06/38/image_16062025_06_38_45_10602.jpg', 2), ('/home/nano/Desktop/images/16062025/06/38/image_16062025_06_38_35_9597.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad832470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad832470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad832470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:39:47.594022
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_45_9595.jpg', 2), ('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_35_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_25_9598.jpg', 2), ('/home/nano/Desktop/images/16062025/06/38/image_16062025_06_38_55_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/06/38/image_16062025_06_38_45_10602.jpg', 2), ('/home/nano/Desktop/images/16062025/06/38/image_16062025_06_38_35_9597.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5f33400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5f33400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5f33400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:40:03.170248
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_45_9595.jpg', 2), ('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_35_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_25_9598.jpg', 2), ('/home/nano/Desktop/images/16062025/06/38/image_16062025_06_38_55_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/06/38/image_16062025_06_38_45_10602.jpg', 2), ('/home/nano/Desktop/images/16062025/06/38/image_16062025_06_38_35_9597.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0b94470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0b94470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0b94470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:40:17.691324
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/40/image_16062025_06_40_25_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/06/40/image_16062025_06_40_15_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_55_9596.jpg', 2), ('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_45_9595.jpg', 2), ('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_35_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_25_9598.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8386d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8386d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8386d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:40:32.702306
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/40/image_16062025_06_40_25_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/06/40/image_16062025_06_40_15_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_55_9596.jpg', 2), ('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_45_9595.jpg', 2), ('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_35_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_25_9598.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8bb024a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bb024a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bb024a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:40:47.684449
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/40/image_16062025_06_40_25_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/06/40/image_16062025_06_40_15_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_55_9596.jpg', 2), ('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_45_9595.jpg', 2), ('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_35_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_25_9598.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79a61470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79a61470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79a61470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:41:02.458987
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/40/image_16062025_06_40_25_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/06/40/image_16062025_06_40_15_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_55_9596.jpg', 2), ('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_45_9595.jpg', 2), ('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_35_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/06/39/image_16062025_06_39_25_9598.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad311400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad311400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad311400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:41:16.773619
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/41/image_16062025_06_41_45_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/06/41/image_16062025_06_41_25_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/41/image_16062025_06_41_14_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/06/40/image_16062025_06_40_55_10614.jpg', 2), ('/home/nano/Desktop/images/16062025/06/40/image_16062025_06_40_25_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/06/40/image_16062025_06_40_15_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a8ad470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a8ad470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a8ad470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:41:31.763123
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/41/image_16062025_06_41_45_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/06/41/image_16062025_06_41_25_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/41/image_16062025_06_41_14_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/06/40/image_16062025_06_40_55_10614.jpg', 2), ('/home/nano/Desktop/images/16062025/06/40/image_16062025_06_40_25_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/06/40/image_16062025_06_40_15_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1e2b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1e2b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1e2b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:41:46.755847
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/41/image_16062025_06_41_45_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/06/41/image_16062025_06_41_25_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/41/image_16062025_06_41_14_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/06/40/image_16062025_06_40_55_10614.jpg', 2), ('/home/nano/Desktop/images/16062025/06/40/image_16062025_06_40_25_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/06/40/image_16062025_06_40_15_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3076400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3076400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3076400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:42:02.458144
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/41/image_16062025_06_41_45_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/06/41/image_16062025_06_41_25_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/41/image_16062025_06_41_14_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/06/40/image_16062025_06_40_55_10614.jpg', 2), ('/home/nano/Desktop/images/16062025/06/40/image_16062025_06_40_25_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/06/40/image_16062025_06_40_15_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d0ac470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d0ac470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d0ac470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:42:16.850794
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_45_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_35_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_25_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_15_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/06/41/image_16062025_06_42_04_9606.jpg', 2), ('/home/nano/Desktop/images/16062025/06/41/image_16062025_06_41_55_9605.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77f05470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77f05470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77f05470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:42:31.853975
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_45_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_35_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_25_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_15_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/06/41/image_16062025_06_42_04_9606.jpg', 2), ('/home/nano/Desktop/images/16062025/06/41/image_16062025_06_41_55_9605.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cdf4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cdf4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cdf4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:42:46.948771
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_45_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_35_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_25_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_15_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/06/41/image_16062025_06_42_04_9606.jpg', 2), ('/home/nano/Desktop/images/16062025/06/41/image_16062025_06_41_55_9605.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ce0d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ce0d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ce0d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:43:02.717652
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_45_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_35_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_25_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_15_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/06/41/image_16062025_06_42_04_9606.jpg', 2), ('/home/nano/Desktop/images/16062025/06/41/image_16062025_06_41_55_9605.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa597d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa597d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa597d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:43:17.057310
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/43/image_16062025_06_43_35_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_43_05_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_55_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_45_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_35_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_25_9602.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80805470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80805470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80805470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:43:32.034206
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/43/image_16062025_06_43_35_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_43_05_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_55_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_45_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_35_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_25_9602.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0441470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0441470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0441470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:43:47.023692
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/43/image_16062025_06_43_35_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_43_05_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_55_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_45_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_35_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_25_9602.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f968d3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f968d3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f968d3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:44:02.966275
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/43/image_16062025_06_43_35_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_43_05_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_55_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_45_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_35_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/06/42/image_16062025_06_42_25_9602.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86fff470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86fff470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86fff470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:44:17.133675
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_35_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_25_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_14_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/06/43/image_16062025_06_44_05_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/06/43/image_16062025_06_43_45_9598.jpg', 2), ('/home/nano/Desktop/images/16062025/06/43/image_16062025_06_43_35_9597.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82ed3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82ed3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82ed3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:44:32.151782
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_35_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_25_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_14_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/06/43/image_16062025_06_44_05_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/06/43/image_16062025_06_43_45_9598.jpg', 2), ('/home/nano/Desktop/images/16062025/06/43/image_16062025_06_43_35_9597.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8af29470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8af29470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8af29470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:44:47.150656
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_35_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_25_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_14_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/06/43/image_16062025_06_44_05_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/06/43/image_16062025_06_43_45_9598.jpg', 2), ('/home/nano/Desktop/images/16062025/06/43/image_16062025_06_43_35_9597.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9af6b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9af6b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9af6b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:45:02.880605
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_35_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_25_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_14_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/06/43/image_16062025_06_44_05_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/06/43/image_16062025_06_43_45_9598.jpg', 2), ('/home/nano/Desktop/images/16062025/06/43/image_16062025_06_43_35_9597.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafb00470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafb00470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafb00470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:45:17.258120
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/45/image_16062025_06_45_15_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_45_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_35_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_25_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_14_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/06/43/image_16062025_06_44_05_9612.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c510470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c510470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c510470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:45:32.237538
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/45/image_16062025_06_45_15_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_45_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_35_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_25_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_14_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/06/43/image_16062025_06_44_05_9612.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78257400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78257400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78257400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:45:47.254685
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/45/image_16062025_06_45_15_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_45_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_35_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_25_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_14_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/06/43/image_16062025_06_44_05_9612.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91dd6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91dd6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91dd6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:46:02.908747
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/45/image_16062025_06_45_15_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_45_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_35_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_25_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/06/44/image_16062025_06_44_14_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/06/43/image_16062025_06_44_05_9612.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e218470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e218470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e218470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:46:17.364193
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_45_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_35_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_15_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/06/45/image_16062025_06_46_05_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/06/45/image_16062025_06_45_35_10607.jpg', 2), ('/home/nano/Desktop/images/16062025/06/45/image_16062025_06_45_15_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa12ef470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa12ef470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa12ef470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:46:32.338689
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_45_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_35_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_15_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/06/45/image_16062025_06_46_05_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/06/45/image_16062025_06_45_35_10607.jpg', 2), ('/home/nano/Desktop/images/16062025/06/45/image_16062025_06_45_15_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87da9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87da9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87da9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:46:47.323479
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_45_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_35_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_15_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/06/45/image_16062025_06_46_05_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/06/45/image_16062025_06_45_35_10607.jpg', 2), ('/home/nano/Desktop/images/16062025/06/45/image_16062025_06_45_15_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e75d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e75d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e75d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:47:02.982864
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_45_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_35_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_15_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/06/45/image_16062025_06_46_05_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/06/45/image_16062025_06_45_35_10607.jpg', 2), ('/home/nano/Desktop/images/16062025/06/45/image_16062025_06_45_15_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb14ae470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb14ae470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb14ae470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:47:17.442289
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/47/image_16062025_06_47_35_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_55_10612.jpg', 2), ('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_45_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_35_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_15_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/06/45/image_16062025_06_46_05_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fabe52400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabe52400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabe52400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:47:32.431333
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/47/image_16062025_06_47_35_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_55_10612.jpg', 2), ('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_45_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_35_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_15_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/06/45/image_16062025_06_46_05_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a2a3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a2a3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a2a3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:47:47.427630
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/47/image_16062025_06_47_35_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_55_10612.jpg', 2), ('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_45_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_35_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_15_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/06/45/image_16062025_06_46_05_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa080c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa080c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa080c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:48:02.952777
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/47/image_16062025_06_47_35_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_55_10612.jpg', 2), ('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_45_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_35_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/46/image_16062025_06_46_15_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/06/45/image_16062025_06_46_05_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8dc83470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dc83470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dc83470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:48:17.523699
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_48_45_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_48_34_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_48_25_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_48_15_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/06/47/image_16062025_06_47_45_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/06/47/image_16062025_06_47_35_9609.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3444470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3444470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3444470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:48:32.514632
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_48_45_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_48_34_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_48_25_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_48_15_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/06/47/image_16062025_06_47_45_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/06/47/image_16062025_06_47_35_9609.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f798fc400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f798fc400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f798fc400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:48:47.525359
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_48_45_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_48_34_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_48_25_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_48_15_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/06/47/image_16062025_06_47_45_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/06/47/image_16062025_06_47_35_9609.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d0d6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d0d6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d0d6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:49:03.601687
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_48_45_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_48_34_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_48_25_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_48_15_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/06/47/image_16062025_06_47_45_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/06/47/image_16062025_06_47_35_9609.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f887d4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f887d4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f887d4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:49:17.669545
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/49/image_16062025_06_49_35_10611.jpg', 2), ('/home/nano/Desktop/images/16062025/06/49/image_16062025_06_49_24_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/06/49/image_16062025_06_49_15_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_49_05_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_48_55_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_48_45_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f772c9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f772c9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f772c9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:49:32.619117
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/49/image_16062025_06_49_35_10611.jpg', 2), ('/home/nano/Desktop/images/16062025/06/49/image_16062025_06_49_24_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/06/49/image_16062025_06_49_15_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_49_05_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_48_55_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_48_45_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82335470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82335470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82335470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:49:47.648265
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/49/image_16062025_06_49_35_10611.jpg', 2), ('/home/nano/Desktop/images/16062025/06/49/image_16062025_06_49_24_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/06/49/image_16062025_06_49_15_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_49_05_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_48_55_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_48_45_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4bce470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4bce470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4bce470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:50:03.229599
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/49/image_16062025_06_49_35_10611.jpg', 2), ('/home/nano/Desktop/images/16062025/06/49/image_16062025_06_49_24_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/06/49/image_16062025_06_49_15_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_49_05_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_48_55_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/06/48/image_16062025_06_48_45_10629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2a12470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2a12470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2a12470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:50:17.766532
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/50/image_16062025_06_50_44_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/06/50/image_16062025_06_50_35_9599.jpg', 2), ('/home/nano/Desktop/images/16062025/06/50/image_16062025_06_50_25_10611.jpg', 2), ('/home/nano/Desktop/images/16062025/06/49/image_16062025_06_50_05_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/06/49/image_16062025_06_49_45_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/06/49/image_16062025_06_49_35_10611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90c82470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90c82470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90c82470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:50:32.799746
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/50/image_16062025_06_50_44_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/06/50/image_16062025_06_50_35_9599.jpg', 2), ('/home/nano/Desktop/images/16062025/06/50/image_16062025_06_50_25_10611.jpg', 2), ('/home/nano/Desktop/images/16062025/06/49/image_16062025_06_50_05_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/06/49/image_16062025_06_49_45_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/06/49/image_16062025_06_49_35_10611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84aea400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84aea400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84aea400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:50:47.762812
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/50/image_16062025_06_50_44_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/06/50/image_16062025_06_50_35_9599.jpg', 2), ('/home/nano/Desktop/images/16062025/06/50/image_16062025_06_50_25_10611.jpg', 2), ('/home/nano/Desktop/images/16062025/06/49/image_16062025_06_50_05_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/06/49/image_16062025_06_49_45_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/06/49/image_16062025_06_49_35_10611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c0e1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c0e1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c0e1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:51:02.570132
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/50/image_16062025_06_50_44_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/06/50/image_16062025_06_50_35_9599.jpg', 2), ('/home/nano/Desktop/images/16062025/06/50/image_16062025_06_50_25_10611.jpg', 2), ('/home/nano/Desktop/images/16062025/06/49/image_16062025_06_50_05_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/06/49/image_16062025_06_49_45_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/06/49/image_16062025_06_49_35_10611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2a45470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2a45470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2a45470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:51:16.864410
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/51/image_16062025_06_51_45_10607.jpg', 2), ('/home/nano/Desktop/images/16062025/06/51/image_16062025_06_51_34_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/06/51/image_16062025_06_51_25_9590.jpg', 2), ('/home/nano/Desktop/images/16062025/06/51/image_16062025_06_51_15_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/06/50/image_16062025_06_51_05_9599.jpg', 2), ('/home/nano/Desktop/images/16062025/06/50/image_16062025_06_50_55_10588.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85670400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85670400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85670400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:51:31.879239
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/51/image_16062025_06_51_45_10607.jpg', 2), ('/home/nano/Desktop/images/16062025/06/51/image_16062025_06_51_34_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/06/51/image_16062025_06_51_25_9590.jpg', 2), ('/home/nano/Desktop/images/16062025/06/51/image_16062025_06_51_15_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/06/50/image_16062025_06_51_05_9599.jpg', 2), ('/home/nano/Desktop/images/16062025/06/50/image_16062025_06_50_55_10588.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87671470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87671470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87671470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:51:46.922995
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/51/image_16062025_06_51_45_10607.jpg', 2), ('/home/nano/Desktop/images/16062025/06/51/image_16062025_06_51_34_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/06/51/image_16062025_06_51_25_9590.jpg', 2), ('/home/nano/Desktop/images/16062025/06/51/image_16062025_06_51_15_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/06/50/image_16062025_06_51_05_9599.jpg', 2), ('/home/nano/Desktop/images/16062025/06/50/image_16062025_06_50_55_10588.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb55ef470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb55ef470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb55ef470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:52:02.600742
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/51/image_16062025_06_51_45_10607.jpg', 2), ('/home/nano/Desktop/images/16062025/06/51/image_16062025_06_51_34_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/06/51/image_16062025_06_51_25_9590.jpg', 2), ('/home/nano/Desktop/images/16062025/06/51/image_16062025_06_51_15_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/06/50/image_16062025_06_51_05_9599.jpg', 2), ('/home/nano/Desktop/images/16062025/06/50/image_16062025_06_50_55_10588.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5d74470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5d74470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5d74470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:52:16.972076
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/52/image_16062025_06_52_45_9592.jpg', 2), ('/home/nano/Desktop/images/16062025/06/52/image_16062025_06_52_35_10606.jpg', 2), ('/home/nano/Desktop/images/16062025/06/52/image_16062025_06_52_24_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/06/52/image_16062025_06_52_15_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/06/51/image_16062025_06_52_05_10606.jpg', 2), ('/home/nano/Desktop/images/16062025/06/51/image_16062025_06_51_55_9595.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3580400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3580400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3580400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:52:31.973612
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/52/image_16062025_06_52_45_9592.jpg', 2), ('/home/nano/Desktop/images/16062025/06/52/image_16062025_06_52_35_10606.jpg', 2), ('/home/nano/Desktop/images/16062025/06/52/image_16062025_06_52_24_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/06/52/image_16062025_06_52_15_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/06/51/image_16062025_06_52_05_10606.jpg', 2), ('/home/nano/Desktop/images/16062025/06/51/image_16062025_06_51_55_9595.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80073470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80073470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80073470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:52:46.974854
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/52/image_16062025_06_52_45_9592.jpg', 2), ('/home/nano/Desktop/images/16062025/06/52/image_16062025_06_52_35_10606.jpg', 2), ('/home/nano/Desktop/images/16062025/06/52/image_16062025_06_52_24_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/06/52/image_16062025_06_52_15_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/06/51/image_16062025_06_52_05_10606.jpg', 2), ('/home/nano/Desktop/images/16062025/06/51/image_16062025_06_51_55_9595.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5eb6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5eb6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5eb6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:53:02.774191
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/52/image_16062025_06_52_45_9592.jpg', 2), ('/home/nano/Desktop/images/16062025/06/52/image_16062025_06_52_35_10606.jpg', 2), ('/home/nano/Desktop/images/16062025/06/52/image_16062025_06_52_24_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/06/52/image_16062025_06_52_15_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/06/51/image_16062025_06_52_05_10606.jpg', 2), ('/home/nano/Desktop/images/16062025/06/51/image_16062025_06_51_55_9595.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83cb0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83cb0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83cb0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:53:17.099707
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_53_45_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_53_35_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_53_25_10599.jpg', 2), ('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_53_14_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/06/52/image_16062025_06_53_05_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/06/52/image_16062025_06_52_55_10603.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa714e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa714e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa714e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:53:32.078869
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_53_45_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_53_35_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_53_25_10599.jpg', 2), ('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_53_14_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/06/52/image_16062025_06_53_05_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/06/52/image_16062025_06_52_55_10603.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac757470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac757470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac757470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:53:47.067680
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_53_45_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_53_35_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_53_25_10599.jpg', 2), ('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_53_14_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/06/52/image_16062025_06_53_05_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/06/52/image_16062025_06_52_55_10603.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a082470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a082470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a082470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:54:02.801897
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_53_45_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_53_35_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_53_25_10599.jpg', 2), ('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_53_14_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/06/52/image_16062025_06_53_05_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/06/52/image_16062025_06_52_55_10603.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2d0c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2d0c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2d0c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:54:17.215935
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/54/image_16062025_06_54_34_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/06/54/image_16062025_06_54_25_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/06/54/image_16062025_06_54_15_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_54_05_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_53_55_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_53_45_10643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e310470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e310470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e310470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:54:32.181195
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/54/image_16062025_06_54_34_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/06/54/image_16062025_06_54_25_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/06/54/image_16062025_06_54_15_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_54_05_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_53_55_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_53_45_10643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2c26470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2c26470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2c26470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:54:47.185261
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/54/image_16062025_06_54_34_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/06/54/image_16062025_06_54_25_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/06/54/image_16062025_06_54_15_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_54_05_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_53_55_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_53_45_10643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0f9a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0f9a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0f9a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:55:02.971755
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/54/image_16062025_06_54_34_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/06/54/image_16062025_06_54_25_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/06/54/image_16062025_06_54_15_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_54_05_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_53_55_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/06/53/image_16062025_06_53_45_10643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f915e1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f915e1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f915e1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:55:17.364562
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/55/image_16062025_06_55_45_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/06/55/image_16062025_06_55_35_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/06/55/image_16062025_06_55_25_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/06/55/image_16062025_06_55_15_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/06/54/image_16062025_06_55_05_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/06/54/image_16062025_06_54_45_10621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7669e400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7669e400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7669e400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:55:32.332034
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/55/image_16062025_06_55_45_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/06/55/image_16062025_06_55_35_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/06/55/image_16062025_06_55_25_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/06/55/image_16062025_06_55_15_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/06/54/image_16062025_06_55_05_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/06/54/image_16062025_06_54_45_10621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b437438>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b437438>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b437438>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:55:47.342252
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/55/image_16062025_06_55_45_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/06/55/image_16062025_06_55_35_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/06/55/image_16062025_06_55_25_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/06/55/image_16062025_06_55_15_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/06/54/image_16062025_06_55_05_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/06/54/image_16062025_06_54_45_10621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c328470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c328470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c328470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:56:02.967090
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/55/image_16062025_06_55_45_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/06/55/image_16062025_06_55_35_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/06/55/image_16062025_06_55_25_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/06/55/image_16062025_06_55_15_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/06/54/image_16062025_06_55_05_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/06/54/image_16062025_06_54_45_10621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4267470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4267470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4267470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:56:17.515518
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_56_45_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_56_35_9596.jpg', 2), ('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_56_25_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_56_15_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/06/55/image_16062025_06_56_05_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/06/55/image_16062025_06_55_54_9612.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b9b7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b9b7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b9b7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:56:32.477221
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_56_45_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_56_35_9596.jpg', 2), ('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_56_25_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_56_15_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/06/55/image_16062025_06_56_05_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/06/55/image_16062025_06_55_54_9612.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0b1c400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0b1c400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0b1c400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:56:47.444322
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_56_45_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_56_35_9596.jpg', 2), ('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_56_25_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_56_15_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/06/55/image_16062025_06_56_05_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/06/55/image_16062025_06_55_54_9612.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f963470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f963470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f963470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:57:03.360330
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_56_45_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_56_35_9596.jpg', 2), ('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_56_25_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_56_15_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/06/55/image_16062025_06_56_05_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/06/55/image_16062025_06_55_54_9612.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa02b2400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa02b2400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa02b2400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:57:17.572099
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/57/image_16062025_06_57_45_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/06/57/image_16062025_06_57_14_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_57_05_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_56_55_10614.jpg', 2), ('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_56_45_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_56_35_9596.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4502470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4502470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4502470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:57:32.633811
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/57/image_16062025_06_57_45_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/06/57/image_16062025_06_57_14_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_57_05_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_56_55_10614.jpg', 2), ('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_56_45_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_56_35_9596.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faee0c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faee0c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faee0c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:57:47.565112
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/57/image_16062025_06_57_45_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/06/57/image_16062025_06_57_14_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_57_05_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_56_55_10614.jpg', 2), ('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_56_45_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/06/56/image_16062025_06_56_35_9596.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b093470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b093470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b093470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:59:02.823150
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/59/image_16062025_06_59_15_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/06/58/image_16062025_06_58_45_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/06/58/image_16062025_06_58_35_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/06/58/image_16062025_06_58_25_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/06/58/image_16062025_06_58_15_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/06/57/image_16062025_06_58_04_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f41c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f41c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f41c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:59:16.887861
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/59/image_16062025_06_59_45_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/06/59/image_16062025_06_59_35_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/06/59/image_16062025_06_59_25_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/06/59/image_16062025_06_59_15_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/06/58/image_16062025_06_59_05_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/06/58/image_16062025_06_58_55_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f796bc400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f796bc400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f796bc400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:59:31.843347
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/59/image_16062025_06_59_45_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/06/59/image_16062025_06_59_35_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/06/59/image_16062025_06_59_25_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/06/59/image_16062025_06_59_15_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/06/58/image_16062025_06_59_05_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/06/58/image_16062025_06_58_55_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a32d400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a32d400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a32d400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 06:59:46.894307
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/59/image_16062025_06_59_45_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/06/59/image_16062025_06_59_35_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/06/59/image_16062025_06_59_25_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/06/59/image_16062025_06_59_15_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/06/58/image_16062025_06_59_05_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/06/58/image_16062025_06_58_55_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f987be470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f987be470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f987be470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:00:02.464533
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/06/59/image_16062025_06_59_45_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/06/59/image_16062025_06_59_35_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/06/59/image_16062025_06_59_25_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/06/59/image_16062025_06_59_15_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/06/58/image_16062025_06_59_05_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/06/58/image_16062025_06_58_55_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9aafd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9aafd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9aafd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:00:16.961739
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/00/image_16062025_07_00_44_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/07/00/image_16062025_07_00_35_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/00/image_16062025_07_00_25_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/07/00/image_16062025_07_00_15_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/06/59/image_16062025_07_00_05_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/06/59/image_16062025_06_59_55_10624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2810470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2810470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2810470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:00:31.966820
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/00/image_16062025_07_00_44_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/07/00/image_16062025_07_00_35_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/00/image_16062025_07_00_25_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/07/00/image_16062025_07_00_15_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/06/59/image_16062025_07_00_05_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/06/59/image_16062025_06_59_55_10624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f938fa400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f938fa400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f938fa400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:00:46.993866
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/00/image_16062025_07_00_44_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/07/00/image_16062025_07_00_35_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/00/image_16062025_07_00_25_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/07/00/image_16062025_07_00_15_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/06/59/image_16062025_07_00_05_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/06/59/image_16062025_06_59_55_10624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bf05470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bf05470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bf05470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:01:02.860038
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/00/image_16062025_07_00_44_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/07/00/image_16062025_07_00_35_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/00/image_16062025_07_00_25_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/07/00/image_16062025_07_00_15_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/06/59/image_16062025_07_00_05_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/06/59/image_16062025_06_59_55_10624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b4a5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b4a5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b4a5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:01:17.196924
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/01/image_16062025_07_01_45_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/07/01/image_16062025_07_01_35_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/07/01/image_16062025_07_01_25_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/07/01/image_16062025_07_01_15_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/07/00/image_16062025_07_01_05_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/07/00/image_16062025_07_00_55_10615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fefc470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fefc470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fefc470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:01:32.084296
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/01/image_16062025_07_01_45_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/07/01/image_16062025_07_01_35_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/07/01/image_16062025_07_01_25_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/07/01/image_16062025_07_01_15_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/07/00/image_16062025_07_01_05_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/07/00/image_16062025_07_00_55_10615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f962f3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f962f3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f962f3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:01:47.190342
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/01/image_16062025_07_01_45_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/07/01/image_16062025_07_01_35_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/07/01/image_16062025_07_01_25_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/07/01/image_16062025_07_01_15_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/07/00/image_16062025_07_01_05_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/07/00/image_16062025_07_00_55_10615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f890d4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f890d4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f890d4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:02:02.857072
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/01/image_16062025_07_01_45_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/07/01/image_16062025_07_01_35_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/07/01/image_16062025_07_01_25_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/07/01/image_16062025_07_01_15_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/07/00/image_16062025_07_01_05_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/07/00/image_16062025_07_00_55_10615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f233470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f233470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f233470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:02:17.301856
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/02/image_16062025_07_02_45_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/07/02/image_16062025_07_02_35_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/07/02/image_16062025_07_02_25_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/02/image_16062025_07_02_15_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/07/01/image_16062025_07_02_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/07/01/image_16062025_07_01_55_9607.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f849ec470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f849ec470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f849ec470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:02:32.282709
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/02/image_16062025_07_02_45_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/07/02/image_16062025_07_02_35_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/07/02/image_16062025_07_02_25_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/02/image_16062025_07_02_15_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/07/01/image_16062025_07_02_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/07/01/image_16062025_07_01_55_9607.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f8c4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f8c4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f8c4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:02:47.283399
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/02/image_16062025_07_02_45_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/07/02/image_16062025_07_02_35_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/07/02/image_16062025_07_02_25_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/02/image_16062025_07_02_15_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/07/01/image_16062025_07_02_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/07/01/image_16062025_07_01_55_9607.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4eef470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4eef470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4eef470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:03:03.006622
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/02/image_16062025_07_02_45_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/07/02/image_16062025_07_02_35_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/07/02/image_16062025_07_02_25_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/02/image_16062025_07_02_15_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/07/01/image_16062025_07_02_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/07/01/image_16062025_07_01_55_9607.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8bb57470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bb57470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bb57470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:03:17.406947
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/03/image_16062025_07_03_45_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/07/03/image_16062025_07_03_35_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/07/03/image_16062025_07_03_24_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/07/03/image_16062025_07_03_15_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/07/02/image_16062025_07_02_55_9596.jpg', 2), ('/home/nano/Desktop/images/16062025/07/02/image_16062025_07_02_45_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95ec3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95ec3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95ec3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:03:32.392584
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/03/image_16062025_07_03_45_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/07/03/image_16062025_07_03_35_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/07/03/image_16062025_07_03_24_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/07/03/image_16062025_07_03_15_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/07/02/image_16062025_07_02_55_9596.jpg', 2), ('/home/nano/Desktop/images/16062025/07/02/image_16062025_07_02_45_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c26d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c26d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c26d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:03:47.419237
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/03/image_16062025_07_03_45_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/07/03/image_16062025_07_03_35_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/07/03/image_16062025_07_03_24_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/07/03/image_16062025_07_03_15_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/07/02/image_16062025_07_02_55_9596.jpg', 2), ('/home/nano/Desktop/images/16062025/07/02/image_16062025_07_02_45_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb13f5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb13f5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb13f5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:04:03.330041
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/03/image_16062025_07_03_45_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/07/03/image_16062025_07_03_35_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/07/03/image_16062025_07_03_24_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/07/03/image_16062025_07_03_15_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/07/02/image_16062025_07_02_55_9596.jpg', 2), ('/home/nano/Desktop/images/16062025/07/02/image_16062025_07_02_45_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85929470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85929470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85929470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:04:17.529214
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/04/image_16062025_07_04_44_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/07/04/image_16062025_07_04_35_9683.jpg', 2), ('/home/nano/Desktop/images/16062025/07/04/image_16062025_07_04_25_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/07/04/image_16062025_07_04_15_9676.jpg', 2), ('/home/nano/Desktop/images/16062025/07/03/image_16062025_07_04_05_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/07/03/image_16062025_07_03_55_10617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5959400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5959400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5959400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:04:32.508827
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/04/image_16062025_07_04_44_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/07/04/image_16062025_07_04_35_9683.jpg', 2), ('/home/nano/Desktop/images/16062025/07/04/image_16062025_07_04_25_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/07/04/image_16062025_07_04_15_9676.jpg', 2), ('/home/nano/Desktop/images/16062025/07/03/image_16062025_07_04_05_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/07/03/image_16062025_07_03_55_10617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fb28470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fb28470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fb28470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:04:47.499090
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/04/image_16062025_07_04_44_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/07/04/image_16062025_07_04_35_9683.jpg', 2), ('/home/nano/Desktop/images/16062025/07/04/image_16062025_07_04_25_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/07/04/image_16062025_07_04_15_9676.jpg', 2), ('/home/nano/Desktop/images/16062025/07/03/image_16062025_07_04_05_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/07/03/image_16062025_07_03_55_10617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb517f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb517f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb517f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:05:03.385544
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/04/image_16062025_07_04_44_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/07/04/image_16062025_07_04_35_9683.jpg', 2), ('/home/nano/Desktop/images/16062025/07/04/image_16062025_07_04_25_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/07/04/image_16062025_07_04_15_9676.jpg', 2), ('/home/nano/Desktop/images/16062025/07/03/image_16062025_07_04_05_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/07/03/image_16062025_07_03_55_10617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8dcd0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dcd0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dcd0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:05:17.611431
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/05/image_16062025_07_05_45_9678.jpg', 2), ('/home/nano/Desktop/images/16062025/07/05/image_16062025_07_05_35_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/07/05/image_16062025_07_05_25_10663.jpg', 2), ('/home/nano/Desktop/images/16062025/07/05/image_16062025_07_05_15_9699.jpg', 2), ('/home/nano/Desktop/images/16062025/07/04/image_16062025_07_05_05_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/07/04/image_16062025_07_04_55_10673.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8502f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8502f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8502f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:05:32.600854
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/05/image_16062025_07_05_45_9678.jpg', 2), ('/home/nano/Desktop/images/16062025/07/05/image_16062025_07_05_35_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/07/05/image_16062025_07_05_25_10663.jpg', 2), ('/home/nano/Desktop/images/16062025/07/05/image_16062025_07_05_15_9699.jpg', 2), ('/home/nano/Desktop/images/16062025/07/04/image_16062025_07_05_05_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/07/04/image_16062025_07_04_55_10673.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2e0e400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2e0e400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2e0e400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:05:47.622032
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/05/image_16062025_07_05_45_9678.jpg', 2), ('/home/nano/Desktop/images/16062025/07/05/image_16062025_07_05_35_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/07/05/image_16062025_07_05_25_10663.jpg', 2), ('/home/nano/Desktop/images/16062025/07/05/image_16062025_07_05_15_9699.jpg', 2), ('/home/nano/Desktop/images/16062025/07/04/image_16062025_07_05_05_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/07/04/image_16062025_07_04_55_10673.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95efa470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95efa470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95efa470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:06:03.141042
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/05/image_16062025_07_05_45_9678.jpg', 2), ('/home/nano/Desktop/images/16062025/07/05/image_16062025_07_05_35_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/07/05/image_16062025_07_05_25_10663.jpg', 2), ('/home/nano/Desktop/images/16062025/07/05/image_16062025_07_05_15_9699.jpg', 2), ('/home/nano/Desktop/images/16062025/07/04/image_16062025_07_05_05_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/07/04/image_16062025_07_04_55_10673.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa26e3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa26e3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa26e3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:06:17.717969
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_44_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_35_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_25_10676.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_15_9682.jpg', 2), ('/home/nano/Desktop/images/16062025/07/05/image_16062025_07_06_05_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/07/05/image_16062025_07_05_55_10657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b3e5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b3e5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b3e5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:06:32.738921
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_44_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_35_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_25_10676.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_15_9682.jpg', 2), ('/home/nano/Desktop/images/16062025/07/05/image_16062025_07_06_05_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/07/05/image_16062025_07_05_55_10657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ab43470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ab43470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ab43470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:06:47.755795
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_44_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_35_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_25_10676.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_15_9682.jpg', 2), ('/home/nano/Desktop/images/16062025/07/05/image_16062025_07_06_05_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/07/05/image_16062025_07_05_55_10657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81383470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81383470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81383470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:07:02.516951
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_44_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_35_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_25_10676.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_15_9682.jpg', 2), ('/home/nano/Desktop/images/16062025/07/05/image_16062025_07_06_05_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/07/05/image_16062025_07_05_55_10657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ded4400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ded4400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ded4400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:07:16.863086
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/07/image_16062025_07_07_25_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/07/07/image_16062025_07_07_15_9679.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_07_05_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_55_10730.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_44_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_35_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a9f0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a9f0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a9f0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:07:31.823486
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/07/image_16062025_07_07_25_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/07/07/image_16062025_07_07_15_9679.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_07_05_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_55_10730.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_44_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_35_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88ffa400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88ffa400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88ffa400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:07:46.834611
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/07/image_16062025_07_07_25_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/07/07/image_16062025_07_07_15_9679.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_07_05_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_55_10730.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_44_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_35_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f897f1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f897f1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f897f1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:08:02.495079
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/08/image_16062025_07_08_25_9587.jpg', 2), ('/home/nano/Desktop/images/16062025/07/07/image_16062025_07_07_25_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/07/07/image_16062025_07_07_15_9679.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_07_05_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_55_10730.jpg', 2), ('/home/nano/Desktop/images/16062025/07/06/image_16062025_07_06_44_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8664c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8664c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8664c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:08:16.936449
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/08/image_16062025_07_08_45_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/07/08/image_16062025_07_08_35_9577.jpg', 2), ('/home/nano/Desktop/images/16062025/07/08/image_16062025_07_08_25_9587.jpg', 2), ('/home/nano/Desktop/images/16062025/07/08/image_16062025_07_08_15_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/07/07/image_16062025_07_08_05_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/07/07/image_16062025_07_07_35_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c1c7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c1c7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c1c7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:08:31.923476
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/08/image_16062025_07_08_45_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/07/08/image_16062025_07_08_35_9577.jpg', 2), ('/home/nano/Desktop/images/16062025/07/08/image_16062025_07_08_25_9587.jpg', 2), ('/home/nano/Desktop/images/16062025/07/08/image_16062025_07_08_15_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/07/07/image_16062025_07_08_05_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/07/07/image_16062025_07_07_35_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8937c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8937c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8937c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:08:46.921753
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/08/image_16062025_07_08_45_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/07/08/image_16062025_07_08_35_9577.jpg', 2), ('/home/nano/Desktop/images/16062025/07/08/image_16062025_07_08_25_9587.jpg', 2), ('/home/nano/Desktop/images/16062025/07/08/image_16062025_07_08_15_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/07/07/image_16062025_07_08_05_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/07/07/image_16062025_07_07_35_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa18bc470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa18bc470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa18bc470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:09:03.185072
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/08/image_16062025_07_08_45_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/07/08/image_16062025_07_08_35_9577.jpg', 2), ('/home/nano/Desktop/images/16062025/07/08/image_16062025_07_08_25_9587.jpg', 2), ('/home/nano/Desktop/images/16062025/07/08/image_16062025_07_08_15_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/07/07/image_16062025_07_08_05_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/07/07/image_16062025_07_07_35_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98e9a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98e9a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98e9a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:09:17.023340
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/09/image_16062025_07_09_45_9584.jpg', 2), ('/home/nano/Desktop/images/16062025/07/09/image_16062025_07_09_35_10601.jpg', 2), ('/home/nano/Desktop/images/16062025/07/09/image_16062025_07_09_25_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/07/09/image_16062025_07_09_15_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/07/08/image_16062025_07_09_05_10611.jpg', 2), ('/home/nano/Desktop/images/16062025/07/08/image_16062025_07_08_55_9578.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95f70470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95f70470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95f70470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:09:32.022698
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/09/image_16062025_07_09_45_9584.jpg', 2), ('/home/nano/Desktop/images/16062025/07/09/image_16062025_07_09_35_10601.jpg', 2), ('/home/nano/Desktop/images/16062025/07/09/image_16062025_07_09_25_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/07/09/image_16062025_07_09_15_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/07/08/image_16062025_07_09_05_10611.jpg', 2), ('/home/nano/Desktop/images/16062025/07/08/image_16062025_07_08_55_9578.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f862ae470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f862ae470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f862ae470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:09:47.020642
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/09/image_16062025_07_09_45_9584.jpg', 2), ('/home/nano/Desktop/images/16062025/07/09/image_16062025_07_09_35_10601.jpg', 2), ('/home/nano/Desktop/images/16062025/07/09/image_16062025_07_09_25_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/07/09/image_16062025_07_09_15_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/07/08/image_16062025_07_09_05_10611.jpg', 2), ('/home/nano/Desktop/images/16062025/07/08/image_16062025_07_08_55_9578.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0f35470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0f35470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0f35470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:10:02.583024
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/09/image_16062025_07_09_45_9584.jpg', 2), ('/home/nano/Desktop/images/16062025/07/09/image_16062025_07_09_35_10601.jpg', 2), ('/home/nano/Desktop/images/16062025/07/09/image_16062025_07_09_25_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/07/09/image_16062025_07_09_15_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/07/08/image_16062025_07_09_05_10611.jpg', 2), ('/home/nano/Desktop/images/16062025/07/08/image_16062025_07_08_55_9578.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab6c8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab6c8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab6c8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:10:17.135639
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/10/image_16062025_07_10_45_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/07/10/image_16062025_07_10_35_9591.jpg', 2), ('/home/nano/Desktop/images/16062025/07/10/image_16062025_07_10_25_10601.jpg', 2), ('/home/nano/Desktop/images/16062025/07/10/image_16062025_07_10_15_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/07/09/image_16062025_07_10_05_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/07/09/image_16062025_07_09_55_10592.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5a11470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5a11470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5a11470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:10:32.134134
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/10/image_16062025_07_10_45_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/07/10/image_16062025_07_10_35_9591.jpg', 2), ('/home/nano/Desktop/images/16062025/07/10/image_16062025_07_10_25_10601.jpg', 2), ('/home/nano/Desktop/images/16062025/07/10/image_16062025_07_10_15_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/07/09/image_16062025_07_10_05_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/07/09/image_16062025_07_09_55_10592.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96936470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96936470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96936470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:10:47.122930
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/10/image_16062025_07_10_45_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/07/10/image_16062025_07_10_35_9591.jpg', 2), ('/home/nano/Desktop/images/16062025/07/10/image_16062025_07_10_25_10601.jpg', 2), ('/home/nano/Desktop/images/16062025/07/10/image_16062025_07_10_15_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/07/09/image_16062025_07_10_05_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/07/09/image_16062025_07_09_55_10592.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f984bc470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f984bc470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f984bc470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:11:03.087073
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/10/image_16062025_07_10_45_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/07/10/image_16062025_07_10_35_9591.jpg', 2), ('/home/nano/Desktop/images/16062025/07/10/image_16062025_07_10_25_10601.jpg', 2), ('/home/nano/Desktop/images/16062025/07/10/image_16062025_07_10_15_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/07/09/image_16062025_07_10_05_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/07/09/image_16062025_07_09_55_10592.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb259e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb259e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb259e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:11:17.226936
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/11/image_16062025_07_11_45_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/07/11/image_16062025_07_11_35_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/07/11/image_16062025_07_11_25_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/07/11/image_16062025_07_11_15_10702.jpg', 2), ('/home/nano/Desktop/images/16062025/07/10/image_16062025_07_11_05_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/07/10/image_16062025_07_10_55_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb56a8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb56a8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb56a8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:11:32.268333
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/11/image_16062025_07_11_45_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/07/11/image_16062025_07_11_35_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/07/11/image_16062025_07_11_25_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/07/11/image_16062025_07_11_15_10702.jpg', 2), ('/home/nano/Desktop/images/16062025/07/10/image_16062025_07_11_05_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/07/10/image_16062025_07_10_55_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87641470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87641470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87641470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:11:47.224424
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/11/image_16062025_07_11_45_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/07/11/image_16062025_07_11_35_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/07/11/image_16062025_07_11_25_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/07/11/image_16062025_07_11_15_10702.jpg', 2), ('/home/nano/Desktop/images/16062025/07/10/image_16062025_07_11_05_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/07/10/image_16062025_07_10_55_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8501c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8501c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8501c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:12:02.990310
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/11/image_16062025_07_11_45_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/07/11/image_16062025_07_11_35_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/07/11/image_16062025_07_11_25_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/07/11/image_16062025_07_11_15_10702.jpg', 2), ('/home/nano/Desktop/images/16062025/07/10/image_16062025_07_11_05_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/07/10/image_16062025_07_10_55_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f793a5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f793a5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f793a5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:12:17.326286
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/12/image_16062025_07_12_45_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/07/12/image_16062025_07_12_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/07/12/image_16062025_07_12_25_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/07/12/image_16062025_07_12_15_10680.jpg', 2), ('/home/nano/Desktop/images/16062025/07/11/image_16062025_07_12_05_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/07/11/image_16062025_07_11_55_9629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a63d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a63d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a63d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:12:32.369170
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/12/image_16062025_07_12_45_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/07/12/image_16062025_07_12_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/07/12/image_16062025_07_12_25_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/07/12/image_16062025_07_12_15_10680.jpg', 2), ('/home/nano/Desktop/images/16062025/07/11/image_16062025_07_12_05_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/07/11/image_16062025_07_11_55_9629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78efb470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78efb470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78efb470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:12:47.325549
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/12/image_16062025_07_12_45_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/07/12/image_16062025_07_12_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/07/12/image_16062025_07_12_25_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/07/12/image_16062025_07_12_15_10680.jpg', 2), ('/home/nano/Desktop/images/16062025/07/11/image_16062025_07_12_05_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/07/11/image_16062025_07_11_55_9629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1839470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1839470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1839470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:13:03.023152
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/12/image_16062025_07_12_45_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/07/12/image_16062025_07_12_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/07/12/image_16062025_07_12_25_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/07/12/image_16062025_07_12_15_10680.jpg', 2), ('/home/nano/Desktop/images/16062025/07/11/image_16062025_07_12_05_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/07/11/image_16062025_07_11_55_9629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93a40470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93a40470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93a40470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:13:17.443593
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/13/image_16062025_07_13_45_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/07/13/image_16062025_07_13_35_10667.jpg', 2), ('/home/nano/Desktop/images/16062025/07/13/image_16062025_07_13_25_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/07/13/image_16062025_07_13_15_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/07/12/image_16062025_07_13_05_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/07/12/image_16062025_07_12_55_9628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90d6e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90d6e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90d6e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:13:32.413428
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/13/image_16062025_07_13_45_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/07/13/image_16062025_07_13_35_10667.jpg', 2), ('/home/nano/Desktop/images/16062025/07/13/image_16062025_07_13_25_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/07/13/image_16062025_07_13_15_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/07/12/image_16062025_07_13_05_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/07/12/image_16062025_07_12_55_9628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0581400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0581400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0581400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:13:47.412501
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/13/image_16062025_07_13_45_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/07/13/image_16062025_07_13_35_10667.jpg', 2), ('/home/nano/Desktop/images/16062025/07/13/image_16062025_07_13_25_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/07/13/image_16062025_07_13_15_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/07/12/image_16062025_07_13_05_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/07/12/image_16062025_07_12_55_9628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95edc470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95edc470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95edc470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:14:03.448899
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/13/image_16062025_07_13_45_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/07/13/image_16062025_07_13_35_10667.jpg', 2), ('/home/nano/Desktop/images/16062025/07/13/image_16062025_07_13_25_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/07/13/image_16062025_07_13_15_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/07/12/image_16062025_07_13_05_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/07/12/image_16062025_07_12_55_9628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8242c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8242c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8242c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:14:17.533437
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/14/image_16062025_07_14_45_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/07/14/image_16062025_07_14_35_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/07/14/image_16062025_07_14_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/07/14/image_16062025_07_14_15_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/07/13/image_16062025_07_14_05_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/07/13/image_16062025_07_13_54_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb365e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb365e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb365e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:14:32.520754
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/14/image_16062025_07_14_45_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/07/14/image_16062025_07_14_35_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/07/14/image_16062025_07_14_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/07/14/image_16062025_07_14_15_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/07/13/image_16062025_07_14_05_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/07/13/image_16062025_07_13_54_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7724c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7724c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7724c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:14:47.506797
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/14/image_16062025_07_14_45_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/07/14/image_16062025_07_14_35_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/07/14/image_16062025_07_14_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/07/14/image_16062025_07_14_15_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/07/13/image_16062025_07_14_05_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/07/13/image_16062025_07_13_54_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79de7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79de7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79de7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:15:03.256457
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/14/image_16062025_07_14_45_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/07/14/image_16062025_07_14_35_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/07/14/image_16062025_07_14_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/07/14/image_16062025_07_14_15_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/07/13/image_16062025_07_14_05_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/07/13/image_16062025_07_13_54_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97a8a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97a8a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97a8a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:15:17.637980
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/15/image_16062025_07_15_45_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/07/15/image_16062025_07_15_35_10668.jpg', 2), ('/home/nano/Desktop/images/16062025/07/15/image_16062025_07_15_24_9729.jpg', 2), ('/home/nano/Desktop/images/16062025/07/15/image_16062025_07_15_15_9690.jpg', 2), ('/home/nano/Desktop/images/16062025/07/14/image_16062025_07_15_05_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/07/14/image_16062025_07_14_55_10658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d29d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d29d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d29d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:15:32.615504
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/15/image_16062025_07_15_45_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/07/15/image_16062025_07_15_35_10668.jpg', 2), ('/home/nano/Desktop/images/16062025/07/15/image_16062025_07_15_24_9729.jpg', 2), ('/home/nano/Desktop/images/16062025/07/15/image_16062025_07_15_15_9690.jpg', 2), ('/home/nano/Desktop/images/16062025/07/14/image_16062025_07_15_05_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/07/14/image_16062025_07_14_55_10658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c93e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c93e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c93e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:15:47.615029
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/15/image_16062025_07_15_45_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/07/15/image_16062025_07_15_35_10668.jpg', 2), ('/home/nano/Desktop/images/16062025/07/15/image_16062025_07_15_24_9729.jpg', 2), ('/home/nano/Desktop/images/16062025/07/15/image_16062025_07_15_15_9690.jpg', 2), ('/home/nano/Desktop/images/16062025/07/14/image_16062025_07_15_05_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/07/14/image_16062025_07_14_55_10658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4b23470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4b23470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4b23470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:16:03.270840
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/15/image_16062025_07_15_45_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/07/15/image_16062025_07_15_35_10668.jpg', 2), ('/home/nano/Desktop/images/16062025/07/15/image_16062025_07_15_24_9729.jpg', 2), ('/home/nano/Desktop/images/16062025/07/15/image_16062025_07_15_15_9690.jpg', 2), ('/home/nano/Desktop/images/16062025/07/14/image_16062025_07_15_05_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/07/14/image_16062025_07_14_55_10658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99a26470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99a26470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99a26470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:16:17.747908
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/16/image_16062025_07_16_45_9766.jpg', 2), ('/home/nano/Desktop/images/16062025/07/16/image_16062025_07_16_35_10756.jpg', 2), ('/home/nano/Desktop/images/16062025/07/16/image_16062025_07_16_25_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/07/16/image_16062025_07_16_15_9789.jpg', 2), ('/home/nano/Desktop/images/16062025/07/15/image_16062025_07_16_05_10689.jpg', 2), ('/home/nano/Desktop/images/16062025/07/15/image_16062025_07_15_54_9660.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78dbb470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78dbb470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78dbb470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:16:32.756740
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/16/image_16062025_07_16_45_9766.jpg', 2), ('/home/nano/Desktop/images/16062025/07/16/image_16062025_07_16_35_10756.jpg', 2), ('/home/nano/Desktop/images/16062025/07/16/image_16062025_07_16_25_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/07/16/image_16062025_07_16_15_9789.jpg', 2), ('/home/nano/Desktop/images/16062025/07/15/image_16062025_07_16_05_10689.jpg', 2), ('/home/nano/Desktop/images/16062025/07/15/image_16062025_07_15_54_9660.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb26b7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb26b7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb26b7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:16:47.719738
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/16/image_16062025_07_16_45_9766.jpg', 2), ('/home/nano/Desktop/images/16062025/07/16/image_16062025_07_16_35_10756.jpg', 2), ('/home/nano/Desktop/images/16062025/07/16/image_16062025_07_16_25_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/07/16/image_16062025_07_16_15_9789.jpg', 2), ('/home/nano/Desktop/images/16062025/07/15/image_16062025_07_16_05_10689.jpg', 2), ('/home/nano/Desktop/images/16062025/07/15/image_16062025_07_15_54_9660.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97a0c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97a0c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97a0c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:17:02.561773
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/17/image_16062025_07_17_35_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/07/16/image_16062025_07_16_45_9766.jpg', 2), ('/home/nano/Desktop/images/16062025/07/16/image_16062025_07_16_35_10756.jpg', 2), ('/home/nano/Desktop/images/16062025/07/16/image_16062025_07_16_25_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/07/16/image_16062025_07_16_15_9789.jpg', 2), ('/home/nano/Desktop/images/16062025/07/15/image_16062025_07_16_05_10689.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7908d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7908d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7908d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:17:16.866820
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/17/image_16062025_07_17_45_10688.jpg', 2), ('/home/nano/Desktop/images/16062025/07/17/image_16062025_07_17_35_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/07/17/image_16062025_07_17_25_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/07/17/image_16062025_07_17_15_10708.jpg', 2), ('/home/nano/Desktop/images/16062025/07/16/image_16062025_07_17_05_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/07/16/image_16062025_07_16_55_9757.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93d5c400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93d5c400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93d5c400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:17:31.822371
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/17/image_16062025_07_17_45_10688.jpg', 2), ('/home/nano/Desktop/images/16062025/07/17/image_16062025_07_17_35_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/07/17/image_16062025_07_17_25_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/07/17/image_16062025_07_17_15_10708.jpg', 2), ('/home/nano/Desktop/images/16062025/07/16/image_16062025_07_17_05_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/07/16/image_16062025_07_16_55_9757.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98a7e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98a7e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98a7e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:17:46.889598
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/17/image_16062025_07_17_45_10688.jpg', 2), ('/home/nano/Desktop/images/16062025/07/17/image_16062025_07_17_35_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/07/17/image_16062025_07_17_25_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/07/17/image_16062025_07_17_15_10708.jpg', 2), ('/home/nano/Desktop/images/16062025/07/16/image_16062025_07_17_05_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/07/16/image_16062025_07_16_55_9757.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4606470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4606470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4606470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:18:02.396868
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/17/image_16062025_07_17_45_10688.jpg', 2), ('/home/nano/Desktop/images/16062025/07/17/image_16062025_07_17_35_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/07/17/image_16062025_07_17_25_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/07/17/image_16062025_07_17_15_10708.jpg', 2), ('/home/nano/Desktop/images/16062025/07/16/image_16062025_07_17_05_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/07/16/image_16062025_07_16_55_9757.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fabbe8400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabbe8400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabbe8400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:18:16.959651
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/18/image_16062025_07_18_44_9724.jpg', 2), ('/home/nano/Desktop/images/16062025/07/18/image_16062025_07_18_35_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/07/18/image_16062025_07_18_25_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/07/18/image_16062025_07_18_15_10678.jpg', 2), ('/home/nano/Desktop/images/16062025/07/17/image_16062025_07_18_05_9753.jpg', 2), ('/home/nano/Desktop/images/16062025/07/17/image_16062025_07_17_55_9734.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8491b400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8491b400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8491b400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:18:31.961742
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/18/image_16062025_07_18_44_9724.jpg', 2), ('/home/nano/Desktop/images/16062025/07/18/image_16062025_07_18_35_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/07/18/image_16062025_07_18_25_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/07/18/image_16062025_07_18_15_10678.jpg', 2), ('/home/nano/Desktop/images/16062025/07/17/image_16062025_07_18_05_9753.jpg', 2), ('/home/nano/Desktop/images/16062025/07/17/image_16062025_07_17_55_9734.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9789c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9789c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9789c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:18:46.982397
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/18/image_16062025_07_18_44_9724.jpg', 2), ('/home/nano/Desktop/images/16062025/07/18/image_16062025_07_18_35_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/07/18/image_16062025_07_18_25_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/07/18/image_16062025_07_18_15_10678.jpg', 2), ('/home/nano/Desktop/images/16062025/07/17/image_16062025_07_18_05_9753.jpg', 2), ('/home/nano/Desktop/images/16062025/07/17/image_16062025_07_17_55_9734.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab22b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab22b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab22b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:19:03.076431
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/18/image_16062025_07_18_44_9724.jpg', 2), ('/home/nano/Desktop/images/16062025/07/18/image_16062025_07_18_35_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/07/18/image_16062025_07_18_25_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/07/18/image_16062025_07_18_15_10678.jpg', 2), ('/home/nano/Desktop/images/16062025/07/17/image_16062025_07_18_05_9753.jpg', 2), ('/home/nano/Desktop/images/16062025/07/17/image_16062025_07_17_55_9734.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ff0b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ff0b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ff0b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:19:17.197487
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/19/image_16062025_07_19_44_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/07/19/image_16062025_07_19_35_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/07/19/image_16062025_07_19_25_10718.jpg', 2), ('/home/nano/Desktop/images/16062025/07/19/image_16062025_07_19_14_9748.jpg', 2), ('/home/nano/Desktop/images/16062025/07/18/image_16062025_07_19_05_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/07/18/image_16062025_07_18_55_10674.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f777f6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f777f6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f777f6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:19:32.048628
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/19/image_16062025_07_19_44_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/07/19/image_16062025_07_19_35_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/07/19/image_16062025_07_19_25_10718.jpg', 2), ('/home/nano/Desktop/images/16062025/07/19/image_16062025_07_19_14_9748.jpg', 2), ('/home/nano/Desktop/images/16062025/07/18/image_16062025_07_19_05_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/07/18/image_16062025_07_18_55_10674.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab140470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab140470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab140470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:19:47.048283
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/19/image_16062025_07_19_44_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/07/19/image_16062025_07_19_35_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/07/19/image_16062025_07_19_25_10718.jpg', 2), ('/home/nano/Desktop/images/16062025/07/19/image_16062025_07_19_14_9748.jpg', 2), ('/home/nano/Desktop/images/16062025/07/18/image_16062025_07_19_05_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/07/18/image_16062025_07_18_55_10674.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa25a7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa25a7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa25a7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:20:02.656953
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/19/image_16062025_07_19_44_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/07/19/image_16062025_07_19_35_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/07/19/image_16062025_07_19_25_10718.jpg', 2), ('/home/nano/Desktop/images/16062025/07/19/image_16062025_07_19_14_9748.jpg', 2), ('/home/nano/Desktop/images/16062025/07/18/image_16062025_07_19_05_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/07/18/image_16062025_07_18_55_10674.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8002b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8002b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8002b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:20:17.147494
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/20/image_16062025_07_20_45_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/07/20/image_16062025_07_20_35_9718.jpg', 2), ('/home/nano/Desktop/images/16062025/07/20/image_16062025_07_20_25_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/07/20/image_16062025_07_20_14_9678.jpg', 2), ('/home/nano/Desktop/images/16062025/07/19/image_16062025_07_20_05_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/07/19/image_16062025_07_19_55_10661.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4ab4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4ab4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4ab4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:20:32.152327
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/20/image_16062025_07_20_45_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/07/20/image_16062025_07_20_35_9718.jpg', 2), ('/home/nano/Desktop/images/16062025/07/20/image_16062025_07_20_25_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/07/20/image_16062025_07_20_14_9678.jpg', 2), ('/home/nano/Desktop/images/16062025/07/19/image_16062025_07_20_05_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/07/19/image_16062025_07_19_55_10661.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2f65470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2f65470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2f65470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:20:47.146661
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/20/image_16062025_07_20_45_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/07/20/image_16062025_07_20_35_9718.jpg', 2), ('/home/nano/Desktop/images/16062025/07/20/image_16062025_07_20_25_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/07/20/image_16062025_07_20_14_9678.jpg', 2), ('/home/nano/Desktop/images/16062025/07/19/image_16062025_07_20_05_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/07/19/image_16062025_07_19_55_10661.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ea21470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ea21470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ea21470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:21:02.985651
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/20/image_16062025_07_20_45_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/07/20/image_16062025_07_20_35_9718.jpg', 2), ('/home/nano/Desktop/images/16062025/07/20/image_16062025_07_20_25_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/07/20/image_16062025_07_20_14_9678.jpg', 2), ('/home/nano/Desktop/images/16062025/07/19/image_16062025_07_20_05_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/07/19/image_16062025_07_19_55_10661.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e58e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e58e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e58e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:21:17.261369
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/21/image_16062025_07_21_45_9718.jpg', 2), ('/home/nano/Desktop/images/16062025/07/21/image_16062025_07_21_35_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/07/21/image_16062025_07_21_25_10655.jpg', 2), ('/home/nano/Desktop/images/16062025/07/21/image_16062025_07_21_15_9773.jpg', 2), ('/home/nano/Desktop/images/16062025/07/20/image_16062025_07_21_05_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/07/20/image_16062025_07_20_55_10639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3cde470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3cde470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3cde470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:21:32.273765
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/21/image_16062025_07_21_45_9718.jpg', 2), ('/home/nano/Desktop/images/16062025/07/21/image_16062025_07_21_35_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/07/21/image_16062025_07_21_25_10655.jpg', 2), ('/home/nano/Desktop/images/16062025/07/21/image_16062025_07_21_15_9773.jpg', 2), ('/home/nano/Desktop/images/16062025/07/20/image_16062025_07_21_05_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/07/20/image_16062025_07_20_55_10639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad166470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad166470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad166470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:21:47.237791
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/21/image_16062025_07_21_45_9718.jpg', 2), ('/home/nano/Desktop/images/16062025/07/21/image_16062025_07_21_35_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/07/21/image_16062025_07_21_25_10655.jpg', 2), ('/home/nano/Desktop/images/16062025/07/21/image_16062025_07_21_15_9773.jpg', 2), ('/home/nano/Desktop/images/16062025/07/20/image_16062025_07_21_05_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/07/20/image_16062025_07_20_55_10639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b633400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b633400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b633400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:22:02.778932
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/21/image_16062025_07_21_45_9718.jpg', 2), ('/home/nano/Desktop/images/16062025/07/21/image_16062025_07_21_35_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/07/21/image_16062025_07_21_25_10655.jpg', 2), ('/home/nano/Desktop/images/16062025/07/21/image_16062025_07_21_15_9773.jpg', 2), ('/home/nano/Desktop/images/16062025/07/20/image_16062025_07_21_05_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/07/20/image_16062025_07_20_55_10639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3848470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3848470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3848470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:22:17.379346
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/22/image_16062025_07_22_44_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/07/22/image_16062025_07_22_35_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/07/22/image_16062025_07_22_25_10614.jpg', 2), ('/home/nano/Desktop/images/16062025/07/22/image_16062025_07_22_15_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/07/21/image_16062025_07_22_05_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/07/21/image_16062025_07_21_55_10709.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ecf8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ecf8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ecf8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:22:32.342040
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/22/image_16062025_07_22_44_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/07/22/image_16062025_07_22_35_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/07/22/image_16062025_07_22_25_10614.jpg', 2), ('/home/nano/Desktop/images/16062025/07/22/image_16062025_07_22_15_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/07/21/image_16062025_07_22_05_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/07/21/image_16062025_07_21_55_10709.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9da04470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9da04470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9da04470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:22:47.340817
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/22/image_16062025_07_22_44_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/07/22/image_16062025_07_22_35_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/07/22/image_16062025_07_22_25_10614.jpg', 2), ('/home/nano/Desktop/images/16062025/07/22/image_16062025_07_22_15_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/07/21/image_16062025_07_22_05_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/07/21/image_16062025_07_21_55_10709.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95009470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95009470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95009470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:23:03.294657
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/22/image_16062025_07_22_44_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/07/22/image_16062025_07_22_35_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/07/22/image_16062025_07_22_25_10614.jpg', 2), ('/home/nano/Desktop/images/16062025/07/22/image_16062025_07_22_15_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/07/21/image_16062025_07_22_05_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/07/21/image_16062025_07_21_55_10709.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8edd8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8edd8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8edd8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:23:17.445908
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/23/image_16062025_07_23_45_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/07/23/image_16062025_07_23_35_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/07/23/image_16062025_07_23_25_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/07/23/image_16062025_07_23_15_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/07/22/image_16062025_07_23_05_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/07/22/image_16062025_07_22_55_10609.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad766470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad766470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad766470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:23:32.456142
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/23/image_16062025_07_23_45_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/07/23/image_16062025_07_23_35_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/07/23/image_16062025_07_23_25_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/07/23/image_16062025_07_23_15_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/07/22/image_16062025_07_23_05_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/07/22/image_16062025_07_22_55_10609.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7cec3400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cec3400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cec3400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:23:47.463044
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/23/image_16062025_07_23_45_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/07/23/image_16062025_07_23_35_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/07/23/image_16062025_07_23_25_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/07/23/image_16062025_07_23_15_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/07/22/image_16062025_07_23_05_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/07/22/image_16062025_07_22_55_10609.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0622470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0622470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0622470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:24:03.422791
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/23/image_16062025_07_23_45_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/07/23/image_16062025_07_23_35_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/07/23/image_16062025_07_23_25_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/07/23/image_16062025_07_23_15_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/07/22/image_16062025_07_23_05_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/07/22/image_16062025_07_22_55_10609.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f970df470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f970df470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f970df470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:24:17.533415
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_24_45_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_24_35_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_24_25_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_24_15_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/07/23/image_16062025_07_24_04_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/07/23/image_16062025_07_23_55_9608.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c90c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c90c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c90c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:24:32.559716
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_24_45_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_24_35_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_24_25_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_24_15_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/07/23/image_16062025_07_24_04_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/07/23/image_16062025_07_23_55_9608.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e148470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e148470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e148470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:24:47.565846
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_24_45_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_24_35_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_24_25_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_24_15_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/07/23/image_16062025_07_24_04_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/07/23/image_16062025_07_23_55_9608.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ab56470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ab56470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ab56470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:25:03.463180
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_24_45_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_24_35_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_24_25_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_24_15_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/07/23/image_16062025_07_24_04_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/07/23/image_16062025_07_23_55_9608.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae82b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae82b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae82b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:25:17.668370
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/25/image_16062025_07_25_45_9589.jpg', 2), ('/home/nano/Desktop/images/16062025/07/25/image_16062025_07_25_35_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/07/25/image_16062025_07_25_25_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_25_05_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_24_54_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_24_45_9601.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f986ce400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f986ce400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f986ce400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:25:32.658415
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/25/image_16062025_07_25_45_9589.jpg', 2), ('/home/nano/Desktop/images/16062025/07/25/image_16062025_07_25_35_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/07/25/image_16062025_07_25_25_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_25_05_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_24_54_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_24_45_9601.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c046470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c046470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c046470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:25:47.690437
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/25/image_16062025_07_25_45_9589.jpg', 2), ('/home/nano/Desktop/images/16062025/07/25/image_16062025_07_25_35_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/07/25/image_16062025_07_25_25_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_25_05_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_24_54_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_24_45_9601.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3989470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3989470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3989470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:26:02.400403
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/26/image_16062025_07_26_45_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/25/image_16062025_07_25_45_9589.jpg', 2), ('/home/nano/Desktop/images/16062025/07/25/image_16062025_07_25_35_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/07/25/image_16062025_07_25_25_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_25_05_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/07/24/image_16062025_07_24_54_9600.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa288b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa288b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa288b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:26:16.796114
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/26/image_16062025_07_26_45_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/26/image_16062025_07_26_25_10599.jpg', 2), ('/home/nano/Desktop/images/16062025/07/26/image_16062025_07_26_14_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/07/25/image_16062025_07_26_05_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/07/25/image_16062025_07_25_55_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/07/25/image_16062025_07_25_45_9589.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac570470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac570470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac570470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:26:31.759746
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/26/image_16062025_07_26_45_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/26/image_16062025_07_26_25_10599.jpg', 2), ('/home/nano/Desktop/images/16062025/07/26/image_16062025_07_26_14_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/07/25/image_16062025_07_26_05_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/07/25/image_16062025_07_25_55_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/07/25/image_16062025_07_25_45_9589.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1e44400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1e44400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1e44400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:26:46.810545
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/26/image_16062025_07_26_45_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/26/image_16062025_07_26_25_10599.jpg', 2), ('/home/nano/Desktop/images/16062025/07/26/image_16062025_07_26_14_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/07/25/image_16062025_07_26_05_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/07/25/image_16062025_07_25_55_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/07/25/image_16062025_07_25_45_9589.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93616470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93616470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93616470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:27:02.583845
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/26/image_16062025_07_26_45_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/26/image_16062025_07_26_25_10599.jpg', 2), ('/home/nano/Desktop/images/16062025/07/26/image_16062025_07_26_14_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/07/25/image_16062025_07_26_05_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/07/25/image_16062025_07_25_55_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/07/25/image_16062025_07_25_45_9589.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa321c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa321c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa321c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:27:16.917260
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/27/image_16062025_07_27_45_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/07/27/image_16062025_07_27_35_10620.jpg', 2), ('/home/nano/Desktop/images/16062025/07/27/image_16062025_07_27_25_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/07/27/image_16062025_07_27_15_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/07/26/image_16062025_07_27_04_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/26/image_16062025_07_26_45_10609.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b577400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b577400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b577400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:27:31.922840
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/27/image_16062025_07_27_45_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/07/27/image_16062025_07_27_35_10620.jpg', 2), ('/home/nano/Desktop/images/16062025/07/27/image_16062025_07_27_25_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/07/27/image_16062025_07_27_15_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/07/26/image_16062025_07_27_04_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/26/image_16062025_07_26_45_10609.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0c07400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0c07400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0c07400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:27:46.937656
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/27/image_16062025_07_27_45_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/07/27/image_16062025_07_27_35_10620.jpg', 2), ('/home/nano/Desktop/images/16062025/07/27/image_16062025_07_27_25_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/07/27/image_16062025_07_27_15_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/07/26/image_16062025_07_27_04_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/26/image_16062025_07_26_45_10609.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b327470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b327470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b327470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:28:02.549200
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/27/image_16062025_07_27_45_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/07/27/image_16062025_07_27_35_10620.jpg', 2), ('/home/nano/Desktop/images/16062025/07/27/image_16062025_07_27_25_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/07/27/image_16062025_07_27_15_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/07/26/image_16062025_07_27_04_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/26/image_16062025_07_26_45_10609.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7703a400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7703a400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7703a400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:28:17.035910
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/28/image_16062025_07_28_45_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/07/28/image_16062025_07_28_35_10615.jpg', 2), ('/home/nano/Desktop/images/16062025/07/28/image_16062025_07_28_24_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/28/image_16062025_07_28_15_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/07/27/image_16062025_07_28_05_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/07/27/image_16062025_07_27_55_9603.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f931d8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f931d8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f931d8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:28:32.022603
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/28/image_16062025_07_28_45_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/07/28/image_16062025_07_28_35_10615.jpg', 2), ('/home/nano/Desktop/images/16062025/07/28/image_16062025_07_28_24_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/28/image_16062025_07_28_15_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/07/27/image_16062025_07_28_05_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/07/27/image_16062025_07_27_55_9603.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9806e400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9806e400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9806e400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:28:47.009587
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/28/image_16062025_07_28_45_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/07/28/image_16062025_07_28_35_10615.jpg', 2), ('/home/nano/Desktop/images/16062025/07/28/image_16062025_07_28_24_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/28/image_16062025_07_28_15_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/07/27/image_16062025_07_28_05_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/07/27/image_16062025_07_27_55_9603.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76f564a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76f564a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76f564a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:29:03.063108
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/28/image_16062025_07_28_45_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/07/28/image_16062025_07_28_35_10615.jpg', 2), ('/home/nano/Desktop/images/16062025/07/28/image_16062025_07_28_24_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/28/image_16062025_07_28_15_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/07/27/image_16062025_07_28_05_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/07/27/image_16062025_07_27_55_9603.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa47f1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa47f1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa47f1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:29:17.149186
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/29/image_16062025_07_29_45_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/07/29/image_16062025_07_29_35_9594.jpg', 2), ('/home/nano/Desktop/images/16062025/07/29/image_16062025_07_29_25_10611.jpg', 2), ('/home/nano/Desktop/images/16062025/07/29/image_16062025_07_29_14_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/07/28/image_16062025_07_29_05_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/07/28/image_16062025_07_28_55_10610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9205a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9205a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9205a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:29:32.141297
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/29/image_16062025_07_29_45_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/07/29/image_16062025_07_29_35_9594.jpg', 2), ('/home/nano/Desktop/images/16062025/07/29/image_16062025_07_29_25_10611.jpg', 2), ('/home/nano/Desktop/images/16062025/07/29/image_16062025_07_29_14_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/07/28/image_16062025_07_29_05_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/07/28/image_16062025_07_28_55_10610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78fdc470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78fdc470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78fdc470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:29:47.151188
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/29/image_16062025_07_29_45_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/07/29/image_16062025_07_29_35_9594.jpg', 2), ('/home/nano/Desktop/images/16062025/07/29/image_16062025_07_29_25_10611.jpg', 2), ('/home/nano/Desktop/images/16062025/07/29/image_16062025_07_29_14_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/07/28/image_16062025_07_29_05_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/07/28/image_16062025_07_28_55_10610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f774bd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f774bd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f774bd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:30:02.697994
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/29/image_16062025_07_29_45_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/07/29/image_16062025_07_29_35_9594.jpg', 2), ('/home/nano/Desktop/images/16062025/07/29/image_16062025_07_29_25_10611.jpg', 2), ('/home/nano/Desktop/images/16062025/07/29/image_16062025_07_29_14_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/07/28/image_16062025_07_29_05_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/07/28/image_16062025_07_28_55_10610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d561470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d561470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d561470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:30:17.289811
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/30/image_16062025_07_30_45_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/07/30/image_16062025_07_30_35_10605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/30/image_16062025_07_30_25_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/30/image_16062025_07_30_15_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/07/29/image_16062025_07_30_05_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/29/image_16062025_07_29_55_9602.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6faa470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6faa470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6faa470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:30:32.290722
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/30/image_16062025_07_30_45_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/07/30/image_16062025_07_30_35_10605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/30/image_16062025_07_30_25_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/30/image_16062025_07_30_15_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/07/29/image_16062025_07_30_05_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/29/image_16062025_07_29_55_9602.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85c9c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85c9c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85c9c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:30:47.221929
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/30/image_16062025_07_30_45_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/07/30/image_16062025_07_30_35_10605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/30/image_16062025_07_30_25_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/30/image_16062025_07_30_15_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/07/29/image_16062025_07_30_05_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/29/image_16062025_07_29_55_9602.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa514470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa514470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa514470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:31:03.147859
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/30/image_16062025_07_30_45_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/07/30/image_16062025_07_30_35_10605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/30/image_16062025_07_30_25_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/30/image_16062025_07_30_15_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/07/29/image_16062025_07_30_05_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/29/image_16062025_07_29_55_9602.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8dfdd400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dfdd400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dfdd400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:31:17.302443
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/31/image_16062025_07_31_45_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/07/31/image_16062025_07_31_35_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/07/31/image_16062025_07_31_24_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/07/31/image_16062025_07_31_15_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/07/30/image_16062025_07_31_05_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/07/30/image_16062025_07_30_55_9606.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab881470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab881470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab881470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:31:32.315177
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/31/image_16062025_07_31_45_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/07/31/image_16062025_07_31_35_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/07/31/image_16062025_07_31_24_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/07/31/image_16062025_07_31_15_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/07/30/image_16062025_07_31_05_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/07/30/image_16062025_07_30_55_9606.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafa85470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafa85470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafa85470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:31:47.311648
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/31/image_16062025_07_31_45_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/07/31/image_16062025_07_31_35_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/07/31/image_16062025_07_31_24_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/07/31/image_16062025_07_31_15_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/07/30/image_16062025_07_31_05_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/07/30/image_16062025_07_30_55_9606.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3f4f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3f4f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3f4f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:32:03.069757
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/31/image_16062025_07_31_45_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/07/31/image_16062025_07_31_35_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/07/31/image_16062025_07_31_24_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/07/31/image_16062025_07_31_15_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/07/30/image_16062025_07_31_05_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/07/30/image_16062025_07_30_55_9606.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9466f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9466f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9466f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:32:17.443159
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/32/image_16062025_07_32_44_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/07/32/image_16062025_07_32_35_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/07/32/image_16062025_07_32_25_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/32/image_16062025_07_32_15_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/07/31/image_16062025_07_32_05_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/07/31/image_16062025_07_31_55_10616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8a94470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8a94470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8a94470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:32:32.414702
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/32/image_16062025_07_32_44_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/07/32/image_16062025_07_32_35_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/07/32/image_16062025_07_32_25_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/32/image_16062025_07_32_15_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/07/31/image_16062025_07_32_05_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/07/31/image_16062025_07_31_55_10616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93f13470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93f13470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93f13470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:32:47.405091
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/32/image_16062025_07_32_44_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/07/32/image_16062025_07_32_35_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/07/32/image_16062025_07_32_25_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/32/image_16062025_07_32_15_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/07/31/image_16062025_07_32_05_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/07/31/image_16062025_07_31_55_10616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76a32470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76a32470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76a32470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:33:03.317826
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/32/image_16062025_07_32_44_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/07/32/image_16062025_07_32_35_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/07/32/image_16062025_07_32_25_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/32/image_16062025_07_32_15_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/07/31/image_16062025_07_32_05_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/07/31/image_16062025_07_31_55_10616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa271b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa271b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa271b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:33:17.502139
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/33/image_16062025_07_33_45_10605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/33/image_16062025_07_33_34_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/07/33/image_16062025_07_33_25_9595.jpg', 2), ('/home/nano/Desktop/images/16062025/07/33/image_16062025_07_33_15_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/07/32/image_16062025_07_33_05_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/07/32/image_16062025_07_32_55_10605.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fde2400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fde2400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fde2400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:33:32.496501
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/33/image_16062025_07_33_45_10605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/33/image_16062025_07_33_34_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/07/33/image_16062025_07_33_25_9595.jpg', 2), ('/home/nano/Desktop/images/16062025/07/33/image_16062025_07_33_15_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/07/32/image_16062025_07_33_05_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/07/32/image_16062025_07_32_55_10605.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90833470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90833470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90833470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:33:47.501321
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/33/image_16062025_07_33_45_10605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/33/image_16062025_07_33_34_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/07/33/image_16062025_07_33_25_9595.jpg', 2), ('/home/nano/Desktop/images/16062025/07/33/image_16062025_07_33_15_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/07/32/image_16062025_07_33_05_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/07/32/image_16062025_07_32_55_10605.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f880c4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f880c4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f880c4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:34:03.258931
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/33/image_16062025_07_33_45_10605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/33/image_16062025_07_33_34_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/07/33/image_16062025_07_33_25_9595.jpg', 2), ('/home/nano/Desktop/images/16062025/07/33/image_16062025_07_33_15_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/07/32/image_16062025_07_33_05_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/07/32/image_16062025_07_32_55_10605.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e7b5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e7b5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e7b5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:34:17.602329
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_34_45_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_34_35_10611.jpg', 2), ('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_34_24_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_34_15_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/07/33/image_16062025_07_34_05_10614.jpg', 2), ('/home/nano/Desktop/images/16062025/07/33/image_16062025_07_33_55_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c6d6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c6d6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c6d6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:34:32.594270
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_34_45_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_34_35_10611.jpg', 2), ('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_34_24_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_34_15_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/07/33/image_16062025_07_34_05_10614.jpg', 2), ('/home/nano/Desktop/images/16062025/07/33/image_16062025_07_33_55_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4522470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4522470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4522470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:34:47.611666
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_34_45_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_34_35_10611.jpg', 2), ('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_34_24_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_34_15_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/07/33/image_16062025_07_34_05_10614.jpg', 2), ('/home/nano/Desktop/images/16062025/07/33/image_16062025_07_33_55_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f962df470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f962df470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f962df470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:35:03.329480
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_34_45_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_34_35_10611.jpg', 2), ('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_34_24_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_34_15_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/07/33/image_16062025_07_34_05_10614.jpg', 2), ('/home/nano/Desktop/images/16062025/07/33/image_16062025_07_33_55_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ac36470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ac36470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ac36470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:35:17.707380
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/35/image_16062025_07_35_55_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/07/35/image_16062025_07_35_25_10603.jpg', 2), ('/home/nano/Desktop/images/16062025/07/35/image_16062025_07_35_15_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_35_05_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_34_55_10617.jpg', 2), ('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_34_45_9613.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f976d7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f976d7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f976d7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:35:32.715564
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/35/image_16062025_07_35_55_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/07/35/image_16062025_07_35_25_10603.jpg', 2), ('/home/nano/Desktop/images/16062025/07/35/image_16062025_07_35_15_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_35_05_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_34_55_10617.jpg', 2), ('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_34_45_9613.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e180470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e180470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e180470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:35:47.741083
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/35/image_16062025_07_35_55_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/07/35/image_16062025_07_35_25_10603.jpg', 2), ('/home/nano/Desktop/images/16062025/07/35/image_16062025_07_35_15_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_35_05_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_34_55_10617.jpg', 2), ('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_34_45_9613.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faafdf470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faafdf470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faafdf470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:36:02.422674
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/35/image_16062025_07_35_55_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/07/35/image_16062025_07_35_25_10603.jpg', 2), ('/home/nano/Desktop/images/16062025/07/35/image_16062025_07_35_15_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_35_05_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_34_55_10617.jpg', 2), ('/home/nano/Desktop/images/16062025/07/34/image_16062025_07_34_45_9613.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82853470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82853470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82853470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:36:16.824696
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/36/image_16062025_07_36_45_10605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/36/image_16062025_07_36_35_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/07/36/image_16062025_07_36_25_9606.jpg', 2), ('/home/nano/Desktop/images/16062025/07/36/image_16062025_07_36_15_10686.jpg', 2), ('/home/nano/Desktop/images/16062025/07/35/image_16062025_07_36_05_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/35/image_16062025_07_35_55_10608.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fadf32470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadf32470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadf32470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:36:31.838153
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/36/image_16062025_07_36_45_10605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/36/image_16062025_07_36_35_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/07/36/image_16062025_07_36_25_9606.jpg', 2), ('/home/nano/Desktop/images/16062025/07/36/image_16062025_07_36_15_10686.jpg', 2), ('/home/nano/Desktop/images/16062025/07/35/image_16062025_07_36_05_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/35/image_16062025_07_35_55_10608.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa772f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa772f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa772f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:36:46.842008
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/36/image_16062025_07_36_45_10605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/36/image_16062025_07_36_35_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/07/36/image_16062025_07_36_25_9606.jpg', 2), ('/home/nano/Desktop/images/16062025/07/36/image_16062025_07_36_15_10686.jpg', 2), ('/home/nano/Desktop/images/16062025/07/35/image_16062025_07_36_05_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/35/image_16062025_07_35_55_10608.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c2d5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c2d5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c2d5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:37:02.724567
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/36/image_16062025_07_36_45_10605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/36/image_16062025_07_36_35_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/07/36/image_16062025_07_36_25_9606.jpg', 2), ('/home/nano/Desktop/images/16062025/07/36/image_16062025_07_36_15_10686.jpg', 2), ('/home/nano/Desktop/images/16062025/07/35/image_16062025_07_36_05_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/07/35/image_16062025_07_35_55_10608.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7cfc9470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cfc9470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cfc9470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:37:16.953551
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/37/image_16062025_07_37_45_9684.jpg', 2), ('/home/nano/Desktop/images/16062025/07/37/image_16062025_07_37_35_10691.jpg', 2), ('/home/nano/Desktop/images/16062025/07/37/image_16062025_07_37_25_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/07/37/image_16062025_07_37_15_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/07/36/image_16062025_07_37_05_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/07/36/image_16062025_07_36_55_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7986f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7986f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7986f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:37:31.955876
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/37/image_16062025_07_37_45_9684.jpg', 2), ('/home/nano/Desktop/images/16062025/07/37/image_16062025_07_37_35_10691.jpg', 2), ('/home/nano/Desktop/images/16062025/07/37/image_16062025_07_37_25_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/07/37/image_16062025_07_37_15_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/07/36/image_16062025_07_37_05_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/07/36/image_16062025_07_36_55_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0cdb470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0cdb470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0cdb470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:37:46.972084
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/37/image_16062025_07_37_45_9684.jpg', 2), ('/home/nano/Desktop/images/16062025/07/37/image_16062025_07_37_35_10691.jpg', 2), ('/home/nano/Desktop/images/16062025/07/37/image_16062025_07_37_25_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/07/37/image_16062025_07_37_15_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/07/36/image_16062025_07_37_05_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/07/36/image_16062025_07_36_55_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f829ef470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f829ef470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f829ef470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:38:02.638911
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/37/image_16062025_07_37_45_9684.jpg', 2), ('/home/nano/Desktop/images/16062025/07/37/image_16062025_07_37_35_10691.jpg', 2), ('/home/nano/Desktop/images/16062025/07/37/image_16062025_07_37_25_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/07/37/image_16062025_07_37_15_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/07/36/image_16062025_07_37_05_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/07/36/image_16062025_07_36_55_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86fe6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86fe6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86fe6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:38:17.097062
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/38/image_16062025_07_38_45_10684.jpg', 2), ('/home/nano/Desktop/images/16062025/07/38/image_16062025_07_38_34_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/07/38/image_16062025_07_38_25_9686.jpg', 2), ('/home/nano/Desktop/images/16062025/07/38/image_16062025_07_38_15_9730.jpg', 2), ('/home/nano/Desktop/images/16062025/07/37/image_16062025_07_38_05_10687.jpg', 2), ('/home/nano/Desktop/images/16062025/07/37/image_16062025_07_37_55_9687.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77cce470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77cce470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77cce470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:38:32.059397
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/38/image_16062025_07_38_45_10684.jpg', 2), ('/home/nano/Desktop/images/16062025/07/38/image_16062025_07_38_34_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/07/38/image_16062025_07_38_25_9686.jpg', 2), ('/home/nano/Desktop/images/16062025/07/38/image_16062025_07_38_15_9730.jpg', 2), ('/home/nano/Desktop/images/16062025/07/37/image_16062025_07_38_05_10687.jpg', 2), ('/home/nano/Desktop/images/16062025/07/37/image_16062025_07_37_55_9687.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f936cb400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f936cb400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f936cb400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:38:47.051196
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/38/image_16062025_07_38_45_10684.jpg', 2), ('/home/nano/Desktop/images/16062025/07/38/image_16062025_07_38_34_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/07/38/image_16062025_07_38_25_9686.jpg', 2), ('/home/nano/Desktop/images/16062025/07/38/image_16062025_07_38_15_9730.jpg', 2), ('/home/nano/Desktop/images/16062025/07/37/image_16062025_07_38_05_10687.jpg', 2), ('/home/nano/Desktop/images/16062025/07/37/image_16062025_07_37_55_9687.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa8fe470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa8fe470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa8fe470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:39:03.230719
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/38/image_16062025_07_38_45_10684.jpg', 2), ('/home/nano/Desktop/images/16062025/07/38/image_16062025_07_38_34_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/07/38/image_16062025_07_38_25_9686.jpg', 2), ('/home/nano/Desktop/images/16062025/07/38/image_16062025_07_38_15_9730.jpg', 2), ('/home/nano/Desktop/images/16062025/07/37/image_16062025_07_38_05_10687.jpg', 2), ('/home/nano/Desktop/images/16062025/07/37/image_16062025_07_37_55_9687.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87ce6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87ce6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87ce6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:39:17.164346
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_39_45_9718.jpg', 2), ('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_39_35_9786.jpg', 2), ('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_39_25_10702.jpg', 2), ('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_39_15_9867.jpg', 2), ('/home/nano/Desktop/images/16062025/07/38/image_16062025_07_39_05_9797.jpg', 2), ('/home/nano/Desktop/images/16062025/07/38/image_16062025_07_38_55_9731.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9157a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9157a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9157a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:39:32.162300
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_39_45_9718.jpg', 2), ('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_39_35_9786.jpg', 2), ('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_39_25_10702.jpg', 2), ('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_39_15_9867.jpg', 2), ('/home/nano/Desktop/images/16062025/07/38/image_16062025_07_39_05_9797.jpg', 2), ('/home/nano/Desktop/images/16062025/07/38/image_16062025_07_38_55_9731.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f962b1400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f962b1400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f962b1400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:39:47.187968
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_39_45_9718.jpg', 2), ('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_39_35_9786.jpg', 2), ('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_39_25_10702.jpg', 2), ('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_39_15_9867.jpg', 2), ('/home/nano/Desktop/images/16062025/07/38/image_16062025_07_39_05_9797.jpg', 2), ('/home/nano/Desktop/images/16062025/07/38/image_16062025_07_38_55_9731.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93d624a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93d624a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93d624a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:40:02.756356
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_39_45_9718.jpg', 2), ('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_39_35_9786.jpg', 2), ('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_39_25_10702.jpg', 2), ('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_39_15_9867.jpg', 2), ('/home/nano/Desktop/images/16062025/07/38/image_16062025_07_39_05_9797.jpg', 2), ('/home/nano/Desktop/images/16062025/07/38/image_16062025_07_38_55_9731.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fe25470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fe25470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fe25470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:40:17.268522
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/40/image_16062025_07_40_35_9701.jpg', 2), ('/home/nano/Desktop/images/16062025/07/40/image_16062025_07_40_25_9824.jpg', 2), ('/home/nano/Desktop/images/16062025/07/40/image_16062025_07_40_15_9847.jpg', 2), ('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_40_05_10760.jpg', 2), ('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_39_54_9756.jpg', 2), ('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_39_45_9718.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad0e3400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad0e3400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad0e3400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:40:32.291555
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/40/image_16062025_07_40_35_9701.jpg', 2), ('/home/nano/Desktop/images/16062025/07/40/image_16062025_07_40_25_9824.jpg', 2), ('/home/nano/Desktop/images/16062025/07/40/image_16062025_07_40_15_9847.jpg', 2), ('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_40_05_10760.jpg', 2), ('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_39_54_9756.jpg', 2), ('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_39_45_9718.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96327470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96327470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96327470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:40:47.253905
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/40/image_16062025_07_40_35_9701.jpg', 2), ('/home/nano/Desktop/images/16062025/07/40/image_16062025_07_40_25_9824.jpg', 2), ('/home/nano/Desktop/images/16062025/07/40/image_16062025_07_40_15_9847.jpg', 2), ('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_40_05_10760.jpg', 2), ('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_39_54_9756.jpg', 2), ('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_39_45_9718.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87d76470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87d76470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87d76470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:41:02.711407
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/40/image_16062025_07_40_35_9701.jpg', 2), ('/home/nano/Desktop/images/16062025/07/40/image_16062025_07_40_25_9824.jpg', 2), ('/home/nano/Desktop/images/16062025/07/40/image_16062025_07_40_15_9847.jpg', 2), ('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_40_05_10760.jpg', 2), ('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_39_54_9756.jpg', 2), ('/home/nano/Desktop/images/16062025/07/39/image_16062025_07_39_45_9718.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88e0c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88e0c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88e0c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:41:17.364210
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/41/image_16062025_07_41_45_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/07/41/image_16062025_07_41_35_10615.jpg', 2), ('/home/nano/Desktop/images/16062025/07/41/image_16062025_07_41_25_9804.jpg', 2), ('/home/nano/Desktop/images/16062025/07/41/image_16062025_07_41_15_9782.jpg', 2), ('/home/nano/Desktop/images/16062025/07/40/image_16062025_07_41_05_9798.jpg', 2), ('/home/nano/Desktop/images/16062025/07/40/image_16062025_07_40_55_10823.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fadf1f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadf1f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadf1f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:41:32.384217
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/41/image_16062025_07_41_45_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/07/41/image_16062025_07_41_35_10615.jpg', 2), ('/home/nano/Desktop/images/16062025/07/41/image_16062025_07_41_25_9804.jpg', 2), ('/home/nano/Desktop/images/16062025/07/41/image_16062025_07_41_15_9782.jpg', 2), ('/home/nano/Desktop/images/16062025/07/40/image_16062025_07_41_05_9798.jpg', 2), ('/home/nano/Desktop/images/16062025/07/40/image_16062025_07_40_55_10823.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ec7b400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ec7b400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ec7b400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:41:47.374070
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/41/image_16062025_07_41_45_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/07/41/image_16062025_07_41_35_10615.jpg', 2), ('/home/nano/Desktop/images/16062025/07/41/image_16062025_07_41_25_9804.jpg', 2), ('/home/nano/Desktop/images/16062025/07/41/image_16062025_07_41_15_9782.jpg', 2), ('/home/nano/Desktop/images/16062025/07/40/image_16062025_07_41_05_9798.jpg', 2), ('/home/nano/Desktop/images/16062025/07/40/image_16062025_07_40_55_10823.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88714470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88714470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88714470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:42:02.937570
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/41/image_16062025_07_41_45_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/07/41/image_16062025_07_41_35_10615.jpg', 2), ('/home/nano/Desktop/images/16062025/07/41/image_16062025_07_41_25_9804.jpg', 2), ('/home/nano/Desktop/images/16062025/07/41/image_16062025_07_41_15_9782.jpg', 2), ('/home/nano/Desktop/images/16062025/07/40/image_16062025_07_41_05_9798.jpg', 2), ('/home/nano/Desktop/images/16062025/07/40/image_16062025_07_40_55_10823.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f871470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f871470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f871470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:42:17.467985
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/42/image_16062025_07_42_45_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/07/42/image_16062025_07_42_35_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/07/42/image_16062025_07_42_25_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/07/42/image_16062025_07_42_15_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/07/41/image_16062025_07_42_05_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/07/41/image_16062025_07_41_54_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f9b6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f9b6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f9b6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:42:32.463666
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/42/image_16062025_07_42_45_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/07/42/image_16062025_07_42_35_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/07/42/image_16062025_07_42_25_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/07/42/image_16062025_07_42_15_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/07/41/image_16062025_07_42_05_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/07/41/image_16062025_07_41_54_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8bb7d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bb7d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bb7d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:42:47.468875
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/42/image_16062025_07_42_45_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/07/42/image_16062025_07_42_35_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/07/42/image_16062025_07_42_25_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/07/42/image_16062025_07_42_15_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/07/41/image_16062025_07_42_05_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/07/41/image_16062025_07_41_54_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf026470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf026470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf026470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:43:03.368178
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/42/image_16062025_07_42_45_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/07/42/image_16062025_07_42_35_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/07/42/image_16062025_07_42_25_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/07/42/image_16062025_07_42_15_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/07/41/image_16062025_07_42_05_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/07/41/image_16062025_07_41_54_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d93c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d93c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d93c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:43:17.676764
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/43/image_16062025_07_43_45_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/07/43/image_16062025_07_43_35_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/07/43/image_16062025_07_43_25_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/07/43/image_16062025_07_43_14_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/07/42/image_16062025_07_43_05_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/07/42/image_16062025_07_42_55_10606.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa446a400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa446a400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa446a400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:43:32.582555
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/43/image_16062025_07_43_45_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/07/43/image_16062025_07_43_35_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/07/43/image_16062025_07_43_25_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/07/43/image_16062025_07_43_14_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/07/42/image_16062025_07_43_05_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/07/42/image_16062025_07_42_55_10606.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5bd4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5bd4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5bd4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:43:47.564095
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/43/image_16062025_07_43_45_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/07/43/image_16062025_07_43_35_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/07/43/image_16062025_07_43_25_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/07/43/image_16062025_07_43_14_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/07/42/image_16062025_07_43_05_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/07/42/image_16062025_07_42_55_10606.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb61de400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb61de400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb61de400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:44:03.597737
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/43/image_16062025_07_43_45_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/07/43/image_16062025_07_43_35_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/07/43/image_16062025_07_43_25_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/07/43/image_16062025_07_43_14_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/07/42/image_16062025_07_43_05_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/07/42/image_16062025_07_42_55_10606.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8668e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8668e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8668e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:44:17.687197
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/44/image_16062025_07_44_45_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/07/44/image_16062025_07_44_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/07/44/image_16062025_07_44_25_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/07/44/image_16062025_07_44_15_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/07/43/image_16062025_07_44_05_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/43/image_16062025_07_43_55_9608.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f3f2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f3f2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f3f2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:44:32.671216
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/44/image_16062025_07_44_45_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/07/44/image_16062025_07_44_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/07/44/image_16062025_07_44_25_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/07/44/image_16062025_07_44_15_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/07/43/image_16062025_07_44_05_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/43/image_16062025_07_43_55_9608.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92274470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92274470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92274470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:44:47.700872
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/44/image_16062025_07_44_45_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/07/44/image_16062025_07_44_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/07/44/image_16062025_07_44_25_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/07/44/image_16062025_07_44_15_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/07/43/image_16062025_07_44_05_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/43/image_16062025_07_43_55_9608.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5aa6400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5aa6400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5aa6400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:45:02.526882
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/44/image_16062025_07_44_45_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/07/44/image_16062025_07_44_34_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/07/44/image_16062025_07_44_25_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/07/44/image_16062025_07_44_15_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/07/43/image_16062025_07_44_05_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/07/43/image_16062025_07_43_55_9608.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4a0a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4a0a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4a0a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:45:16.785100
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/45/image_16062025_07_45_45_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/07/45/image_16062025_07_45_35_10695.jpg', 2), ('/home/nano/Desktop/images/16062025/07/45/image_16062025_07_45_25_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/07/45/image_16062025_07_45_15_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/07/44/image_16062025_07_45_05_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/07/44/image_16062025_07_44_55_9610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb6216470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb6216470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb6216470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:45:31.888861
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/45/image_16062025_07_45_45_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/07/45/image_16062025_07_45_35_10695.jpg', 2), ('/home/nano/Desktop/images/16062025/07/45/image_16062025_07_45_25_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/07/45/image_16062025_07_45_15_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/07/44/image_16062025_07_45_05_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/07/44/image_16062025_07_44_55_9610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3864470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3864470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3864470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:45:46.807441
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/45/image_16062025_07_45_45_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/07/45/image_16062025_07_45_35_10695.jpg', 2), ('/home/nano/Desktop/images/16062025/07/45/image_16062025_07_45_25_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/07/45/image_16062025_07_45_15_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/07/44/image_16062025_07_45_05_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/07/44/image_16062025_07_44_55_9610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3647470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3647470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3647470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:46:02.367478
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/45/image_16062025_07_45_45_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/07/45/image_16062025_07_45_35_10695.jpg', 2), ('/home/nano/Desktop/images/16062025/07/45/image_16062025_07_45_25_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/07/45/image_16062025_07_45_15_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/07/44/image_16062025_07_45_05_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/07/44/image_16062025_07_44_55_9610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87084470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87084470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87084470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:46:16.886065
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/46/image_16062025_07_46_45_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/07/46/image_16062025_07_46_35_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/07/46/image_16062025_07_46_25_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/07/46/image_16062025_07_46_15_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/07/45/image_16062025_07_46_05_10662.jpg', 2), ('/home/nano/Desktop/images/16062025/07/45/image_16062025_07_45_55_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f802cb470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f802cb470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f802cb470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:46:31.907285
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/46/image_16062025_07_46_45_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/07/46/image_16062025_07_46_35_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/07/46/image_16062025_07_46_25_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/07/46/image_16062025_07_46_15_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/07/45/image_16062025_07_46_05_10662.jpg', 2), ('/home/nano/Desktop/images/16062025/07/45/image_16062025_07_45_55_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9806a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9806a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9806a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:46:46.946822
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/46/image_16062025_07_46_45_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/07/46/image_16062025_07_46_35_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/07/46/image_16062025_07_46_25_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/07/46/image_16062025_07_46_15_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/07/45/image_16062025_07_46_05_10662.jpg', 2), ('/home/nano/Desktop/images/16062025/07/45/image_16062025_07_45_55_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a2a6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a2a6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a2a6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:47:02.641856
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/46/image_16062025_07_46_45_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/07/46/image_16062025_07_46_35_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/07/46/image_16062025_07_46_25_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/07/46/image_16062025_07_46_15_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/07/45/image_16062025_07_46_05_10662.jpg', 2), ('/home/nano/Desktop/images/16062025/07/45/image_16062025_07_45_55_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83fb1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83fb1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83fb1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:47:17.120040
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/47/image_16062025_07_47_45_9666.jpg', 2), ('/home/nano/Desktop/images/16062025/07/47/image_16062025_07_47_35_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/07/47/image_16062025_07_47_24_9662.jpg', 2), ('/home/nano/Desktop/images/16062025/07/47/image_16062025_07_47_15_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/07/46/image_16062025_07_47_05_10678.jpg', 2), ('/home/nano/Desktop/images/16062025/07/46/image_16062025_07_46_54_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad509470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad509470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad509470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:47:32.032425
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/47/image_16062025_07_47_45_9666.jpg', 2), ('/home/nano/Desktop/images/16062025/07/47/image_16062025_07_47_35_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/07/47/image_16062025_07_47_24_9662.jpg', 2), ('/home/nano/Desktop/images/16062025/07/47/image_16062025_07_47_15_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/07/46/image_16062025_07_47_05_10678.jpg', 2), ('/home/nano/Desktop/images/16062025/07/46/image_16062025_07_46_54_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6e45470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6e45470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6e45470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:47:47.060328
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/47/image_16062025_07_47_45_9666.jpg', 2), ('/home/nano/Desktop/images/16062025/07/47/image_16062025_07_47_35_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/07/47/image_16062025_07_47_24_9662.jpg', 2), ('/home/nano/Desktop/images/16062025/07/47/image_16062025_07_47_15_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/07/46/image_16062025_07_47_05_10678.jpg', 2), ('/home/nano/Desktop/images/16062025/07/46/image_16062025_07_46_54_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f1c7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f1c7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f1c7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:48:02.687322
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/47/image_16062025_07_47_45_9666.jpg', 2), ('/home/nano/Desktop/images/16062025/07/47/image_16062025_07_47_35_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/07/47/image_16062025_07_47_24_9662.jpg', 2), ('/home/nano/Desktop/images/16062025/07/47/image_16062025_07_47_15_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/07/46/image_16062025_07_47_05_10678.jpg', 2), ('/home/nano/Desktop/images/16062025/07/46/image_16062025_07_46_54_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9337a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9337a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9337a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:48:17.153263
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/48/image_16062025_07_48_45_9743.jpg', 2), ('/home/nano/Desktop/images/16062025/07/48/image_16062025_07_48_35_9722.jpg', 2), ('/home/nano/Desktop/images/16062025/07/48/image_16062025_07_48_25_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/07/48/image_16062025_07_48_15_9687.jpg', 2), ('/home/nano/Desktop/images/16062025/07/47/image_16062025_07_48_05_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/07/47/image_16062025_07_47_55_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94296470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94296470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94296470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:48:32.192632
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/48/image_16062025_07_48_45_9743.jpg', 2), ('/home/nano/Desktop/images/16062025/07/48/image_16062025_07_48_35_9722.jpg', 2), ('/home/nano/Desktop/images/16062025/07/48/image_16062025_07_48_25_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/07/48/image_16062025_07_48_15_9687.jpg', 2), ('/home/nano/Desktop/images/16062025/07/47/image_16062025_07_48_05_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/07/47/image_16062025_07_47_55_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f09d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f09d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f09d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:48:47.154851
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/48/image_16062025_07_48_45_9743.jpg', 2), ('/home/nano/Desktop/images/16062025/07/48/image_16062025_07_48_35_9722.jpg', 2), ('/home/nano/Desktop/images/16062025/07/48/image_16062025_07_48_25_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/07/48/image_16062025_07_48_15_9687.jpg', 2), ('/home/nano/Desktop/images/16062025/07/47/image_16062025_07_48_05_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/07/47/image_16062025_07_47_55_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c106470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c106470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c106470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:49:03.373695
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/48/image_16062025_07_48_45_9743.jpg', 2), ('/home/nano/Desktop/images/16062025/07/48/image_16062025_07_48_35_9722.jpg', 2), ('/home/nano/Desktop/images/16062025/07/48/image_16062025_07_48_25_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/07/48/image_16062025_07_48_15_9687.jpg', 2), ('/home/nano/Desktop/images/16062025/07/47/image_16062025_07_48_05_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/07/47/image_16062025_07_47_55_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89626400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89626400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89626400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:49:17.290892
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/49/image_16062025_07_49_45_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/07/49/image_16062025_07_49_35_10695.jpg', 2), ('/home/nano/Desktop/images/16062025/07/49/image_16062025_07_49_25_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/07/49/image_16062025_07_49_15_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/07/48/image_16062025_07_49_05_10777.jpg', 2), ('/home/nano/Desktop/images/16062025/07/48/image_16062025_07_48_55_9749.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76deb470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76deb470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76deb470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:49:32.291684
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/49/image_16062025_07_49_45_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/07/49/image_16062025_07_49_35_10695.jpg', 2), ('/home/nano/Desktop/images/16062025/07/49/image_16062025_07_49_25_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/07/49/image_16062025_07_49_15_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/07/48/image_16062025_07_49_05_10777.jpg', 2), ('/home/nano/Desktop/images/16062025/07/48/image_16062025_07_48_55_9749.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa42c5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa42c5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa42c5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:49:47.288339
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/49/image_16062025_07_49_45_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/07/49/image_16062025_07_49_35_10695.jpg', 2), ('/home/nano/Desktop/images/16062025/07/49/image_16062025_07_49_25_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/07/49/image_16062025_07_49_15_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/07/48/image_16062025_07_49_05_10777.jpg', 2), ('/home/nano/Desktop/images/16062025/07/48/image_16062025_07_48_55_9749.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98481470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98481470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98481470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:50:02.969702
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/49/image_16062025_07_49_45_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/07/49/image_16062025_07_49_35_10695.jpg', 2), ('/home/nano/Desktop/images/16062025/07/49/image_16062025_07_49_25_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/07/49/image_16062025_07_49_15_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/07/48/image_16062025_07_49_05_10777.jpg', 2), ('/home/nano/Desktop/images/16062025/07/48/image_16062025_07_48_55_9749.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad079470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad079470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad079470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:50:17.396085
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/50/image_16062025_07_50_45_10657.jpg', 2), ('/home/nano/Desktop/images/16062025/07/50/image_16062025_07_50_34_9707.jpg', 2), ('/home/nano/Desktop/images/16062025/07/50/image_16062025_07_50_25_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/07/50/image_16062025_07_50_15_10755.jpg', 2), ('/home/nano/Desktop/images/16062025/07/49/image_16062025_07_50_04_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/07/49/image_16062025_07_49_55_9744.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91b7b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91b7b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91b7b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:50:32.365595
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/50/image_16062025_07_50_45_10657.jpg', 2), ('/home/nano/Desktop/images/16062025/07/50/image_16062025_07_50_34_9707.jpg', 2), ('/home/nano/Desktop/images/16062025/07/50/image_16062025_07_50_25_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/07/50/image_16062025_07_50_15_10755.jpg', 2), ('/home/nano/Desktop/images/16062025/07/49/image_16062025_07_50_04_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/07/49/image_16062025_07_49_55_9744.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad841470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad841470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad841470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:50:47.361712
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/50/image_16062025_07_50_45_10657.jpg', 2), ('/home/nano/Desktop/images/16062025/07/50/image_16062025_07_50_34_9707.jpg', 2), ('/home/nano/Desktop/images/16062025/07/50/image_16062025_07_50_25_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/07/50/image_16062025_07_50_15_10755.jpg', 2), ('/home/nano/Desktop/images/16062025/07/49/image_16062025_07_50_04_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/07/49/image_16062025_07_49_55_9744.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2269400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2269400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2269400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:51:03.191819
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/50/image_16062025_07_50_45_10657.jpg', 2), ('/home/nano/Desktop/images/16062025/07/50/image_16062025_07_50_34_9707.jpg', 2), ('/home/nano/Desktop/images/16062025/07/50/image_16062025_07_50_25_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/07/50/image_16062025_07_50_15_10755.jpg', 2), ('/home/nano/Desktop/images/16062025/07/49/image_16062025_07_50_04_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/07/49/image_16062025_07_49_55_9744.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1a7b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1a7b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1a7b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:51:17.513452
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/51/image_16062025_07_51_45_10700.jpg', 2), ('/home/nano/Desktop/images/16062025/07/51/image_16062025_07_51_34_9656.jpg', 2), ('/home/nano/Desktop/images/16062025/07/51/image_16062025_07_51_25_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/07/51/image_16062025_07_51_15_10677.jpg', 2), ('/home/nano/Desktop/images/16062025/07/50/image_16062025_07_51_04_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/07/50/image_16062025_07_50_55_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f779f6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f779f6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f779f6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:51:32.474657
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/51/image_16062025_07_51_45_10700.jpg', 2), ('/home/nano/Desktop/images/16062025/07/51/image_16062025_07_51_34_9656.jpg', 2), ('/home/nano/Desktop/images/16062025/07/51/image_16062025_07_51_25_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/07/51/image_16062025_07_51_15_10677.jpg', 2), ('/home/nano/Desktop/images/16062025/07/50/image_16062025_07_51_04_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/07/50/image_16062025_07_50_55_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f361470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f361470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f361470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:51:47.474840
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/51/image_16062025_07_51_45_10700.jpg', 2), ('/home/nano/Desktop/images/16062025/07/51/image_16062025_07_51_34_9656.jpg', 2), ('/home/nano/Desktop/images/16062025/07/51/image_16062025_07_51_25_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/07/51/image_16062025_07_51_15_10677.jpg', 2), ('/home/nano/Desktop/images/16062025/07/50/image_16062025_07_51_04_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/07/50/image_16062025_07_50_55_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83c97470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83c97470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83c97470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:52:03.090149
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/51/image_16062025_07_51_45_10700.jpg', 2), ('/home/nano/Desktop/images/16062025/07/51/image_16062025_07_51_34_9656.jpg', 2), ('/home/nano/Desktop/images/16062025/07/51/image_16062025_07_51_25_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/07/51/image_16062025_07_51_15_10677.jpg', 2), ('/home/nano/Desktop/images/16062025/07/50/image_16062025_07_51_04_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/07/50/image_16062025_07_50_55_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8963c400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8963c400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8963c400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:52:17.546751
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/52/image_16062025_07_52_45_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/07/52/image_16062025_07_52_35_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/07/52/image_16062025_07_52_25_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/07/52/image_16062025_07_52_15_10669.jpg', 2), ('/home/nano/Desktop/images/16062025/07/51/image_16062025_07_52_04_9678.jpg', 2), ('/home/nano/Desktop/images/16062025/07/51/image_16062025_07_51_55_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90787470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90787470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90787470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:52:32.546681
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/52/image_16062025_07_52_45_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/07/52/image_16062025_07_52_35_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/07/52/image_16062025_07_52_25_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/07/52/image_16062025_07_52_15_10669.jpg', 2), ('/home/nano/Desktop/images/16062025/07/51/image_16062025_07_52_04_9678.jpg', 2), ('/home/nano/Desktop/images/16062025/07/51/image_16062025_07_51_55_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9673e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9673e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9673e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:52:47.572424
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/52/image_16062025_07_52_45_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/07/52/image_16062025_07_52_35_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/07/52/image_16062025_07_52_25_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/07/52/image_16062025_07_52_15_10669.jpg', 2), ('/home/nano/Desktop/images/16062025/07/51/image_16062025_07_52_04_9678.jpg', 2), ('/home/nano/Desktop/images/16062025/07/51/image_16062025_07_51_55_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83c08470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83c08470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83c08470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:53:03.160406
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/52/image_16062025_07_52_45_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/07/52/image_16062025_07_52_35_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/07/52/image_16062025_07_52_25_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/07/52/image_16062025_07_52_15_10669.jpg', 2), ('/home/nano/Desktop/images/16062025/07/51/image_16062025_07_52_04_9678.jpg', 2), ('/home/nano/Desktop/images/16062025/07/51/image_16062025_07_51_55_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb32df400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb32df400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb32df400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:53:17.683690
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/53/image_16062025_07_53_45_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/07/53/image_16062025_07_53_35_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/07/53/image_16062025_07_53_25_9648.jpg', 2), ('/home/nano/Desktop/images/16062025/07/53/image_16062025_07_53_15_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/07/52/image_16062025_07_53_05_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/07/52/image_16062025_07_52_55_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90e4c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90e4c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90e4c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:53:32.664708
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/53/image_16062025_07_53_45_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/07/53/image_16062025_07_53_35_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/07/53/image_16062025_07_53_25_9648.jpg', 2), ('/home/nano/Desktop/images/16062025/07/53/image_16062025_07_53_15_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/07/52/image_16062025_07_53_05_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/07/52/image_16062025_07_52_55_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f942a7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f942a7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f942a7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:53:47.660996
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/53/image_16062025_07_53_45_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/07/53/image_16062025_07_53_35_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/07/53/image_16062025_07_53_25_9648.jpg', 2), ('/home/nano/Desktop/images/16062025/07/53/image_16062025_07_53_15_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/07/52/image_16062025_07_53_05_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/07/52/image_16062025_07_52_55_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78ea3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78ea3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78ea3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:54:02.689407
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/53/image_16062025_07_53_45_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/07/53/image_16062025_07_53_35_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/07/53/image_16062025_07_53_25_9648.jpg', 2), ('/home/nano/Desktop/images/16062025/07/53/image_16062025_07_53_15_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/07/52/image_16062025_07_53_05_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/07/52/image_16062025_07_52_55_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f03e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f03e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f03e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:54:16.767745
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/54/image_16062025_07_54_45_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/07/54/image_16062025_07_54_35_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/07/54/image_16062025_07_54_25_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/07/54/image_16062025_07_54_15_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/07/53/image_16062025_07_54_05_10675.jpg', 2), ('/home/nano/Desktop/images/16062025/07/53/image_16062025_07_53_55_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92d86400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92d86400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92d86400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:54:31.772848
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/54/image_16062025_07_54_45_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/07/54/image_16062025_07_54_35_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/07/54/image_16062025_07_54_25_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/07/54/image_16062025_07_54_15_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/07/53/image_16062025_07_54_05_10675.jpg', 2), ('/home/nano/Desktop/images/16062025/07/53/image_16062025_07_53_55_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a1de470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a1de470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a1de470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:54:46.868022
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/54/image_16062025_07_54_45_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/07/54/image_16062025_07_54_35_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/07/54/image_16062025_07_54_25_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/07/54/image_16062025_07_54_15_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/07/53/image_16062025_07_54_05_10675.jpg', 2), ('/home/nano/Desktop/images/16062025/07/53/image_16062025_07_53_55_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9269c400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9269c400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9269c400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:55:02.673920
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/54/image_16062025_07_54_45_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/07/54/image_16062025_07_54_35_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/07/54/image_16062025_07_54_25_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/07/54/image_16062025_07_54_15_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/07/53/image_16062025_07_54_05_10675.jpg', 2), ('/home/nano/Desktop/images/16062025/07/53/image_16062025_07_53_55_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95249470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95249470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95249470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:55:16.965552
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/55/image_16062025_07_55_45_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/07/55/image_16062025_07_55_35_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/07/55/image_16062025_07_55_25_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/07/55/image_16062025_07_55_15_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/07/54/image_16062025_07_55_05_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/07/54/image_16062025_07_54_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa64ac470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa64ac470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa64ac470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:55:32.002626
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/55/image_16062025_07_55_45_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/07/55/image_16062025_07_55_35_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/07/55/image_16062025_07_55_25_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/07/55/image_16062025_07_55_15_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/07/54/image_16062025_07_55_05_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/07/54/image_16062025_07_54_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a68d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a68d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a68d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:55:47.004459
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/55/image_16062025_07_55_45_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/07/55/image_16062025_07_55_35_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/07/55/image_16062025_07_55_25_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/07/55/image_16062025_07_55_15_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/07/54/image_16062025_07_55_05_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/07/54/image_16062025_07_54_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86e9b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86e9b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86e9b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:56:02.507676
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/55/image_16062025_07_55_45_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/07/55/image_16062025_07_55_35_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/07/55/image_16062025_07_55_25_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/07/55/image_16062025_07_55_15_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/07/54/image_16062025_07_55_05_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/07/54/image_16062025_07_54_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84fd8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84fd8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84fd8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:56:17.104367
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/56/image_16062025_07_56_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/07/56/image_16062025_07_56_35_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/07/56/image_16062025_07_56_25_10620.jpg', 2), ('/home/nano/Desktop/images/16062025/07/56/image_16062025_07_56_15_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/07/55/image_16062025_07_56_05_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/07/55/image_16062025_07_55_55_10654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1ef0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1ef0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1ef0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:56:32.070853
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/56/image_16062025_07_56_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/07/56/image_16062025_07_56_35_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/07/56/image_16062025_07_56_25_10620.jpg', 2), ('/home/nano/Desktop/images/16062025/07/56/image_16062025_07_56_15_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/07/55/image_16062025_07_56_05_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/07/55/image_16062025_07_55_55_10654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9826e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9826e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9826e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:56:47.077443
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/56/image_16062025_07_56_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/07/56/image_16062025_07_56_35_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/07/56/image_16062025_07_56_25_10620.jpg', 2), ('/home/nano/Desktop/images/16062025/07/56/image_16062025_07_56_15_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/07/55/image_16062025_07_56_05_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/07/55/image_16062025_07_55_55_10654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f7ee470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f7ee470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f7ee470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:57:02.876555
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/56/image_16062025_07_56_44_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/07/56/image_16062025_07_56_35_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/07/56/image_16062025_07_56_25_10620.jpg', 2), ('/home/nano/Desktop/images/16062025/07/56/image_16062025_07_56_15_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/07/55/image_16062025_07_56_05_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/07/55/image_16062025_07_55_55_10654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f812470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f812470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f812470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:57:17.268350
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/57/image_16062025_07_57_45_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/07/57/image_16062025_07_57_35_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/07/57/image_16062025_07_57_25_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/07/57/image_16062025_07_57_14_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/07/56/image_16062025_07_57_05_9653.jpg', 2), ('/home/nano/Desktop/images/16062025/07/56/image_16062025_07_56_55_10658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93b66470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93b66470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93b66470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:57:32.194812
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/57/image_16062025_07_57_45_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/07/57/image_16062025_07_57_35_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/07/57/image_16062025_07_57_25_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/07/57/image_16062025_07_57_14_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/07/56/image_16062025_07_57_05_9653.jpg', 2), ('/home/nano/Desktop/images/16062025/07/56/image_16062025_07_56_55_10658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e927470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e927470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e927470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:57:47.198715
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/57/image_16062025_07_57_45_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/07/57/image_16062025_07_57_35_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/07/57/image_16062025_07_57_25_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/07/57/image_16062025_07_57_14_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/07/56/image_16062025_07_57_05_9653.jpg', 2), ('/home/nano/Desktop/images/16062025/07/56/image_16062025_07_56_55_10658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb476f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb476f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb476f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:59:03.485284
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/58/image_16062025_07_58_45_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/07/58/image_16062025_07_58_34_9598.jpg', 2), ('/home/nano/Desktop/images/16062025/07/58/image_16062025_07_58_25_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/07/58/image_16062025_07_58_15_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/07/57/image_16062025_07_58_05_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/07/57/image_16062025_07_57_55_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0f48470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0f48470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0f48470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:59:17.595593
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/59/image_16062025_07_59_45_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/07/59/image_16062025_07_59_35_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/07/59/image_16062025_07_59_25_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/07/59/image_16062025_07_59_15_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/07/58/image_16062025_07_59_05_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/07/58/image_16062025_07_58_55_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4b62470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4b62470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4b62470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:59:32.671565
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/59/image_16062025_07_59_45_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/07/59/image_16062025_07_59_35_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/07/59/image_16062025_07_59_25_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/07/59/image_16062025_07_59_15_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/07/58/image_16062025_07_59_05_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/07/58/image_16062025_07_58_55_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f811df400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f811df400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f811df400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 07:59:47.629634
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/59/image_16062025_07_59_45_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/07/59/image_16062025_07_59_35_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/07/59/image_16062025_07_59_25_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/07/59/image_16062025_07_59_15_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/07/58/image_16062025_07_59_05_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/07/58/image_16062025_07_58_55_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94273470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94273470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94273470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:00:03.206856
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/07/59/image_16062025_07_59_45_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/07/59/image_16062025_07_59_35_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/07/59/image_16062025_07_59_25_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/07/59/image_16062025_07_59_15_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/07/58/image_16062025_07_59_05_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/07/58/image_16062025_07_58_55_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89ede4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89ede4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89ede4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:00:17.719518
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/00/image_16062025_08_00_45_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/08/00/image_16062025_08_00_35_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/08/00/image_16062025_08_00_24_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/08/00/image_16062025_08_00_15_9755.jpg', 2), ('/home/nano/Desktop/images/16062025/07/59/image_16062025_08_00_05_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/07/59/image_16062025_07_59_54_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8652a400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8652a400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8652a400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:00:32.722481
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/00/image_16062025_08_00_45_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/08/00/image_16062025_08_00_35_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/08/00/image_16062025_08_00_24_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/08/00/image_16062025_08_00_15_9755.jpg', 2), ('/home/nano/Desktop/images/16062025/07/59/image_16062025_08_00_05_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/07/59/image_16062025_07_59_54_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96248470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96248470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96248470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:00:47.745228
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/00/image_16062025_08_00_45_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/08/00/image_16062025_08_00_35_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/08/00/image_16062025_08_00_24_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/08/00/image_16062025_08_00_15_9755.jpg', 2), ('/home/nano/Desktop/images/16062025/07/59/image_16062025_08_00_05_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/07/59/image_16062025_07_59_54_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90d65470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90d65470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90d65470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:01:02.479001
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/00/image_16062025_08_00_45_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/08/00/image_16062025_08_00_35_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/08/00/image_16062025_08_00_24_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/08/00/image_16062025_08_00_15_9755.jpg', 2), ('/home/nano/Desktop/images/16062025/07/59/image_16062025_08_00_05_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/07/59/image_16062025_07_59_54_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96603470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96603470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96603470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:01:16.851304
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/01/image_16062025_08_01_45_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/08/01/image_16062025_08_01_35_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/08/01/image_16062025_08_01_25_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/08/01/image_16062025_08_01_15_9666.jpg', 2), ('/home/nano/Desktop/images/16062025/08/00/image_16062025_08_01_05_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/08/00/image_16062025_08_00_54_9657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92939470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92939470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92939470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:01:31.851797
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/01/image_16062025_08_01_45_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/08/01/image_16062025_08_01_35_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/08/01/image_16062025_08_01_25_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/08/01/image_16062025_08_01_15_9666.jpg', 2), ('/home/nano/Desktop/images/16062025/08/00/image_16062025_08_01_05_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/08/00/image_16062025_08_00_54_9657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8841c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8841c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8841c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:01:46.869751
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/01/image_16062025_08_01_45_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/08/01/image_16062025_08_01_35_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/08/01/image_16062025_08_01_25_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/08/01/image_16062025_08_01_15_9666.jpg', 2), ('/home/nano/Desktop/images/16062025/08/00/image_16062025_08_01_05_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/08/00/image_16062025_08_00_54_9657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c505470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c505470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c505470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:02:02.375938
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/01/image_16062025_08_01_45_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/08/01/image_16062025_08_01_35_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/08/01/image_16062025_08_01_25_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/08/01/image_16062025_08_01_15_9666.jpg', 2), ('/home/nano/Desktop/images/16062025/08/00/image_16062025_08_01_05_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/08/00/image_16062025_08_00_54_9657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9163f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9163f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9163f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:02:16.990748
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/02/image_16062025_08_02_44_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/08/02/image_16062025_08_02_35_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/08/02/image_16062025_08_02_25_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/08/02/image_16062025_08_02_14_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/08/01/image_16062025_08_02_05_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/08/01/image_16062025_08_01_55_10668.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7c96470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7c96470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7c96470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:02:31.954567
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/02/image_16062025_08_02_44_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/08/02/image_16062025_08_02_35_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/08/02/image_16062025_08_02_25_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/08/02/image_16062025_08_02_14_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/08/01/image_16062025_08_02_05_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/08/01/image_16062025_08_01_55_10668.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e6e4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e6e4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e6e4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:02:46.953634
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/02/image_16062025_08_02_44_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/08/02/image_16062025_08_02_35_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/08/02/image_16062025_08_02_25_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/08/02/image_16062025_08_02_14_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/08/01/image_16062025_08_02_05_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/08/01/image_16062025_08_01_55_10668.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1d80470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1d80470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1d80470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:03:02.910298
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/02/image_16062025_08_02_44_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/08/02/image_16062025_08_02_35_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/08/02/image_16062025_08_02_25_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/08/02/image_16062025_08_02_14_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/08/01/image_16062025_08_02_05_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/08/01/image_16062025_08_01_55_10668.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fffd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fffd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fffd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:03:17.112143
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/03/image_16062025_08_03_45_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/08/03/image_16062025_08_03_35_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/08/03/image_16062025_08_03_25_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/08/03/image_16062025_08_03_15_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/08/02/image_16062025_08_03_05_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/08/02/image_16062025_08_02_55_10660.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f806c1470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f806c1470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f806c1470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:03:32.078239
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/03/image_16062025_08_03_45_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/08/03/image_16062025_08_03_35_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/08/03/image_16062025_08_03_25_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/08/03/image_16062025_08_03_15_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/08/02/image_16062025_08_03_05_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/08/02/image_16062025_08_02_55_10660.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fc85470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fc85470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fc85470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:03:47.064970
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/03/image_16062025_08_03_45_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/08/03/image_16062025_08_03_35_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/08/03/image_16062025_08_03_25_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/08/03/image_16062025_08_03_15_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/08/02/image_16062025_08_03_05_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/08/02/image_16062025_08_02_55_10660.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e121470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e121470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e121470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:04:03.009962
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/03/image_16062025_08_03_45_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/08/03/image_16062025_08_03_35_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/08/03/image_16062025_08_03_25_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/08/03/image_16062025_08_03_15_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/08/02/image_16062025_08_03_05_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/08/02/image_16062025_08_02_55_10660.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2de2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2de2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2de2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:04:17.252926
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/04/image_16062025_08_04_45_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/08/04/image_16062025_08_04_34_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/08/04/image_16062025_08_04_25_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/08/04/image_16062025_08_04_15_10667.jpg', 2), ('/home/nano/Desktop/images/16062025/08/03/image_16062025_08_04_05_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/08/03/image_16062025_08_03_55_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f848cf470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f848cf470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f848cf470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:04:32.225472
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/04/image_16062025_08_04_45_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/08/04/image_16062025_08_04_34_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/08/04/image_16062025_08_04_25_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/08/04/image_16062025_08_04_15_10667.jpg', 2), ('/home/nano/Desktop/images/16062025/08/03/image_16062025_08_04_05_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/08/03/image_16062025_08_03_55_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a7ef400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a7ef400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a7ef400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:04:47.137230
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/04/image_16062025_08_04_45_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/08/04/image_16062025_08_04_34_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/08/04/image_16062025_08_04_25_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/08/04/image_16062025_08_04_15_10667.jpg', 2), ('/home/nano/Desktop/images/16062025/08/03/image_16062025_08_04_05_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/08/03/image_16062025_08_03_55_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83f40470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83f40470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83f40470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:05:02.866537
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/04/image_16062025_08_04_45_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/08/04/image_16062025_08_04_34_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/08/04/image_16062025_08_04_25_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/08/04/image_16062025_08_04_15_10667.jpg', 2), ('/home/nano/Desktop/images/16062025/08/03/image_16062025_08_04_05_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/08/03/image_16062025_08_03_55_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b26e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b26e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b26e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:05:17.255963
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/05/image_16062025_08_05_45_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/08/05/image_16062025_08_05_35_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/08/05/image_16062025_08_05_25_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/08/05/image_16062025_08_05_15_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/08/04/image_16062025_08_05_05_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/08/04/image_16062025_08_04_55_9630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa713a400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa713a400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa713a400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:05:32.255775
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/05/image_16062025_08_05_45_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/08/05/image_16062025_08_05_35_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/08/05/image_16062025_08_05_25_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/08/05/image_16062025_08_05_15_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/08/04/image_16062025_08_05_05_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/08/04/image_16062025_08_04_55_9630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bc04470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bc04470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bc04470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:05:47.242964
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/05/image_16062025_08_05_45_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/08/05/image_16062025_08_05_35_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/08/05/image_16062025_08_05_25_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/08/05/image_16062025_08_05_15_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/08/04/image_16062025_08_05_05_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/08/04/image_16062025_08_04_55_9630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac074470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac074470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac074470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:06:02.903793
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/05/image_16062025_08_05_45_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/08/05/image_16062025_08_05_35_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/08/05/image_16062025_08_05_25_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/08/05/image_16062025_08_05_15_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/08/04/image_16062025_08_05_05_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/08/04/image_16062025_08_04_55_9630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98c49400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98c49400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98c49400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:06:17.429080
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_06_45_9692.jpg', 2), ('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_06_35_10703.jpg', 2), ('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_06_25_9696.jpg', 2), ('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_06_15_9706.jpg', 2), ('/home/nano/Desktop/images/16062025/08/05/image_16062025_08_06_05_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/08/05/image_16062025_08_05_55_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab9de470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab9de470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab9de470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:06:32.340773
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_06_45_9692.jpg', 2), ('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_06_35_10703.jpg', 2), ('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_06_25_9696.jpg', 2), ('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_06_15_9706.jpg', 2), ('/home/nano/Desktop/images/16062025/08/05/image_16062025_08_06_05_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/08/05/image_16062025_08_05_55_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86b4f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86b4f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86b4f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:06:47.349782
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_06_45_9692.jpg', 2), ('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_06_35_10703.jpg', 2), ('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_06_25_9696.jpg', 2), ('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_06_15_9706.jpg', 2), ('/home/nano/Desktop/images/16062025/08/05/image_16062025_08_06_05_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/08/05/image_16062025_08_05_55_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f445470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f445470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f445470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:07:03.159347
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_06_45_9692.jpg', 2), ('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_06_35_10703.jpg', 2), ('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_06_25_9696.jpg', 2), ('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_06_15_9706.jpg', 2), ('/home/nano/Desktop/images/16062025/08/05/image_16062025_08_06_05_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/08/05/image_16062025_08_05_55_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f888fd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f888fd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f888fd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:07:17.457256
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/07/image_16062025_08_07_45_10750.jpg', 2), ('/home/nano/Desktop/images/16062025/08/07/image_16062025_08_07_35_9732.jpg', 2), ('/home/nano/Desktop/images/16062025/08/07/image_16062025_08_07_25_9763.jpg', 2), ('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_07_04_9681.jpg', 2), ('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_06_55_9700.jpg', 2), ('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_06_45_9692.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf72b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf72b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf72b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:07:32.435957
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/07/image_16062025_08_07_45_10750.jpg', 2), ('/home/nano/Desktop/images/16062025/08/07/image_16062025_08_07_35_9732.jpg', 2), ('/home/nano/Desktop/images/16062025/08/07/image_16062025_08_07_25_9763.jpg', 2), ('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_07_04_9681.jpg', 2), ('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_06_55_9700.jpg', 2), ('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_06_45_9692.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3014470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3014470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3014470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:07:47.445576
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/07/image_16062025_08_07_45_10750.jpg', 2), ('/home/nano/Desktop/images/16062025/08/07/image_16062025_08_07_35_9732.jpg', 2), ('/home/nano/Desktop/images/16062025/08/07/image_16062025_08_07_25_9763.jpg', 2), ('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_07_04_9681.jpg', 2), ('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_06_55_9700.jpg', 2), ('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_06_45_9692.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3119470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3119470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3119470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:08:03.169115
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/07/image_16062025_08_07_45_10750.jpg', 2), ('/home/nano/Desktop/images/16062025/08/07/image_16062025_08_07_35_9732.jpg', 2), ('/home/nano/Desktop/images/16062025/08/07/image_16062025_08_07_25_9763.jpg', 2), ('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_07_04_9681.jpg', 2), ('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_06_55_9700.jpg', 2), ('/home/nano/Desktop/images/16062025/08/06/image_16062025_08_06_45_9692.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92238470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92238470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92238470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:08:17.543011
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_08_45_9700.jpg', 2), ('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_08_35_10734.jpg', 2), ('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_08_24_9722.jpg', 2), ('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_08_15_9711.jpg', 2), ('/home/nano/Desktop/images/16062025/08/07/image_16062025_08_08_05_9817.jpg', 2), ('/home/nano/Desktop/images/16062025/08/07/image_16062025_08_07_55_9764.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7dab5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dab5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dab5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:08:32.562803
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_08_45_9700.jpg', 2), ('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_08_35_10734.jpg', 2), ('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_08_24_9722.jpg', 2), ('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_08_15_9711.jpg', 2), ('/home/nano/Desktop/images/16062025/08/07/image_16062025_08_08_05_9817.jpg', 2), ('/home/nano/Desktop/images/16062025/08/07/image_16062025_08_07_55_9764.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ac57470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ac57470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ac57470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:08:47.539193
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_08_45_9700.jpg', 2), ('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_08_35_10734.jpg', 2), ('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_08_24_9722.jpg', 2), ('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_08_15_9711.jpg', 2), ('/home/nano/Desktop/images/16062025/08/07/image_16062025_08_08_05_9817.jpg', 2), ('/home/nano/Desktop/images/16062025/08/07/image_16062025_08_07_55_9764.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f788b4470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f788b4470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f788b4470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:09:03.691736
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_08_45_9700.jpg', 2), ('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_08_35_10734.jpg', 2), ('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_08_24_9722.jpg', 2), ('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_08_15_9711.jpg', 2), ('/home/nano/Desktop/images/16062025/08/07/image_16062025_08_08_05_9817.jpg', 2), ('/home/nano/Desktop/images/16062025/08/07/image_16062025_08_07_55_9764.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b4a6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b4a6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b4a6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:09:17.655272
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/09/image_16062025_08_09_45_9705.jpg', 2), ('/home/nano/Desktop/images/16062025/08/09/image_16062025_08_09_35_10731.jpg', 2), ('/home/nano/Desktop/images/16062025/08/09/image_16062025_08_09_25_9695.jpg', 2), ('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_09_05_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_08_55_9706.jpg', 2), ('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_08_45_9700.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3799470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3799470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3799470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:09:32.684137
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/09/image_16062025_08_09_45_9705.jpg', 2), ('/home/nano/Desktop/images/16062025/08/09/image_16062025_08_09_35_10731.jpg', 2), ('/home/nano/Desktop/images/16062025/08/09/image_16062025_08_09_25_9695.jpg', 2), ('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_09_05_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_08_55_9706.jpg', 2), ('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_08_45_9700.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f965c1400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f965c1400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f965c1400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:09:47.649360
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/09/image_16062025_08_09_45_9705.jpg', 2), ('/home/nano/Desktop/images/16062025/08/09/image_16062025_08_09_35_10731.jpg', 2), ('/home/nano/Desktop/images/16062025/08/09/image_16062025_08_09_25_9695.jpg', 2), ('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_09_05_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_08_55_9706.jpg', 2), ('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_08_45_9700.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87f12470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87f12470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87f12470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:10:03.218062
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/09/image_16062025_08_09_45_9705.jpg', 2), ('/home/nano/Desktop/images/16062025/08/09/image_16062025_08_09_35_10731.jpg', 2), ('/home/nano/Desktop/images/16062025/08/09/image_16062025_08_09_25_9695.jpg', 2), ('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_09_05_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_08_55_9706.jpg', 2), ('/home/nano/Desktop/images/16062025/08/08/image_16062025_08_08_45_9700.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86666470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86666470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86666470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:10:17.770832
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/10/image_16062025_08_10_45_9695.jpg', 2), ('/home/nano/Desktop/images/16062025/08/10/image_16062025_08_10_35_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/08/10/image_16062025_08_10_25_9712.jpg', 2), ('/home/nano/Desktop/images/16062025/08/10/image_16062025_08_10_15_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/08/09/image_16062025_08_10_05_10671.jpg', 2), ('/home/nano/Desktop/images/16062025/08/09/image_16062025_08_09_55_9678.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94ba5400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94ba5400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94ba5400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:10:32.733391
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/10/image_16062025_08_10_45_9695.jpg', 2), ('/home/nano/Desktop/images/16062025/08/10/image_16062025_08_10_35_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/08/10/image_16062025_08_10_25_9712.jpg', 2), ('/home/nano/Desktop/images/16062025/08/10/image_16062025_08_10_15_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/08/09/image_16062025_08_10_05_10671.jpg', 2), ('/home/nano/Desktop/images/16062025/08/09/image_16062025_08_09_55_9678.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d424470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d424470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d424470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:10:47.724571
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/10/image_16062025_08_10_45_9695.jpg', 2), ('/home/nano/Desktop/images/16062025/08/10/image_16062025_08_10_35_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/08/10/image_16062025_08_10_25_9712.jpg', 2), ('/home/nano/Desktop/images/16062025/08/10/image_16062025_08_10_15_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/08/09/image_16062025_08_10_05_10671.jpg', 2), ('/home/nano/Desktop/images/16062025/08/09/image_16062025_08_09_55_9678.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99b1c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99b1c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99b1c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:11:02.533261
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/10/image_16062025_08_10_45_9695.jpg', 2), ('/home/nano/Desktop/images/16062025/08/10/image_16062025_08_10_35_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/08/10/image_16062025_08_10_25_9712.jpg', 2), ('/home/nano/Desktop/images/16062025/08/10/image_16062025_08_10_15_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/08/09/image_16062025_08_10_05_10671.jpg', 2), ('/home/nano/Desktop/images/16062025/08/09/image_16062025_08_09_55_9678.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79b7d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79b7d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79b7d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:11:16.824748
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/11/image_16062025_08_11_45_10750.jpg', 2), ('/home/nano/Desktop/images/16062025/08/11/image_16062025_08_11_35_9738.jpg', 2), ('/home/nano/Desktop/images/16062025/08/11/image_16062025_08_11_25_9736.jpg', 2), ('/home/nano/Desktop/images/16062025/08/11/image_16062025_08_11_15_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/08/10/image_16062025_08_11_04_9700.jpg', 2), ('/home/nano/Desktop/images/16062025/08/10/image_16062025_08_10_55_9698.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9690f470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9690f470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9690f470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:11:31.836255
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/11/image_16062025_08_11_45_10750.jpg', 2), ('/home/nano/Desktop/images/16062025/08/11/image_16062025_08_11_35_9738.jpg', 2), ('/home/nano/Desktop/images/16062025/08/11/image_16062025_08_11_25_9736.jpg', 2), ('/home/nano/Desktop/images/16062025/08/11/image_16062025_08_11_15_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/08/10/image_16062025_08_11_04_9700.jpg', 2), ('/home/nano/Desktop/images/16062025/08/10/image_16062025_08_10_55_9698.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97b24470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97b24470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97b24470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:11:46.843964
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/11/image_16062025_08_11_45_10750.jpg', 2), ('/home/nano/Desktop/images/16062025/08/11/image_16062025_08_11_35_9738.jpg', 2), ('/home/nano/Desktop/images/16062025/08/11/image_16062025_08_11_25_9736.jpg', 2), ('/home/nano/Desktop/images/16062025/08/11/image_16062025_08_11_15_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/08/10/image_16062025_08_11_04_9700.jpg', 2), ('/home/nano/Desktop/images/16062025/08/10/image_16062025_08_10_55_9698.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fd6f400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fd6f400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fd6f400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:12:02.448237
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/11/image_16062025_08_11_45_10750.jpg', 2), ('/home/nano/Desktop/images/16062025/08/11/image_16062025_08_11_35_9738.jpg', 2), ('/home/nano/Desktop/images/16062025/08/11/image_16062025_08_11_25_9736.jpg', 2), ('/home/nano/Desktop/images/16062025/08/11/image_16062025_08_11_15_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/08/10/image_16062025_08_11_04_9700.jpg', 2), ('/home/nano/Desktop/images/16062025/08/10/image_16062025_08_10_55_9698.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f885b3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f885b3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f885b3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:12:16.976614
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/12/image_16062025_08_12_44_9685.jpg', 2), ('/home/nano/Desktop/images/16062025/08/12/image_16062025_08_12_35_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/08/12/image_16062025_08_12_25_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/08/12/image_16062025_08_12_14_9682.jpg', 2), ('/home/nano/Desktop/images/16062025/08/11/image_16062025_08_12_05_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/08/11/image_16062025_08_11_55_9771.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf171400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf171400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf171400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:12:31.953642
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/12/image_16062025_08_12_44_9685.jpg', 2), ('/home/nano/Desktop/images/16062025/08/12/image_16062025_08_12_35_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/08/12/image_16062025_08_12_25_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/08/12/image_16062025_08_12_14_9682.jpg', 2), ('/home/nano/Desktop/images/16062025/08/11/image_16062025_08_12_05_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/08/11/image_16062025_08_11_55_9771.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ce20400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ce20400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ce20400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:12:46.972978
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/12/image_16062025_08_12_44_9685.jpg', 2), ('/home/nano/Desktop/images/16062025/08/12/image_16062025_08_12_35_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/08/12/image_16062025_08_12_25_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/08/12/image_16062025_08_12_14_9682.jpg', 2), ('/home/nano/Desktop/images/16062025/08/11/image_16062025_08_12_05_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/08/11/image_16062025_08_11_55_9771.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b96a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b96a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b96a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:13:02.578817
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/12/image_16062025_08_12_44_9685.jpg', 2), ('/home/nano/Desktop/images/16062025/08/12/image_16062025_08_12_35_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/08/12/image_16062025_08_12_25_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/08/12/image_16062025_08_12_14_9682.jpg', 2), ('/home/nano/Desktop/images/16062025/08/11/image_16062025_08_12_05_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/08/11/image_16062025_08_11_55_9771.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e6d6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e6d6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e6d6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:13:17.054325
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/13/image_16062025_08_13_44_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/08/13/image_16062025_08_13_35_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/08/13/image_16062025_08_13_25_10685.jpg', 2), ('/home/nano/Desktop/images/16062025/08/13/image_16062025_08_13_14_9687.jpg', 2), ('/home/nano/Desktop/images/16062025/08/12/image_16062025_08_13_05_9707.jpg', 2), ('/home/nano/Desktop/images/16062025/08/12/image_16062025_08_12_55_10686.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa759d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa759d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa759d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:13:32.055834
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/13/image_16062025_08_13_44_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/08/13/image_16062025_08_13_35_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/08/13/image_16062025_08_13_25_10685.jpg', 2), ('/home/nano/Desktop/images/16062025/08/13/image_16062025_08_13_14_9687.jpg', 2), ('/home/nano/Desktop/images/16062025/08/12/image_16062025_08_13_05_9707.jpg', 2), ('/home/nano/Desktop/images/16062025/08/12/image_16062025_08_12_55_10686.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fadde84a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadde84a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadde84a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:13:47.040698
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/13/image_16062025_08_13_44_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/08/13/image_16062025_08_13_35_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/08/13/image_16062025_08_13_25_10685.jpg', 2), ('/home/nano/Desktop/images/16062025/08/13/image_16062025_08_13_14_9687.jpg', 2), ('/home/nano/Desktop/images/16062025/08/12/image_16062025_08_13_05_9707.jpg', 2), ('/home/nano/Desktop/images/16062025/08/12/image_16062025_08_12_55_10686.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f062400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f062400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f062400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:14:02.813817
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/13/image_16062025_08_13_44_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/08/13/image_16062025_08_13_35_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/08/13/image_16062025_08_13_25_10685.jpg', 2), ('/home/nano/Desktop/images/16062025/08/13/image_16062025_08_13_14_9687.jpg', 2), ('/home/nano/Desktop/images/16062025/08/12/image_16062025_08_13_05_9707.jpg', 2), ('/home/nano/Desktop/images/16062025/08/12/image_16062025_08_12_55_10686.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fd61470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fd61470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fd61470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:14:17.177892
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/14/image_16062025_08_14_45_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/08/14/image_16062025_08_14_34_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/08/14/image_16062025_08_14_25_9599.jpg', 2), ('/home/nano/Desktop/images/16062025/08/14/image_16062025_08_14_15_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/08/13/image_16062025_08_14_05_9589.jpg', 2), ('/home/nano/Desktop/images/16062025/08/13/image_16062025_08_13_55_10615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78323470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78323470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78323470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:14:32.165402
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/14/image_16062025_08_14_45_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/08/14/image_16062025_08_14_34_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/08/14/image_16062025_08_14_25_9599.jpg', 2), ('/home/nano/Desktop/images/16062025/08/14/image_16062025_08_14_15_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/08/13/image_16062025_08_14_05_9589.jpg', 2), ('/home/nano/Desktop/images/16062025/08/13/image_16062025_08_13_55_10615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8be7a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8be7a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8be7a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:14:47.189219
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/14/image_16062025_08_14_45_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/08/14/image_16062025_08_14_34_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/08/14/image_16062025_08_14_25_9599.jpg', 2), ('/home/nano/Desktop/images/16062025/08/14/image_16062025_08_14_15_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/08/13/image_16062025_08_14_05_9589.jpg', 2), ('/home/nano/Desktop/images/16062025/08/13/image_16062025_08_13_55_10615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb38e2470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb38e2470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb38e2470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:15:02.682962
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/14/image_16062025_08_14_45_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/08/14/image_16062025_08_14_34_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/08/14/image_16062025_08_14_25_9599.jpg', 2), ('/home/nano/Desktop/images/16062025/08/14/image_16062025_08_14_15_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/08/13/image_16062025_08_14_05_9589.jpg', 2), ('/home/nano/Desktop/images/16062025/08/13/image_16062025_08_13_55_10615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8c20470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8c20470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8c20470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:15:17.278901
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/15/image_16062025_08_15_45_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/08/15/image_16062025_08_15_35_10599.jpg', 2), ('/home/nano/Desktop/images/16062025/08/15/image_16062025_08_15_25_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/08/15/image_16062025_08_15_15_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/08/14/image_16062025_08_15_05_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/08/14/image_16062025_08_14_55_9593.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9bc6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9bc6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9bc6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:15:32.268306
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/15/image_16062025_08_15_45_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/08/15/image_16062025_08_15_35_10599.jpg', 2), ('/home/nano/Desktop/images/16062025/08/15/image_16062025_08_15_25_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/08/15/image_16062025_08_15_15_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/08/14/image_16062025_08_15_05_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/08/14/image_16062025_08_14_55_9593.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d699470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d699470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d699470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:15:47.274768
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/15/image_16062025_08_15_45_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/08/15/image_16062025_08_15_35_10599.jpg', 2), ('/home/nano/Desktop/images/16062025/08/15/image_16062025_08_15_25_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/08/15/image_16062025_08_15_15_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/08/14/image_16062025_08_15_05_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/08/14/image_16062025_08_14_55_9593.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78ba0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78ba0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78ba0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:16:02.956934
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/15/image_16062025_08_15_45_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/08/15/image_16062025_08_15_35_10599.jpg', 2), ('/home/nano/Desktop/images/16062025/08/15/image_16062025_08_15_25_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/08/15/image_16062025_08_15_15_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/08/14/image_16062025_08_15_05_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/08/14/image_16062025_08_14_55_9593.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89346470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89346470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89346470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:16:17.378781
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/16/image_16062025_08_16_44_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/08/16/image_16062025_08_16_35_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/08/16/image_16062025_08_16_25_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/08/16/image_16062025_08_16_15_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/08/15/image_16062025_08_16_05_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/08/15/image_16062025_08_15_55_10600.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82f72470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82f72470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82f72470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:16:32.385533
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/16/image_16062025_08_16_44_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/08/16/image_16062025_08_16_35_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/08/16/image_16062025_08_16_25_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/08/16/image_16062025_08_16_15_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/08/15/image_16062025_08_16_05_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/08/15/image_16062025_08_15_55_10600.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e5ef470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e5ef470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e5ef470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:16:47.384652
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/16/image_16062025_08_16_44_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/08/16/image_16062025_08_16_35_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/08/16/image_16062025_08_16_25_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/08/16/image_16062025_08_16_15_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/08/15/image_16062025_08_16_05_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/08/15/image_16062025_08_15_55_10600.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4719470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4719470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4719470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:17:03.063884
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/16/image_16062025_08_16_44_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/08/16/image_16062025_08_16_35_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/08/16/image_16062025_08_16_25_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/08/16/image_16062025_08_16_15_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/08/15/image_16062025_08_16_05_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/08/15/image_16062025_08_15_55_10600.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f901d7470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f901d7470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f901d7470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:17:17.471396
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/17/image_16062025_08_17_45_10668.jpg', 2), ('/home/nano/Desktop/images/16062025/08/17/image_16062025_08_17_35_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/08/17/image_16062025_08_17_25_9599.jpg', 2), ('/home/nano/Desktop/images/16062025/08/17/image_16062025_08_17_15_10670.jpg', 2), ('/home/nano/Desktop/images/16062025/08/16/image_16062025_08_17_05_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/08/16/image_16062025_08_16_55_10602.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9595470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9595470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9595470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:17:32.478548
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/17/image_16062025_08_17_45_10668.jpg', 2), ('/home/nano/Desktop/images/16062025/08/17/image_16062025_08_17_35_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/08/17/image_16062025_08_17_25_9599.jpg', 2), ('/home/nano/Desktop/images/16062025/08/17/image_16062025_08_17_15_10670.jpg', 2), ('/home/nano/Desktop/images/16062025/08/16/image_16062025_08_17_05_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/08/16/image_16062025_08_16_55_10602.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb12af470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb12af470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb12af470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:17:47.489487
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/17/image_16062025_08_17_45_10668.jpg', 2), ('/home/nano/Desktop/images/16062025/08/17/image_16062025_08_17_35_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/08/17/image_16062025_08_17_25_9599.jpg', 2), ('/home/nano/Desktop/images/16062025/08/17/image_16062025_08_17_15_10670.jpg', 2), ('/home/nano/Desktop/images/16062025/08/16/image_16062025_08_17_05_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/08/16/image_16062025_08_16_55_10602.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9550400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9550400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9550400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:18:03.156447
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/17/image_16062025_08_17_45_10668.jpg', 2), ('/home/nano/Desktop/images/16062025/08/17/image_16062025_08_17_35_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/08/17/image_16062025_08_17_25_9599.jpg', 2), ('/home/nano/Desktop/images/16062025/08/17/image_16062025_08_17_15_10670.jpg', 2), ('/home/nano/Desktop/images/16062025/08/16/image_16062025_08_17_05_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/08/16/image_16062025_08_16_55_10602.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5eaa470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5eaa470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5eaa470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:18:17.599661
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/18/image_16062025_08_18_45_9593.jpg', 2), ('/home/nano/Desktop/images/16062025/08/18/image_16062025_08_18_35_10596.jpg', 2), ('/home/nano/Desktop/images/16062025/08/18/image_16062025_08_18_25_9587.jpg', 2), ('/home/nano/Desktop/images/16062025/08/18/image_16062025_08_18_15_10612.jpg', 2), ('/home/nano/Desktop/images/16062025/08/17/image_16062025_08_18_04_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/08/17/image_16062025_08_17_55_9630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96aed470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96aed470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96aed470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:18:32.593770
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/18/image_16062025_08_18_45_9593.jpg', 2), ('/home/nano/Desktop/images/16062025/08/18/image_16062025_08_18_35_10596.jpg', 2), ('/home/nano/Desktop/images/16062025/08/18/image_16062025_08_18_25_9587.jpg', 2), ('/home/nano/Desktop/images/16062025/08/18/image_16062025_08_18_15_10612.jpg', 2), ('/home/nano/Desktop/images/16062025/08/17/image_16062025_08_18_04_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/08/17/image_16062025_08_17_55_9630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa07f6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa07f6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa07f6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:18:47.590771
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/18/image_16062025_08_18_45_9593.jpg', 2), ('/home/nano/Desktop/images/16062025/08/18/image_16062025_08_18_35_10596.jpg', 2), ('/home/nano/Desktop/images/16062025/08/18/image_16062025_08_18_25_9587.jpg', 2), ('/home/nano/Desktop/images/16062025/08/18/image_16062025_08_18_15_10612.jpg', 2), ('/home/nano/Desktop/images/16062025/08/17/image_16062025_08_18_04_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/08/17/image_16062025_08_17_55_9630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3a9a470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3a9a470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3a9a470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:19:03.739803
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/18/image_16062025_08_18_45_9593.jpg', 2), ('/home/nano/Desktop/images/16062025/08/18/image_16062025_08_18_35_10596.jpg', 2), ('/home/nano/Desktop/images/16062025/08/18/image_16062025_08_18_25_9587.jpg', 2), ('/home/nano/Desktop/images/16062025/08/18/image_16062025_08_18_15_10612.jpg', 2), ('/home/nano/Desktop/images/16062025/08/17/image_16062025_08_18_04_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/08/17/image_16062025_08_17_55_9630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88c38470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88c38470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88c38470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:19:17.698044
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/19/image_16062025_08_19_44_9587.jpg', 2), ('/home/nano/Desktop/images/16062025/08/19/image_16062025_08_19_35_9588.jpg', 2), ('/home/nano/Desktop/images/16062025/08/19/image_16062025_08_19_25_10594.jpg', 2), ('/home/nano/Desktop/images/16062025/08/19/image_16062025_08_19_15_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/08/18/image_16062025_08_19_05_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/08/18/image_16062025_08_18_54_9586.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b1a0470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b1a0470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b1a0470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:19:32.740959
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/19/image_16062025_08_19_44_9587.jpg', 2), ('/home/nano/Desktop/images/16062025/08/19/image_16062025_08_19_35_9588.jpg', 2), ('/home/nano/Desktop/images/16062025/08/19/image_16062025_08_19_25_10594.jpg', 2), ('/home/nano/Desktop/images/16062025/08/19/image_16062025_08_19_15_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/08/18/image_16062025_08_19_05_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/08/18/image_16062025_08_18_54_9586.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e981470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e981470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e981470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:19:47.705117
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/19/image_16062025_08_19_44_9587.jpg', 2), ('/home/nano/Desktop/images/16062025/08/19/image_16062025_08_19_35_9588.jpg', 2), ('/home/nano/Desktop/images/16062025/08/19/image_16062025_08_19_25_10594.jpg', 2), ('/home/nano/Desktop/images/16062025/08/19/image_16062025_08_19_15_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/08/18/image_16062025_08_19_05_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/08/18/image_16062025_08_18_54_9586.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb281d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb281d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb281d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:20:02.315064
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/19/image_16062025_08_19_44_9587.jpg', 2), ('/home/nano/Desktop/images/16062025/08/19/image_16062025_08_19_35_9588.jpg', 2), ('/home/nano/Desktop/images/16062025/08/19/image_16062025_08_19_25_10594.jpg', 2), ('/home/nano/Desktop/images/16062025/08/19/image_16062025_08_19_15_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/08/18/image_16062025_08_19_05_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/08/18/image_16062025_08_18_54_9586.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86cbe470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86cbe470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86cbe470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:20:16.806558
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/20/image_16062025_08_20_45_9713.jpg', 2), ('/home/nano/Desktop/images/16062025/08/20/image_16062025_08_20_35_9756.jpg', 2), ('/home/nano/Desktop/images/16062025/08/20/image_16062025_08_20_25_9790.jpg', 2), ('/home/nano/Desktop/images/16062025/08/20/image_16062025_08_20_15_10728.jpg', 2), ('/home/nano/Desktop/images/16062025/08/19/image_16062025_08_20_05_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/08/19/image_16062025_08_19_55_10597.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e37e400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e37e400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e37e400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:20:31.801742
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/20/image_16062025_08_20_45_9713.jpg', 2), ('/home/nano/Desktop/images/16062025/08/20/image_16062025_08_20_35_9756.jpg', 2), ('/home/nano/Desktop/images/16062025/08/20/image_16062025_08_20_25_9790.jpg', 2), ('/home/nano/Desktop/images/16062025/08/20/image_16062025_08_20_15_10728.jpg', 2), ('/home/nano/Desktop/images/16062025/08/19/image_16062025_08_20_05_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/08/19/image_16062025_08_19_55_10597.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cdc6470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cdc6470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cdc6470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:20:46.890603
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/20/image_16062025_08_20_45_9713.jpg', 2), ('/home/nano/Desktop/images/16062025/08/20/image_16062025_08_20_35_9756.jpg', 2), ('/home/nano/Desktop/images/16062025/08/20/image_16062025_08_20_25_9790.jpg', 2), ('/home/nano/Desktop/images/16062025/08/20/image_16062025_08_20_15_10728.jpg', 2), ('/home/nano/Desktop/images/16062025/08/19/image_16062025_08_20_05_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/08/19/image_16062025_08_19_55_10597.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6d55470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6d55470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6d55470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:21:02.811459
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/20/image_16062025_08_20_45_9713.jpg', 2), ('/home/nano/Desktop/images/16062025/08/20/image_16062025_08_20_35_9756.jpg', 2), ('/home/nano/Desktop/images/16062025/08/20/image_16062025_08_20_25_9790.jpg', 2), ('/home/nano/Desktop/images/16062025/08/20/image_16062025_08_20_15_10728.jpg', 2), ('/home/nano/Desktop/images/16062025/08/19/image_16062025_08_20_05_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/08/19/image_16062025_08_19_55_10597.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81bae470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81bae470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81bae470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:21:17.121451
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/21/image_16062025_08_21_45_9711.jpg', 2), ('/home/nano/Desktop/images/16062025/08/21/image_16062025_08_21_35_10791.jpg', 2), ('/home/nano/Desktop/images/16062025/08/21/image_16062025_08_21_25_9690.jpg', 2), ('/home/nano/Desktop/images/16062025/08/21/image_16062025_08_21_15_9696.jpg', 2), ('/home/nano/Desktop/images/16062025/08/20/image_16062025_08_21_05_9756.jpg', 2), ('/home/nano/Desktop/images/16062025/08/20/image_16062025_08_20_55_10727.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93a8b400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93a8b400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93a8b400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:21:32.004246
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/21/image_16062025_08_21_45_9711.jpg', 2), ('/home/nano/Desktop/images/16062025/08/21/image_16062025_08_21_35_10791.jpg', 2), ('/home/nano/Desktop/images/16062025/08/21/image_16062025_08_21_25_9690.jpg', 2), ('/home/nano/Desktop/images/16062025/08/21/image_16062025_08_21_15_9696.jpg', 2), ('/home/nano/Desktop/images/16062025/08/20/image_16062025_08_21_05_9756.jpg', 2), ('/home/nano/Desktop/images/16062025/08/20/image_16062025_08_20_55_10727.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2c89470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2c89470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2c89470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:21:46.972233
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/21/image_16062025_08_21_45_9711.jpg', 2), ('/home/nano/Desktop/images/16062025/08/21/image_16062025_08_21_35_10791.jpg', 2), ('/home/nano/Desktop/images/16062025/08/21/image_16062025_08_21_25_9690.jpg', 2), ('/home/nano/Desktop/images/16062025/08/21/image_16062025_08_21_15_9696.jpg', 2), ('/home/nano/Desktop/images/16062025/08/20/image_16062025_08_21_05_9756.jpg', 2), ('/home/nano/Desktop/images/16062025/08/20/image_16062025_08_20_55_10727.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4059470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4059470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4059470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:22:02.740594
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/21/image_16062025_08_21_45_9711.jpg', 2), ('/home/nano/Desktop/images/16062025/08/21/image_16062025_08_21_35_10791.jpg', 2), ('/home/nano/Desktop/images/16062025/08/21/image_16062025_08_21_25_9690.jpg', 2), ('/home/nano/Desktop/images/16062025/08/21/image_16062025_08_21_15_9696.jpg', 2), ('/home/nano/Desktop/images/16062025/08/20/image_16062025_08_21_05_9756.jpg', 2), ('/home/nano/Desktop/images/16062025/08/20/image_16062025_08_20_55_10727.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84847470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84847470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84847470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:22:17.067155
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/22/image_16062025_08_22_45_10681.jpg', 2), ('/home/nano/Desktop/images/16062025/08/22/image_16062025_08_22_35_9723.jpg', 2), ('/home/nano/Desktop/images/16062025/08/22/image_16062025_08_22_25_9682.jpg', 2), ('/home/nano/Desktop/images/16062025/08/22/image_16062025_08_22_15_10729.jpg', 2), ('/home/nano/Desktop/images/16062025/08/21/image_16062025_08_22_04_9702.jpg', 2), ('/home/nano/Desktop/images/16062025/08/21/image_16062025_08_21_55_9736.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f949e8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f949e8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f949e8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:22:32.075454
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/22/image_16062025_08_22_45_10681.jpg', 2), ('/home/nano/Desktop/images/16062025/08/22/image_16062025_08_22_35_9723.jpg', 2), ('/home/nano/Desktop/images/16062025/08/22/image_16062025_08_22_25_9682.jpg', 2), ('/home/nano/Desktop/images/16062025/08/22/image_16062025_08_22_15_10729.jpg', 2), ('/home/nano/Desktop/images/16062025/08/21/image_16062025_08_22_04_9702.jpg', 2), ('/home/nano/Desktop/images/16062025/08/21/image_16062025_08_21_55_9736.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5335400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5335400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5335400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:22:47.056690
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/22/image_16062025_08_22_45_10681.jpg', 2), ('/home/nano/Desktop/images/16062025/08/22/image_16062025_08_22_35_9723.jpg', 2), ('/home/nano/Desktop/images/16062025/08/22/image_16062025_08_22_25_9682.jpg', 2), ('/home/nano/Desktop/images/16062025/08/22/image_16062025_08_22_15_10729.jpg', 2), ('/home/nano/Desktop/images/16062025/08/21/image_16062025_08_22_04_9702.jpg', 2), ('/home/nano/Desktop/images/16062025/08/21/image_16062025_08_21_55_9736.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7819b470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7819b470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7819b470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:23:02.874235
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/22/image_16062025_08_22_45_10681.jpg', 2), ('/home/nano/Desktop/images/16062025/08/22/image_16062025_08_22_35_9723.jpg', 2), ('/home/nano/Desktop/images/16062025/08/22/image_16062025_08_22_25_9682.jpg', 2), ('/home/nano/Desktop/images/16062025/08/22/image_16062025_08_22_15_10729.jpg', 2), ('/home/nano/Desktop/images/16062025/08/21/image_16062025_08_22_04_9702.jpg', 2), ('/home/nano/Desktop/images/16062025/08/21/image_16062025_08_21_55_9736.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bd29400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bd29400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bd29400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:23:17.177785
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/23/image_16062025_08_23_45_9823.jpg', 2), ('/home/nano/Desktop/images/16062025/08/23/image_16062025_08_23_35_9681.jpg', 2), ('/home/nano/Desktop/images/16062025/08/23/image_16062025_08_23_25_10671.jpg', 2), ('/home/nano/Desktop/images/16062025/08/23/image_16062025_08_23_14_9725.jpg', 2), ('/home/nano/Desktop/images/16062025/08/22/image_16062025_08_23_05_9737.jpg', 2), ('/home/nano/Desktop/images/16062025/08/22/image_16062025_08_22_55_9730.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b84e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b84e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b84e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:23:32.170142
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/23/image_16062025_08_23_45_9823.jpg', 2), ('/home/nano/Desktop/images/16062025/08/23/image_16062025_08_23_35_9681.jpg', 2), ('/home/nano/Desktop/images/16062025/08/23/image_16062025_08_23_25_10671.jpg', 2), ('/home/nano/Desktop/images/16062025/08/23/image_16062025_08_23_14_9725.jpg', 2), ('/home/nano/Desktop/images/16062025/08/22/image_16062025_08_23_05_9737.jpg', 2), ('/home/nano/Desktop/images/16062025/08/22/image_16062025_08_22_55_9730.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76ae8470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76ae8470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76ae8470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:23:47.180829
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/23/image_16062025_08_23_45_9823.jpg', 2), ('/home/nano/Desktop/images/16062025/08/23/image_16062025_08_23_35_9681.jpg', 2), ('/home/nano/Desktop/images/16062025/08/23/image_16062025_08_23_25_10671.jpg', 2), ('/home/nano/Desktop/images/16062025/08/23/image_16062025_08_23_14_9725.jpg', 2), ('/home/nano/Desktop/images/16062025/08/22/image_16062025_08_23_05_9737.jpg', 2), ('/home/nano/Desktop/images/16062025/08/22/image_16062025_08_22_55_9730.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8bf28470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bf28470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bf28470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:24:03.001288
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/23/image_16062025_08_23_45_9823.jpg', 2), ('/home/nano/Desktop/images/16062025/08/23/image_16062025_08_23_35_9681.jpg', 2), ('/home/nano/Desktop/images/16062025/08/23/image_16062025_08_23_25_10671.jpg', 2), ('/home/nano/Desktop/images/16062025/08/23/image_16062025_08_23_14_9725.jpg', 2), ('/home/nano/Desktop/images/16062025/08/22/image_16062025_08_23_05_9737.jpg', 2), ('/home/nano/Desktop/images/16062025/08/22/image_16062025_08_22_55_9730.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8437e470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8437e470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8437e470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:24:17.293226
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/24/image_16062025_08_24_45_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/08/24/image_16062025_08_24_35_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/08/24/image_16062025_08_24_24_9596.jpg', 2), ('/home/nano/Desktop/images/16062025/08/24/image_16062025_08_24_15_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/08/23/image_16062025_08_24_05_10793.jpg', 2), ('/home/nano/Desktop/images/16062025/08/23/image_16062025_08_23_55_9832.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fd54470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fd54470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fd54470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:24:32.298374
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/24/image_16062025_08_24_45_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/08/24/image_16062025_08_24_35_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/08/24/image_16062025_08_24_24_9596.jpg', 2), ('/home/nano/Desktop/images/16062025/08/24/image_16062025_08_24_15_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/08/23/image_16062025_08_24_05_10793.jpg', 2), ('/home/nano/Desktop/images/16062025/08/23/image_16062025_08_23_55_9832.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79eb3470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79eb3470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79eb3470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:24:47.295143
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/24/image_16062025_08_24_45_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/08/24/image_16062025_08_24_35_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/08/24/image_16062025_08_24_24_9596.jpg', 2), ('/home/nano/Desktop/images/16062025/08/24/image_16062025_08_24_15_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/08/23/image_16062025_08_24_05_10793.jpg', 2), ('/home/nano/Desktop/images/16062025/08/23/image_16062025_08_23_55_9832.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cd0d470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cd0d470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cd0d470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:25:03.027076
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/24/image_16062025_08_24_45_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/08/24/image_16062025_08_24_35_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/08/24/image_16062025_08_24_24_9596.jpg', 2), ('/home/nano/Desktop/images/16062025/08/24/image_16062025_08_24_15_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/08/23/image_16062025_08_24_05_10793.jpg', 2), ('/home/nano/Desktop/images/16062025/08/23/image_16062025_08_23_55_9832.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5a99400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5a99400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5a99400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:25:17.410786
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/25/image_16062025_08_25_45_9706.jpg', 2), ('/home/nano/Desktop/images/16062025/08/25/image_16062025_08_25_35_9680.jpg', 2), ('/home/nano/Desktop/images/16062025/08/25/image_16062025_08_25_25_10612.jpg', 2), ('/home/nano/Desktop/images/16062025/08/25/image_16062025_08_25_15_9694.jpg', 2), ('/home/nano/Desktop/images/16062025/08/24/image_16062025_08_25_05_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/08/24/image_16062025_08_24_55_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93ff5470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93ff5470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93ff5470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:25:32.430345
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/25/image_16062025_08_25_45_9706.jpg', 2), ('/home/nano/Desktop/images/16062025/08/25/image_16062025_08_25_35_9680.jpg', 2), ('/home/nano/Desktop/images/16062025/08/25/image_16062025_08_25_25_10612.jpg', 2), ('/home/nano/Desktop/images/16062025/08/25/image_16062025_08_25_15_9694.jpg', 2), ('/home/nano/Desktop/images/16062025/08/24/image_16062025_08_25_05_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/08/24/image_16062025_08_24_55_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0600470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0600470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0600470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:25:47.393582
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/25/image_16062025_08_25_45_9706.jpg', 2), ('/home/nano/Desktop/images/16062025/08/25/image_16062025_08_25_35_9680.jpg', 2), ('/home/nano/Desktop/images/16062025/08/25/image_16062025_08_25_25_10612.jpg', 2), ('/home/nano/Desktop/images/16062025/08/25/image_16062025_08_25_15_9694.jpg', 2), ('/home/nano/Desktop/images/16062025/08/24/image_16062025_08_25_05_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/08/24/image_16062025_08_24_55_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9df34470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9df34470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9df34470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:26:03.095256
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/25/image_16062025_08_25_45_9706.jpg', 2), ('/home/nano/Desktop/images/16062025/08/25/image_16062025_08_25_35_9680.jpg', 2), ('/home/nano/Desktop/images/16062025/08/25/image_16062025_08_25_25_10612.jpg', 2), ('/home/nano/Desktop/images/16062025/08/25/image_16062025_08_25_15_9694.jpg', 2), ('/home/nano/Desktop/images/16062025/08/24/image_16062025_08_25_05_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/08/24/image_16062025_08_24_55_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98772400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98772400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98772400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:26:17.488503
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/26/image_16062025_08_26_45_9712.jpg', 2), ('/home/nano/Desktop/images/16062025/08/26/image_16062025_08_26_35_10687.jpg', 2), ('/home/nano/Desktop/images/16062025/08/26/image_16062025_08_26_25_9724.jpg', 2), ('/home/nano/Desktop/images/16062025/08/26/image_16062025_08_26_15_9751.jpg', 2), ('/home/nano/Desktop/images/16062025/08/25/image_16062025_08_26_05_9724.jpg', 2), ('/home/nano/Desktop/images/16062025/08/25/image_16062025_08_25_55_10695.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2598470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2598470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2598470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:26:32.539397
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/26/image_16062025_08_26_45_9712.jpg', 2), ('/home/nano/Desktop/images/16062025/08/26/image_16062025_08_26_35_10687.jpg', 2), ('/home/nano/Desktop/images/16062025/08/26/image_16062025_08_26_25_9724.jpg', 2), ('/home/nano/Desktop/images/16062025/08/26/image_16062025_08_26_15_9751.jpg', 2), ('/home/nano/Desktop/images/16062025/08/25/image_16062025_08_26_05_9724.jpg', 2), ('/home/nano/Desktop/images/16062025/08/25/image_16062025_08_25_55_10695.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafe0c470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafe0c470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafe0c470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:26:47.499883
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/26/image_16062025_08_26_45_9712.jpg', 2), ('/home/nano/Desktop/images/16062025/08/26/image_16062025_08_26_35_10687.jpg', 2), ('/home/nano/Desktop/images/16062025/08/26/image_16062025_08_26_25_9724.jpg', 2), ('/home/nano/Desktop/images/16062025/08/26/image_16062025_08_26_15_9751.jpg', 2), ('/home/nano/Desktop/images/16062025/08/25/image_16062025_08_26_05_9724.jpg', 2), ('/home/nano/Desktop/images/16062025/08/25/image_16062025_08_25_55_10695.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb086d400>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb086d400>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb086d400>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:27:03.361095
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/26/image_16062025_08_26_45_9712.jpg', 2), ('/home/nano/Desktop/images/16062025/08/26/image_16062025_08_26_35_10687.jpg', 2), ('/home/nano/Desktop/images/16062025/08/26/image_16062025_08_26_25_9724.jpg', 2), ('/home/nano/Desktop/images/16062025/08/26/image_16062025_08_26_15_9751.jpg', 2), ('/home/nano/Desktop/images/16062025/08/25/image_16062025_08_26_05_9724.jpg', 2), ('/home/nano/Desktop/images/16062025/08/25/image_16062025_08_25_55_10695.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e1fd470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e1fd470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e1fd470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:27:17.609380
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/27/image_16062025_08_27_45_10704.jpg', 2), ('/home/nano/Desktop/images/16062025/08/27/image_16062025_08_27_35_9701.jpg', 2), ('/home/nano/Desktop/images/16062025/08/27/image_16062025_08_27_25_9726.jpg', 2), ('/home/nano/Desktop/images/16062025/08/27/image_16062025_08_27_15_10757.jpg', 2), ('/home/nano/Desktop/images/16062025/08/26/image_16062025_08_27_04_9812.jpg', 2), ('/home/nano/Desktop/images/16062025/08/26/image_16062025_08_26_55_9720.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d779470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d779470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d779470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:27:32.613142
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/27/image_16062025_08_27_45_10704.jpg', 2), ('/home/nano/Desktop/images/16062025/08/27/image_16062025_08_27_35_9701.jpg', 2), ('/home/nano/Desktop/images/16062025/08/27/image_16062025_08_27_25_9726.jpg', 2), ('/home/nano/Desktop/images/16062025/08/27/image_16062025_08_27_15_10757.jpg', 2), ('/home/nano/Desktop/images/16062025/08/26/image_16062025_08_27_04_9812.jpg', 2), ('/home/nano/Desktop/images/16062025/08/26/image_16062025_08_26_55_9720.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7840470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7840470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7840470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:27:47.615408
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/27/image_16062025_08_27_45_10704.jpg', 2), ('/home/nano/Desktop/images/16062025/08/27/image_16062025_08_27_35_9701.jpg', 2), ('/home/nano/Desktop/images/16062025/08/27/image_16062025_08_27_25_9726.jpg', 2), ('/home/nano/Desktop/images/16062025/08/27/image_16062025_08_27_15_10757.jpg', 2), ('/home/nano/Desktop/images/16062025/08/26/image_16062025_08_27_04_9812.jpg', 2), ('/home/nano/Desktop/images/16062025/08/26/image_16062025_08_26_55_9720.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_16062025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fc30470>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fc30470>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fc30470>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:28:03.284588
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_16062025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
0
 val : 1 : upload photos already in processing! 
3125498
0
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/27/image_16062025_08_27_45_10704.jpg', 2), ('/home/nano/Desktop/images/16062025/08/27/image_16062025_08_27_35_9701.jpg', 2), ('/home/nano/Desktop/images/16062025/08/27/image_16062025_08_27_25_9726.jpg', 2), ('/home/nano/Desktop/images/16062025/08/27/image_16062025_08_27_15_10757.jpg', 2), ('/home/nano/Desktop/images/16062025/08/26/image_16062025_08_27_04_9812.jpg', 2), ('/home/nano/Desktop/images/16062025/08/26/image_16062025_08_26_55_9720.jpg', 2)]
{'portfolio_id': 24047662, 'actiontaken': ['Created new portfolio'], 'error': 'Photos id not exist !', 'updated_at': 1750055350000}
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/08/27/image_16062025_08_27_45_10704.jpg', '/home/nano/Desktop/images/16062025/08/27/image_16062025_08_27_35_9701.jpg', '/home/nano/Desktop/images/16062025/08/27/image_16062025_08_27_25_9726.jpg', '/home/nano/Desktop/images/16062025/08/27/image_16062025_08_27_15_10757.jpg', '/home/nano/Desktop/images/16062025/08/26/image_16062025_08_27_04_9812.jpg', '/home/nano/Desktop/images/16062025/08/26/image_16062025_08_26_55_9720.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/08/27/image_16062025_08_27_45_10704.jpg
/home/nano/Desktop/images/16062025/08/27/image_16062025_08_27_35_9701.jpg
/home/nano/Desktop/images/16062025/08/27/image_16062025_08_27_25_9726.jpg
/home/nano/Desktop/images/16062025/08/27/image_16062025_08_27_15_10757.jpg
/home/nano/Desktop/images/16062025/08/26/image_16062025_08_27_04_9812.jpg
/home/nano/Desktop/images/16062025/08/26/image_16062025_08_26_55_9720.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366516228","1366516207","1366516185","1366516188","1366516193","1366516232"],"photo_ids_order":["1366516185","1366516188","1366516193","1366516207","1366516228","1366516232"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c4db5c530e6b5ed86cbec3795a60a407.jpg","text":"TemporaryFile(/tmp/multipartBody9007094325313175038asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055359189,"filename":"image_16062025_08_27_04_9812.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3585d24f5f369bb9a206e771d724c074.jpg","text":"TemporaryFile(/tmp/multipartBody190655400715335192asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055359189,"filename":"image_16062025_08_27_15_10757.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/060ab225a0c74c3d2aad88a9b6fa0870.jpg","text":"TemporaryFile(/tmp/multipartBody3753394226056616705asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055359189,"filename":"image_16062025_08_27_45_10704.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/54c4ff2d9ed8e643426b16877dda9fe1.jpg","text":"TemporaryFile(/tmp/multipartBody6614030293537779781asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055359189,"filename":"image_16062025_08_27_35_9701.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c3f6629fa400400dee400c3263dd8a61.jpg","text":"TemporaryFile(/tmp/multipartBody4243090907721019769asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055359189,"filename":"image_16062025_08_27_25_9726.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3e9ceadb18d2a50078552153e00522a1.jpg","text":"TemporaryFile(/tmp/multipartBody6391852067740384493asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055359189,"filename":"image_16062025_08_26_55_9720.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366516193","file1":"1366516188","file0":"1366516185","file4":"1366516228","file5":"1366516232","file3":"1366516207"},"map_files_photo_id_array":[{"photo_id":"1366516232","filename":"file5"},{"photo_id":"1366516193","filename":"file2"},{"photo_id":"1366516228","filename":"file4"},{"photo_id":"1366516188","filename":"file1"},{"photo_id":"1366516185","filename":"file0"},{"photo_id":"1366516207","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366516228":["hashtag1","hashtag2"]},{"1366516207":["hashtag1","hashtag2"]},{"1366516185":["hashtag1","hashtag2"]},{"1366516188":["hashtag1","hashtag2"]},{"1366516193":["hashtag1","hashtag2"]},{"1366516232":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366516228, 1366516207, 1366516185, 1366516188, 1366516193, 1366516232)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 67.3088583946228 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:29:16.849781
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/29/image_16062025_08_29_45_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/08/29/image_16062025_08_29_34_9767.jpg', 2), ('/home/nano/Desktop/images/16062025/08/29/image_16062025_08_29_25_9783.jpg', 2), ('/home/nano/Desktop/images/16062025/08/28/image_16062025_08_29_05_10702.jpg', 2), ('/home/nano/Desktop/images/16062025/08/28/image_16062025_08_28_54_9703.jpg', 2), ('/home/nano/Desktop/images/16062025/08/28/image_16062025_08_28_45_9724.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/08/29/image_16062025_08_29_45_10642.jpg', '/home/nano/Desktop/images/16062025/08/29/image_16062025_08_29_34_9767.jpg', '/home/nano/Desktop/images/16062025/08/29/image_16062025_08_29_25_9783.jpg', '/home/nano/Desktop/images/16062025/08/28/image_16062025_08_29_05_10702.jpg', '/home/nano/Desktop/images/16062025/08/28/image_16062025_08_28_54_9703.jpg', '/home/nano/Desktop/images/16062025/08/28/image_16062025_08_28_45_9724.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/08/29/image_16062025_08_29_45_10642.jpg
/home/nano/Desktop/images/16062025/08/29/image_16062025_08_29_34_9767.jpg
/home/nano/Desktop/images/16062025/08/29/image_16062025_08_29_25_9783.jpg
/home/nano/Desktop/images/16062025/08/28/image_16062025_08_29_05_10702.jpg
/home/nano/Desktop/images/16062025/08/28/image_16062025_08_28_54_9703.jpg
/home/nano/Desktop/images/16062025/08/28/image_16062025_08_28_45_9724.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366516285","1366516276","1366516269","1366516242","1366516262","1366516238"],"photo_ids_order":["1366516238","1366516242","1366516262","1366516269","1366516276","1366516285"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1b9660a31082fd3a8c91909e34e23085.jpg","text":"TemporaryFile(/tmp/multipartBody3028873127924156339asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055420359,"filename":"image_16062025_08_28_45_9724.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/08f6032882376020094298a3593d5753.jpg","text":"TemporaryFile(/tmp/multipartBody5982201427574998174asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055420359,"filename":"image_16062025_08_28_54_9703.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/45bb6da40bdf2fbec5ac85ffaafe1d10.jpg","text":"TemporaryFile(/tmp/multipartBody5419421587798189911asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055420359,"filename":"image_16062025_08_29_05_10702.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d547b36c5f85c5f44c7a592dcaff4abb.jpg","text":"TemporaryFile(/tmp/multipartBody9026569542526045243asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055420359,"filename":"image_16062025_08_29_34_9767.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4c599d577c6af9ee444f6ea80976a78e.jpg","text":"TemporaryFile(/tmp/multipartBody7158552930033156587asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055420359,"filename":"image_16062025_08_29_25_9783.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/01ce250ba569798a2f70d43c3af78bda.jpg","text":"TemporaryFile(/tmp/multipartBody6129384223556335489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055420359,"filename":"image_16062025_08_29_45_10642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366516262","file1":"1366516242","file0":"1366516238","file4":"1366516276","file5":"1366516285","file3":"1366516269"},"map_files_photo_id_array":[{"photo_id":"1366516285","filename":"file5"},{"photo_id":"1366516262","filename":"file2"},{"photo_id":"1366516276","filename":"file4"},{"photo_id":"1366516242","filename":"file1"},{"photo_id":"1366516238","filename":"file0"},{"photo_id":"1366516269","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366516285":["hashtag1","hashtag2"]},{"1366516276":["hashtag1","hashtag2"]},{"1366516269":["hashtag1","hashtag2"]},{"1366516242":["hashtag1","hashtag2"]},{"1366516262":["hashtag1","hashtag2"]},{"1366516238":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366516285, 1366516276, 1366516269, 1366516242, 1366516262, 1366516238)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 93.96957564353943 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:31:02.697624
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/30/image_16062025_08_30_44_9705.jpg', 2), ('/home/nano/Desktop/images/16062025/08/30/image_16062025_08_30_35_9747.jpg', 2), ('/home/nano/Desktop/images/16062025/08/30/image_16062025_08_30_25_9710.jpg', 2), ('/home/nano/Desktop/images/16062025/08/30/image_16062025_08_30_15_10748.jpg', 2), ('/home/nano/Desktop/images/16062025/08/29/image_16062025_08_30_05_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/08/29/image_16062025_08_29_55_9765.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/08/30/image_16062025_08_30_44_9705.jpg', '/home/nano/Desktop/images/16062025/08/30/image_16062025_08_30_35_9747.jpg', '/home/nano/Desktop/images/16062025/08/30/image_16062025_08_30_25_9710.jpg', '/home/nano/Desktop/images/16062025/08/30/image_16062025_08_30_15_10748.jpg', '/home/nano/Desktop/images/16062025/08/29/image_16062025_08_30_05_9673.jpg', '/home/nano/Desktop/images/16062025/08/29/image_16062025_08_29_55_9765.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/08/30/image_16062025_08_30_44_9705.jpg
/home/nano/Desktop/images/16062025/08/30/image_16062025_08_30_35_9747.jpg
/home/nano/Desktop/images/16062025/08/30/image_16062025_08_30_25_9710.jpg
/home/nano/Desktop/images/16062025/08/30/image_16062025_08_30_15_10748.jpg
/home/nano/Desktop/images/16062025/08/29/image_16062025_08_30_05_9673.jpg
/home/nano/Desktop/images/16062025/08/29/image_16062025_08_29_55_9765.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366516307","1366516327","1366516315","1366516311","1366516320","1366516323"],"photo_ids_order":["1366516307","1366516311","1366516315","1366516320","1366516323","1366516327"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2fbb04e8df5cb5d488172f503b812ec1.jpg","text":"TemporaryFile(/tmp/multipartBody2296020670899334399asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055524885,"filename":"image_16062025_08_30_44_9705.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d2728f52b4c2afdbce128c6bc0032eed.jpg","text":"TemporaryFile(/tmp/multipartBody6657966167988841531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055524885,"filename":"image_16062025_08_29_55_9765.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2d345dfd344ccaea2b017ca2f42b8aad.jpg","text":"TemporaryFile(/tmp/multipartBody7446473909874338852asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055524885,"filename":"image_16062025_08_30_25_9710.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cfcac3361bff0cde31e442cef4f35825.jpg","text":"TemporaryFile(/tmp/multipartBody7305610575819749556asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055524885,"filename":"image_16062025_08_30_35_9747.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5fb4c51b5ce3eead168d52007f68e16d.jpg","text":"TemporaryFile(/tmp/multipartBody4501323799271785518asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055524885,"filename":"image_16062025_08_30_15_10748.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/eaf2a80be1a5f0e522bea5a62b35426a.jpg","text":"TemporaryFile(/tmp/multipartBody6051371391381752928asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055524885,"filename":"image_16062025_08_30_05_9673.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366516315","file1":"1366516311","file0":"1366516307","file4":"1366516323","file5":"1366516327","file3":"1366516320"},"map_files_photo_id_array":[{"photo_id":"1366516327","filename":"file5"},{"photo_id":"1366516315","filename":"file2"},{"photo_id":"1366516323","filename":"file4"},{"photo_id":"1366516311","filename":"file1"},{"photo_id":"1366516307","filename":"file0"},{"photo_id":"1366516320","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366516307":["hashtag1","hashtag2"]},{"1366516327":["hashtag1","hashtag2"]},{"1366516315":["hashtag1","hashtag2"]},{"1366516311":["hashtag1","hashtag2"]},{"1366516320":["hashtag1","hashtag2"]},{"1366516323":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366516307, 1366516327, 1366516315, 1366516311, 1366516320, 1366516323)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 77.13992857933044 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:32:32.240126
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/32/image_16062025_08_32_45_10715.jpg', 2), ('/home/nano/Desktop/images/16062025/08/32/image_16062025_08_32_35_9694.jpg', 2), ('/home/nano/Desktop/images/16062025/08/32/image_16062025_08_32_25_9701.jpg', 2), ('/home/nano/Desktop/images/16062025/08/32/image_16062025_08_32_15_10766.jpg', 2), ('/home/nano/Desktop/images/16062025/08/31/image_16062025_08_32_04_9752.jpg', 2), ('/home/nano/Desktop/images/16062025/08/31/image_16062025_08_31_55_9796.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/08/32/image_16062025_08_32_45_10715.jpg', '/home/nano/Desktop/images/16062025/08/32/image_16062025_08_32_35_9694.jpg', '/home/nano/Desktop/images/16062025/08/32/image_16062025_08_32_25_9701.jpg', '/home/nano/Desktop/images/16062025/08/32/image_16062025_08_32_15_10766.jpg', '/home/nano/Desktop/images/16062025/08/31/image_16062025_08_32_04_9752.jpg', '/home/nano/Desktop/images/16062025/08/31/image_16062025_08_31_55_9796.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/08/32/image_16062025_08_32_45_10715.jpg
/home/nano/Desktop/images/16062025/08/32/image_16062025_08_32_35_9694.jpg
/home/nano/Desktop/images/16062025/08/32/image_16062025_08_32_25_9701.jpg
/home/nano/Desktop/images/16062025/08/32/image_16062025_08_32_15_10766.jpg
/home/nano/Desktop/images/16062025/08/31/image_16062025_08_32_04_9752.jpg
/home/nano/Desktop/images/16062025/08/31/image_16062025_08_31_55_9796.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366516348","1366516356","1366516344","1366516367","1366516361","1366516352"],"photo_ids_order":["1366516344","1366516348","1366516352","1366516356","1366516361","1366516367"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2437513d4fc362b35dfc77a601ec2130.jpg","text":"TemporaryFile(/tmp/multipartBody2808502891080402046asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055614765,"filename":"image_16062025_08_32_35_9694.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b307b2ad2a3ec704d0404aa03cd3efbc.jpg","text":"TemporaryFile(/tmp/multipartBody7851455098495071224asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055614765,"filename":"image_16062025_08_32_15_10766.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2dcc158ce5a653d4df8babb978aa203a.jpg","text":"TemporaryFile(/tmp/multipartBody8234033174312536062asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055614765,"filename":"image_16062025_08_32_45_10715.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/26e1b1ed54104dc46424a092e7174de1.jpg","text":"TemporaryFile(/tmp/multipartBody8377921918762147283asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055614765,"filename":"image_16062025_08_31_55_9796.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7733c39da478b0e7c52f1d4679c8910d.jpg","text":"TemporaryFile(/tmp/multipartBody9001307733932593060asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055614765,"filename":"image_16062025_08_32_04_9752.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/14b092abc8b998497cc2b676ffcba680.jpg","text":"TemporaryFile(/tmp/multipartBody3339753660874353805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055614765,"filename":"image_16062025_08_32_25_9701.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366516352","file1":"1366516348","file0":"1366516344","file4":"1366516361","file5":"1366516367","file3":"1366516356"},"map_files_photo_id_array":[{"photo_id":"1366516367","filename":"file5"},{"photo_id":"1366516352","filename":"file2"},{"photo_id":"1366516361","filename":"file4"},{"photo_id":"1366516348","filename":"file1"},{"photo_id":"1366516344","filename":"file0"},{"photo_id":"1366516356","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366516348":["hashtag1","hashtag2"]},{"1366516356":["hashtag1","hashtag2"]},{"1366516344":["hashtag1","hashtag2"]},{"1366516367":["hashtag1","hashtag2"]},{"1366516361":["hashtag1","hashtag2"]},{"1366516352":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366516348, 1366516356, 1366516344, 1366516367, 1366516361, 1366516352)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 67.86940240859985 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:33:47.250915
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/33/image_16062025_08_33_45_9720.jpg', 2), ('/home/nano/Desktop/images/16062025/08/33/image_16062025_08_33_35_9721.jpg', 2), ('/home/nano/Desktop/images/16062025/08/33/image_16062025_08_33_25_10809.jpg', 2), ('/home/nano/Desktop/images/16062025/08/33/image_16062025_08_33_14_9700.jpg', 2), ('/home/nano/Desktop/images/16062025/08/32/image_16062025_08_33_05_9685.jpg', 2), ('/home/nano/Desktop/images/16062025/08/32/image_16062025_08_32_55_9749.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/08/33/image_16062025_08_33_45_9720.jpg', '/home/nano/Desktop/images/16062025/08/33/image_16062025_08_33_35_9721.jpg', '/home/nano/Desktop/images/16062025/08/33/image_16062025_08_33_25_10809.jpg', '/home/nano/Desktop/images/16062025/08/33/image_16062025_08_33_14_9700.jpg', '/home/nano/Desktop/images/16062025/08/32/image_16062025_08_33_05_9685.jpg', '/home/nano/Desktop/images/16062025/08/32/image_16062025_08_32_55_9749.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/08/33/image_16062025_08_33_45_9720.jpg
/home/nano/Desktop/images/16062025/08/33/image_16062025_08_33_35_9721.jpg
/home/nano/Desktop/images/16062025/08/33/image_16062025_08_33_25_10809.jpg
/home/nano/Desktop/images/16062025/08/33/image_16062025_08_33_14_9700.jpg
/home/nano/Desktop/images/16062025/08/32/image_16062025_08_33_05_9685.jpg
/home/nano/Desktop/images/16062025/08/32/image_16062025_08_32_55_9749.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366516384","1366516380","1366516398","1366516391","1366516394","1366516388"],"photo_ids_order":["1366516380","1366516384","1366516388","1366516391","1366516394","1366516398"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/29855b3abb63282edad182d7aa1300e6.jpg","text":"TemporaryFile(/tmp/multipartBody4950836717899752608asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055690543,"filename":"image_16062025_08_33_35_9721.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3ca264f9bdb2c866d926804dd29b9a20.jpg","text":"TemporaryFile(/tmp/multipartBody6802596989582563820asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055690543,"filename":"image_16062025_08_33_45_9720.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dac69fd669484decca1f7558331bc531.jpg","text":"TemporaryFile(/tmp/multipartBody7757294374013767281asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055690543,"filename":"image_16062025_08_32_55_9749.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1365be142a9ddcb1b8c0a55c3dcd77d1.jpg","text":"TemporaryFile(/tmp/multipartBody6036160285779183254asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055690543,"filename":"image_16062025_08_33_14_9700.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9d7760c0d30de6035cd73e80d8479ed5.jpg","text":"TemporaryFile(/tmp/multipartBody4881201265251278080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055690543,"filename":"image_16062025_08_33_05_9685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/370f10a59eeb2534d6943eb55106505d.jpg","text":"TemporaryFile(/tmp/multipartBody4714461046962104571asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055690543,"filename":"image_16062025_08_33_25_10809.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366516388","file1":"1366516384","file0":"1366516380","file4":"1366516394","file5":"1366516398","file3":"1366516391"},"map_files_photo_id_array":[{"photo_id":"1366516398","filename":"file5"},{"photo_id":"1366516388","filename":"file2"},{"photo_id":"1366516394","filename":"file4"},{"photo_id":"1366516384","filename":"file1"},{"photo_id":"1366516380","filename":"file0"},{"photo_id":"1366516391","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366516384":["hashtag1","hashtag2"]},{"1366516380":["hashtag1","hashtag2"]},{"1366516398":["hashtag1","hashtag2"]},{"1366516391":["hashtag1","hashtag2"]},{"1366516394":["hashtag1","hashtag2"]},{"1366516388":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366516384, 1366516380, 1366516398, 1366516391, 1366516394, 1366516388)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 58.98782706260681 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:34:47.387080
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/34/image_16062025_08_34_45_10711.jpg', 2), ('/home/nano/Desktop/images/16062025/08/34/image_16062025_08_34_34_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/08/34/image_16062025_08_34_25_9788.jpg', 2), ('/home/nano/Desktop/images/16062025/08/34/image_16062025_08_34_15_9800.jpg', 2), ('/home/nano/Desktop/images/16062025/08/33/image_16062025_08_33_54_9679.jpg', 2), ('/home/nano/Desktop/images/16062025/08/31/image_16062025_08_31_45_9828.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/08/34/image_16062025_08_34_45_10711.jpg', '/home/nano/Desktop/images/16062025/08/34/image_16062025_08_34_34_9640.jpg', '/home/nano/Desktop/images/16062025/08/34/image_16062025_08_34_25_9788.jpg', '/home/nano/Desktop/images/16062025/08/34/image_16062025_08_34_15_9800.jpg', '/home/nano/Desktop/images/16062025/08/33/image_16062025_08_33_54_9679.jpg', '/home/nano/Desktop/images/16062025/08/31/image_16062025_08_31_45_9828.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/08/34/image_16062025_08_34_45_10711.jpg
/home/nano/Desktop/images/16062025/08/34/image_16062025_08_34_34_9640.jpg
/home/nano/Desktop/images/16062025/08/34/image_16062025_08_34_25_9788.jpg
/home/nano/Desktop/images/16062025/08/34/image_16062025_08_34_15_9800.jpg
/home/nano/Desktop/images/16062025/08/33/image_16062025_08_33_54_9679.jpg
/home/nano/Desktop/images/16062025/08/31/image_16062025_08_31_45_9828.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366516427","1366516414","1366516423","1366516411","1366516407","1366516418"],"photo_ids_order":["1366516407","1366516411","1366516414","1366516418","1366516423","1366516427"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/83aab0eb25b3524fd41e90664c036177.jpg","text":"TemporaryFile(/tmp/multipartBody4888285837643648028asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055751241,"filename":"image_16062025_08_31_45_9828.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f431e89ef113f248ccd9c9280d438092.jpg","text":"TemporaryFile(/tmp/multipartBody3770744394914924967asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055751241,"filename":"image_16062025_08_34_25_9788.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2c0c615c33b0555cc5154cd45bb95ede.jpg","text":"TemporaryFile(/tmp/multipartBody3501495493360614496asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055751241,"filename":"image_16062025_08_33_54_9679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9cd9abff72eaa904b36be3e24bb9550a.jpg","text":"TemporaryFile(/tmp/multipartBody5152175382520029084asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055751241,"filename":"image_16062025_08_34_34_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/96165a6abbd822af1ff4d6c171688c26.jpg","text":"TemporaryFile(/tmp/multipartBody7345226649851664386asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055751241,"filename":"image_16062025_08_34_45_10711.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/676df5e77c196c1b88035187eccfe33b.jpg","text":"TemporaryFile(/tmp/multipartBody5996118992592603260asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055751241,"filename":"image_16062025_08_34_15_9800.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366516414","file1":"1366516411","file0":"1366516407","file4":"1366516423","file5":"1366516427","file3":"1366516418"},"map_files_photo_id_array":[{"photo_id":"1366516427","filename":"file5"},{"photo_id":"1366516414","filename":"file2"},{"photo_id":"1366516423","filename":"file4"},{"photo_id":"1366516411","filename":"file1"},{"photo_id":"1366516407","filename":"file0"},{"photo_id":"1366516418","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366516427":["hashtag1","hashtag2"]},{"1366516414":["hashtag1","hashtag2"]},{"1366516423":["hashtag1","hashtag2"]},{"1366516411":["hashtag1","hashtag2"]},{"1366516407":["hashtag1","hashtag2"]},{"1366516418":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366516427, 1366516414, 1366516423, 1366516411, 1366516407, 1366516418)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 55.283281326293945 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:35:47.545138
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/35/image_16062025_08_35_45_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/08/35/image_16062025_08_35_35_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/08/35/image_16062025_08_35_25_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/08/35/image_16062025_08_35_15_10714.jpg', 2), ('/home/nano/Desktop/images/16062025/08/34/image_16062025_08_35_05_9747.jpg', 2), ('/home/nano/Desktop/images/16062025/08/34/image_16062025_08_34_55_9714.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/08/35/image_16062025_08_35_45_10616.jpg', '/home/nano/Desktop/images/16062025/08/35/image_16062025_08_35_35_9605.jpg', '/home/nano/Desktop/images/16062025/08/35/image_16062025_08_35_25_9604.jpg', '/home/nano/Desktop/images/16062025/08/35/image_16062025_08_35_15_10714.jpg', '/home/nano/Desktop/images/16062025/08/34/image_16062025_08_35_05_9747.jpg', '/home/nano/Desktop/images/16062025/08/34/image_16062025_08_34_55_9714.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/08/35/image_16062025_08_35_45_10616.jpg
/home/nano/Desktop/images/16062025/08/35/image_16062025_08_35_35_9605.jpg
/home/nano/Desktop/images/16062025/08/35/image_16062025_08_35_25_9604.jpg
/home/nano/Desktop/images/16062025/08/35/image_16062025_08_35_15_10714.jpg
/home/nano/Desktop/images/16062025/08/34/image_16062025_08_35_05_9747.jpg
/home/nano/Desktop/images/16062025/08/34/image_16062025_08_34_55_9714.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366516462","1366516432","1366516456","1366516438","1366516449","1366516443"],"photo_ids_order":["1366516432","1366516438","1366516443","1366516449","1366516456","1366516462"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/afc3933d689788e8b8210d06460c1cb5.jpg","text":"TemporaryFile(/tmp/multipartBody1386483068496214799asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055812060,"filename":"image_16062025_08_34_55_9714.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e02911028dfb9c1727c7561dd91f0422.jpg","text":"TemporaryFile(/tmp/multipartBody4384638684962705096asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055812060,"filename":"image_16062025_08_35_45_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/93b488747747bace382627b0eb93c081.jpg","text":"TemporaryFile(/tmp/multipartBody88090781110972184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055812060,"filename":"image_16062025_08_35_05_9747.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/17c386e6b20f11c16b8285e415825699.jpg","text":"TemporaryFile(/tmp/multipartBody5927299428225736346asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055812060,"filename":"image_16062025_08_35_35_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e1138ce768de6576604c07632e53824f.jpg","text":"TemporaryFile(/tmp/multipartBody4375787956766779312asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055812060,"filename":"image_16062025_08_35_15_10714.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1442a8a7162206d0ee3f758aff02afcf.jpg","text":"TemporaryFile(/tmp/multipartBody2757799201676167352asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055812060,"filename":"image_16062025_08_35_25_9604.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366516443","file1":"1366516438","file0":"1366516432","file4":"1366516456","file5":"1366516462","file3":"1366516449"},"map_files_photo_id_array":[{"photo_id":"1366516462","filename":"file5"},{"photo_id":"1366516443","filename":"file2"},{"photo_id":"1366516456","filename":"file4"},{"photo_id":"1366516438","filename":"file1"},{"photo_id":"1366516432","filename":"file0"},{"photo_id":"1366516449","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366516462":["hashtag1","hashtag2"]},{"1366516432":["hashtag1","hashtag2"]},{"1366516456":["hashtag1","hashtag2"]},{"1366516438":["hashtag1","hashtag2"]},{"1366516449":["hashtag1","hashtag2"]},{"1366516443":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366516462, 1366516432, 1366516456, 1366516438, 1366516449, 1366516443)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 101.95692110061646 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:37:32.772647
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/37/image_16062025_08_37_45_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/08/37/image_16062025_08_37_35_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/08/37/image_16062025_08_37_25_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/08/37/image_16062025_08_37_15_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/08/36/image_16062025_08_37_05_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/08/36/image_16062025_08_36_45_9621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/08/37/image_16062025_08_37_45_9601.jpg', '/home/nano/Desktop/images/16062025/08/37/image_16062025_08_37_35_9597.jpg', '/home/nano/Desktop/images/16062025/08/37/image_16062025_08_37_25_10608.jpg', '/home/nano/Desktop/images/16062025/08/37/image_16062025_08_37_15_9622.jpg', '/home/nano/Desktop/images/16062025/08/36/image_16062025_08_37_05_10619.jpg', '/home/nano/Desktop/images/16062025/08/36/image_16062025_08_36_45_9621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/08/37/image_16062025_08_37_45_9601.jpg
/home/nano/Desktop/images/16062025/08/37/image_16062025_08_37_35_9597.jpg
/home/nano/Desktop/images/16062025/08/37/image_16062025_08_37_25_10608.jpg
/home/nano/Desktop/images/16062025/08/37/image_16062025_08_37_15_9622.jpg
/home/nano/Desktop/images/16062025/08/36/image_16062025_08_37_05_10619.jpg
/home/nano/Desktop/images/16062025/08/36/image_16062025_08_36_45_9621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366516489","1366516501","1366516485","1366516519","1366516482","1366516514"],"photo_ids_order":["1366516482","1366516485","1366516489","1366516501","1366516514","1366516519"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/28c0fdcee1ee274433e15c14c7fff193.jpg","text":"TemporaryFile(/tmp/multipartBody1711155449650994294asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055914125,"filename":"image_16062025_08_37_25_10608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3851475625d0bb803f033717142414d8.jpg","text":"TemporaryFile(/tmp/multipartBody5693423966812998787asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055914125,"filename":"image_16062025_08_37_15_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1b169ebf4f975a1e9181e168eabaed52.jpg","text":"TemporaryFile(/tmp/multipartBody1660716859579134172asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055914125,"filename":"image_16062025_08_37_35_9597.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8b4dbf5fba9245014bf65c30d3ba0483.jpg","text":"TemporaryFile(/tmp/multipartBody1096284564072930346asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055914125,"filename":"image_16062025_08_36_45_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e99dd0aad3436a8a94f7ba3bd29f6b66.jpg","text":"TemporaryFile(/tmp/multipartBody5989711476660830902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055914125,"filename":"image_16062025_08_37_45_9601.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/649588714cd2f2c534d8284446aaaa2e.jpg","text":"TemporaryFile(/tmp/multipartBody3997823182327471735asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055914125,"filename":"image_16062025_08_37_05_10619.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366516489","file1":"1366516485","file0":"1366516482","file4":"1366516514","file5":"1366516519","file3":"1366516501"},"map_files_photo_id_array":[{"photo_id":"1366516519","filename":"file5"},{"photo_id":"1366516489","filename":"file2"},{"photo_id":"1366516514","filename":"file4"},{"photo_id":"1366516485","filename":"file1"},{"photo_id":"1366516482","filename":"file0"},{"photo_id":"1366516501","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366516489":["hashtag1","hashtag2"]},{"1366516501":["hashtag1","hashtag2"]},{"1366516485":["hashtag1","hashtag2"]},{"1366516519":["hashtag1","hashtag2"]},{"1366516482":["hashtag1","hashtag2"]},{"1366516514":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366516489, 1366516501, 1366516485, 1366516519, 1366516482, 1366516514)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 71.55245351791382 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:38:46.853347
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/38/image_16062025_08_38_45_10612.jpg', 2), ('/home/nano/Desktop/images/16062025/08/38/image_16062025_08_38_35_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/08/38/image_16062025_08_38_25_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/08/38/image_16062025_08_38_14_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/08/37/image_16062025_08_38_05_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/08/37/image_16062025_08_37_55_10615.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/08/38/image_16062025_08_38_45_10612.jpg', '/home/nano/Desktop/images/16062025/08/38/image_16062025_08_38_35_9607.jpg', '/home/nano/Desktop/images/16062025/08/38/image_16062025_08_38_25_10616.jpg', '/home/nano/Desktop/images/16062025/08/38/image_16062025_08_38_14_9625.jpg', '/home/nano/Desktop/images/16062025/08/37/image_16062025_08_38_05_9624.jpg', '/home/nano/Desktop/images/16062025/08/37/image_16062025_08_37_55_10615.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/08/38/image_16062025_08_38_45_10612.jpg
/home/nano/Desktop/images/16062025/08/38/image_16062025_08_38_35_9607.jpg
/home/nano/Desktop/images/16062025/08/38/image_16062025_08_38_25_10616.jpg
/home/nano/Desktop/images/16062025/08/38/image_16062025_08_38_14_9625.jpg
/home/nano/Desktop/images/16062025/08/37/image_16062025_08_38_05_9624.jpg
/home/nano/Desktop/images/16062025/08/37/image_16062025_08_37_55_10615.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366516579","1366516612","1366516549","1366516587","1366516545","1366516571"],"photo_ids_order":["1366516545","1366516549","1366516571","1366516579","1366516587","1366516612"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9dbec57f37ffc622c1523190b61ed489.jpg","text":"TemporaryFile(/tmp/multipartBody3080459385062152293asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055988072,"filename":"image_16062025_08_38_14_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d0141dd0aa2f6f913d9abd99c0b765eb.jpg","text":"TemporaryFile(/tmp/multipartBody3231472435874637220asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055988072,"filename":"image_16062025_08_37_55_10615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f9c846b8b8ba94eb2cb3ace2d6e85cc2.jpg","text":"TemporaryFile(/tmp/multipartBody5272283172831154155asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055988072,"filename":"image_16062025_08_38_35_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/70d1b7459f753ed1ef6e8f9f8f7fc628.jpg","text":"TemporaryFile(/tmp/multipartBody5748761133937203195asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055988072,"filename":"image_16062025_08_38_05_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/73fbdbfb2433bd60901f31d77e8e612b.jpg","text":"TemporaryFile(/tmp/multipartBody3903162667482943315asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055988072,"filename":"image_16062025_08_38_45_10612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1418bb35b3776ed8144debed1630346a.jpg","text":"TemporaryFile(/tmp/multipartBody6226623446062271514asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750055988072,"filename":"image_16062025_08_38_25_10616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366516571","file1":"1366516549","file0":"1366516545","file4":"1366516587","file5":"1366516612","file3":"1366516579"},"map_files_photo_id_array":[{"photo_id":"1366516612","filename":"file5"},{"photo_id":"1366516571","filename":"file2"},{"photo_id":"1366516587","filename":"file4"},{"photo_id":"1366516549","filename":"file1"},{"photo_id":"1366516545","filename":"file0"},{"photo_id":"1366516579","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366516579":["hashtag1","hashtag2"]},{"1366516612":["hashtag1","hashtag2"]},{"1366516549":["hashtag1","hashtag2"]},{"1366516587":["hashtag1","hashtag2"]},{"1366516545":["hashtag1","hashtag2"]},{"1366516571":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366516579, 1366516612, 1366516549, 1366516587, 1366516545, 1366516571)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 79.03884649276733 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:40:17.064358
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/40/image_16062025_08_40_45_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/08/40/image_16062025_08_40_35_9606.jpg', 2), ('/home/nano/Desktop/images/16062025/08/40/image_16062025_08_40_25_10614.jpg', 2), ('/home/nano/Desktop/images/16062025/08/40/image_16062025_08_40_15_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/08/39/image_16062025_08_40_05_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/08/39/image_16062025_08_39_54_9597.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/08/40/image_16062025_08_40_45_9621.jpg', '/home/nano/Desktop/images/16062025/08/40/image_16062025_08_40_35_9606.jpg', '/home/nano/Desktop/images/16062025/08/40/image_16062025_08_40_25_10614.jpg', '/home/nano/Desktop/images/16062025/08/40/image_16062025_08_40_15_9605.jpg', '/home/nano/Desktop/images/16062025/08/39/image_16062025_08_40_05_10621.jpg', '/home/nano/Desktop/images/16062025/08/39/image_16062025_08_39_54_9597.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/08/40/image_16062025_08_40_45_9621.jpg
/home/nano/Desktop/images/16062025/08/40/image_16062025_08_40_35_9606.jpg
/home/nano/Desktop/images/16062025/08/40/image_16062025_08_40_25_10614.jpg
/home/nano/Desktop/images/16062025/08/40/image_16062025_08_40_15_9605.jpg
/home/nano/Desktop/images/16062025/08/39/image_16062025_08_40_05_10621.jpg
/home/nano/Desktop/images/16062025/08/39/image_16062025_08_39_54_9597.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366516627","1366516650","1366516638","1366516632","1366516646","1366516643"],"photo_ids_order":["1366516627","1366516632","1366516638","1366516643","1366516646","1366516650"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c70e2ad6c77dd647e98b5c4a3987adb9.jpg","text":"TemporaryFile(/tmp/multipartBody8349164663419142039asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056079789,"filename":"image_16062025_08_40_45_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d5d8188087927984d12452af7bcbcd22.jpg","text":"TemporaryFile(/tmp/multipartBody8859662742577124951asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056079789,"filename":"image_16062025_08_39_54_9597.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/143e6ce253029e11c2e21c0f4de59588.jpg","text":"TemporaryFile(/tmp/multipartBody8477982359879758019asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056079789,"filename":"image_16062025_08_40_25_10614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/99ae9e1365b9a5ae5d6149ae9d0ab0c3.jpg","text":"TemporaryFile(/tmp/multipartBody3467841219609477369asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056079789,"filename":"image_16062025_08_40_35_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9e7e8af95995165cd5f684cf27c6e588.jpg","text":"TemporaryFile(/tmp/multipartBody2585020109477402089asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056079789,"filename":"image_16062025_08_40_05_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/87f0a0741dc12845ec4df888823eaaa2.jpg","text":"TemporaryFile(/tmp/multipartBody1622423559385179asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056079789,"filename":"image_16062025_08_40_15_9605.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366516638","file1":"1366516632","file0":"1366516627","file4":"1366516646","file5":"1366516650","file3":"1366516643"},"map_files_photo_id_array":[{"photo_id":"1366516650","filename":"file5"},{"photo_id":"1366516638","filename":"file2"},{"photo_id":"1366516646","filename":"file4"},{"photo_id":"1366516632","filename":"file1"},{"photo_id":"1366516627","filename":"file0"},{"photo_id":"1366516643","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366516627":["hashtag1","hashtag2"]},{"1366516650":["hashtag1","hashtag2"]},{"1366516638":["hashtag1","hashtag2"]},{"1366516632":["hashtag1","hashtag2"]},{"1366516646":["hashtag1","hashtag2"]},{"1366516643":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366516627, 1366516650, 1366516638, 1366516632, 1366516646, 1366516643)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 73.76412725448608 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:41:32.251753
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/41/image_16062025_08_41_44_9801.jpg', 2), ('/home/nano/Desktop/images/16062025/08/41/image_16062025_08_41_35_9598.jpg', 2), ('/home/nano/Desktop/images/16062025/08/41/image_16062025_08_41_15_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/08/40/image_16062025_08_41_05_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/08/40/image_16062025_08_40_55_10612.jpg', 2), ('/home/nano/Desktop/images/16062025/08/39/image_16062025_08_39_45_9605.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/08/41/image_16062025_08_41_44_9801.jpg', '/home/nano/Desktop/images/16062025/08/41/image_16062025_08_41_35_9598.jpg', '/home/nano/Desktop/images/16062025/08/41/image_16062025_08_41_15_10618.jpg', '/home/nano/Desktop/images/16062025/08/40/image_16062025_08_41_05_9607.jpg', '/home/nano/Desktop/images/16062025/08/40/image_16062025_08_40_55_10612.jpg', '/home/nano/Desktop/images/16062025/08/39/image_16062025_08_39_45_9605.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/08/41/image_16062025_08_41_44_9801.jpg
/home/nano/Desktop/images/16062025/08/41/image_16062025_08_41_35_9598.jpg
/home/nano/Desktop/images/16062025/08/41/image_16062025_08_41_15_10618.jpg
/home/nano/Desktop/images/16062025/08/40/image_16062025_08_41_05_9607.jpg
/home/nano/Desktop/images/16062025/08/40/image_16062025_08_40_55_10612.jpg
/home/nano/Desktop/images/16062025/08/39/image_16062025_08_39_45_9605.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366516669","1366516665","1366516674","1366516677","1366516662","1366516658"],"photo_ids_order":["1366516658","1366516662","1366516665","1366516669","1366516674","1366516677"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/16e64f417ebe66924a469bf47c9eab9b.jpg","text":"TemporaryFile(/tmp/multipartBody8679452183183109825asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056153696,"filename":"image_16062025_08_41_05_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/271311b000308e44908415ba929a634d.jpg","text":"TemporaryFile(/tmp/multipartBody4507736359451319088asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056153696,"filename":"image_16062025_08_41_15_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6d91f6092c50878734800a0b25aa4211.jpg","text":"TemporaryFile(/tmp/multipartBody3137955072651768159asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056153696,"filename":"image_16062025_08_40_55_10612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/70806e519001028b3a4b7956cd58dc8d.jpg","text":"TemporaryFile(/tmp/multipartBody995741275745177227asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056153696,"filename":"image_16062025_08_39_45_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d5b023124734ae24c7eddb922ad18728.jpg","text":"TemporaryFile(/tmp/multipartBody6638803309987245144asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056153696,"filename":"image_16062025_08_41_35_9598.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bb5157b30c623c41b7314184c9bbe82e.jpg","text":"TemporaryFile(/tmp/multipartBody5379750466740676411asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056153696,"filename":"image_16062025_08_41_44_9801.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366516665","file1":"1366516662","file0":"1366516658","file4":"1366516674","file5":"1366516677","file3":"1366516669"},"map_files_photo_id_array":[{"photo_id":"1366516677","filename":"file5"},{"photo_id":"1366516665","filename":"file2"},{"photo_id":"1366516674","filename":"file4"},{"photo_id":"1366516662","filename":"file1"},{"photo_id":"1366516658","filename":"file0"},{"photo_id":"1366516669","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366516669":["hashtag1","hashtag2"]},{"1366516665":["hashtag1","hashtag2"]},{"1366516674":["hashtag1","hashtag2"]},{"1366516677":["hashtag1","hashtag2"]},{"1366516662":["hashtag1","hashtag2"]},{"1366516658":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366516669, 1366516665, 1366516674, 1366516677, 1366516662, 1366516658)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 51.23245930671692 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:42:32.262346
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/42/image_16062025_08_42_45_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/08/42/image_16062025_08_42_35_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/08/42/image_16062025_08_42_25_9686.jpg', 2), ('/home/nano/Desktop/images/16062025/08/42/image_16062025_08_42_15_10699.jpg', 2), ('/home/nano/Desktop/images/16062025/08/41/image_16062025_08_42_05_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/08/41/image_16062025_08_41_55_10693.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/08/42/image_16062025_08_42_45_10609.jpg', '/home/nano/Desktop/images/16062025/08/42/image_16062025_08_42_35_9612.jpg', '/home/nano/Desktop/images/16062025/08/42/image_16062025_08_42_25_9686.jpg', '/home/nano/Desktop/images/16062025/08/42/image_16062025_08_42_15_10699.jpg', '/home/nano/Desktop/images/16062025/08/41/image_16062025_08_42_05_9603.jpg', '/home/nano/Desktop/images/16062025/08/41/image_16062025_08_41_55_10693.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/08/42/image_16062025_08_42_45_10609.jpg
/home/nano/Desktop/images/16062025/08/42/image_16062025_08_42_35_9612.jpg
/home/nano/Desktop/images/16062025/08/42/image_16062025_08_42_25_9686.jpg
/home/nano/Desktop/images/16062025/08/42/image_16062025_08_42_15_10699.jpg
/home/nano/Desktop/images/16062025/08/41/image_16062025_08_42_05_9603.jpg
/home/nano/Desktop/images/16062025/08/41/image_16062025_08_41_55_10693.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366516689","1366516704","1366516694","1366516713","1366516709","1366516699"],"photo_ids_order":["1366516689","1366516694","1366516699","1366516704","1366516709","1366516713"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2c78407285cb51b0c050b9c579f0643f.jpg","text":"TemporaryFile(/tmp/multipartBody1710265392973648051asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056214332,"filename":"image_16062025_08_42_45_10609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fc5a5acc95ad71b60f26c5fbeb777913.jpg","text":"TemporaryFile(/tmp/multipartBody1625212777430602505asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056214332,"filename":"image_16062025_08_42_15_10699.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/623f43b05f0b7e63054adaa7f10f50d3.jpg","text":"TemporaryFile(/tmp/multipartBody5207063481060951719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056214332,"filename":"image_16062025_08_42_35_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3e9f893e5e874a41b5d92a4a79021446.jpg","text":"TemporaryFile(/tmp/multipartBody2424210518676231657asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056214332,"filename":"image_16062025_08_41_55_10693.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/481331f1b6e55a437f1cb2fd290b9297.jpg","text":"TemporaryFile(/tmp/multipartBody5478322763516918293asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056214332,"filename":"image_16062025_08_42_05_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c0abd237bf98ff98d9aa5423eb38433f.jpg","text":"TemporaryFile(/tmp/multipartBody2951510229371864903asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056214332,"filename":"image_16062025_08_42_25_9686.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366516699","file1":"1366516694","file0":"1366516689","file4":"1366516709","file5":"1366516713","file3":"1366516704"},"map_files_photo_id_array":[{"photo_id":"1366516713","filename":"file5"},{"photo_id":"1366516699","filename":"file2"},{"photo_id":"1366516709","filename":"file4"},{"photo_id":"1366516694","filename":"file1"},{"photo_id":"1366516689","filename":"file0"},{"photo_id":"1366516704","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366516689":["hashtag1","hashtag2"]},{"1366516704":["hashtag1","hashtag2"]},{"1366516694":["hashtag1","hashtag2"]},{"1366516713":["hashtag1","hashtag2"]},{"1366516709":["hashtag1","hashtag2"]},{"1366516699":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366516689, 1366516704, 1366516694, 1366516713, 1366516709, 1366516699)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 52.16529893875122 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:43:32.393238
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/43/image_16062025_08_43_45_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/08/43/image_16062025_08_43_34_9594.jpg', 2), ('/home/nano/Desktop/images/16062025/08/43/image_16062025_08_43_25_9592.jpg', 2), ('/home/nano/Desktop/images/16062025/08/43/image_16062025_08_43_15_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/08/42/image_16062025_08_43_05_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/08/42/image_16062025_08_42_55_9643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/08/43/image_16062025_08_43_45_10650.jpg', '/home/nano/Desktop/images/16062025/08/43/image_16062025_08_43_34_9594.jpg', '/home/nano/Desktop/images/16062025/08/43/image_16062025_08_43_25_9592.jpg', '/home/nano/Desktop/images/16062025/08/43/image_16062025_08_43_15_10652.jpg', '/home/nano/Desktop/images/16062025/08/42/image_16062025_08_43_05_9669.jpg', '/home/nano/Desktop/images/16062025/08/42/image_16062025_08_42_55_9643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/08/43/image_16062025_08_43_45_10650.jpg
/home/nano/Desktop/images/16062025/08/43/image_16062025_08_43_34_9594.jpg
/home/nano/Desktop/images/16062025/08/43/image_16062025_08_43_25_9592.jpg
/home/nano/Desktop/images/16062025/08/43/image_16062025_08_43_15_10652.jpg
/home/nano/Desktop/images/16062025/08/42/image_16062025_08_43_05_9669.jpg
/home/nano/Desktop/images/16062025/08/42/image_16062025_08_42_55_9643.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366516744","1366516734","1366516739","1366516730","1366516727","1366516742"],"photo_ids_order":["1366516727","1366516730","1366516734","1366516739","1366516742","1366516744"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/11f7a9ec44da23e9e8e6a9c235b26276.jpg","text":"TemporaryFile(/tmp/multipartBody5407094486809652026asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056274596,"filename":"image_16062025_08_42_55_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b2fdbe8db922a934c12e967f44ffcdd6.jpg","text":"TemporaryFile(/tmp/multipartBody8430537811556351646asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056274596,"filename":"image_16062025_08_43_25_9592.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/086dbf12e3a6b090a1cd03ff636823dd.jpg","text":"TemporaryFile(/tmp/multipartBody5961677033218727565asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056274596,"filename":"image_16062025_08_43_15_10652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f34310ce1f17cd91d381bc7e1370684b.jpg","text":"TemporaryFile(/tmp/multipartBody6177094110525874493asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056274596,"filename":"image_16062025_08_43_34_9594.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e38b177e7c2229ca911ee7302780f415.jpg","text":"TemporaryFile(/tmp/multipartBody6505072074570667430asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056274596,"filename":"image_16062025_08_43_45_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/037a487cc936163966c4f9411049a590.jpg","text":"TemporaryFile(/tmp/multipartBody5998427462527807062asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056274596,"filename":"image_16062025_08_43_05_9669.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366516734","file1":"1366516730","file0":"1366516727","file4":"1366516742","file5":"1366516744","file3":"1366516739"},"map_files_photo_id_array":[{"photo_id":"1366516744","filename":"file5"},{"photo_id":"1366516734","filename":"file2"},{"photo_id":"1366516742","filename":"file4"},{"photo_id":"1366516730","filename":"file1"},{"photo_id":"1366516727","filename":"file0"},{"photo_id":"1366516739","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366516744":["hashtag1","hashtag2"]},{"1366516734":["hashtag1","hashtag2"]},{"1366516739":["hashtag1","hashtag2"]},{"1366516730":["hashtag1","hashtag2"]},{"1366516727":["hashtag1","hashtag2"]},{"1366516742":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366516744, 1366516734, 1366516739, 1366516730, 1366516727, 1366516742)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 48.500757455825806 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:44:32.459042
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/44/image_16062025_08_44_45_9712.jpg', 2), ('/home/nano/Desktop/images/16062025/08/44/image_16062025_08_44_35_10659.jpg', 2), ('/home/nano/Desktop/images/16062025/08/44/image_16062025_08_44_25_9680.jpg', 2), ('/home/nano/Desktop/images/16062025/08/44/image_16062025_08_44_15_9656.jpg', 2), ('/home/nano/Desktop/images/16062025/08/43/image_16062025_08_44_05_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/08/43/image_16062025_08_43_55_9669.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/08/44/image_16062025_08_44_45_9712.jpg', '/home/nano/Desktop/images/16062025/08/44/image_16062025_08_44_35_10659.jpg', '/home/nano/Desktop/images/16062025/08/44/image_16062025_08_44_25_9680.jpg', '/home/nano/Desktop/images/16062025/08/44/image_16062025_08_44_15_9656.jpg', '/home/nano/Desktop/images/16062025/08/43/image_16062025_08_44_05_10613.jpg', '/home/nano/Desktop/images/16062025/08/43/image_16062025_08_43_55_9669.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/08/44/image_16062025_08_44_45_9712.jpg
/home/nano/Desktop/images/16062025/08/44/image_16062025_08_44_35_10659.jpg
/home/nano/Desktop/images/16062025/08/44/image_16062025_08_44_25_9680.jpg
/home/nano/Desktop/images/16062025/08/44/image_16062025_08_44_15_9656.jpg
/home/nano/Desktop/images/16062025/08/43/image_16062025_08_44_05_10613.jpg
/home/nano/Desktop/images/16062025/08/43/image_16062025_08_43_55_9669.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366516789","1366516774","1366516768","1366516762","1366516822","1366516758"],"photo_ids_order":["1366516758","1366516762","1366516768","1366516774","1366516789","1366516822"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a71d445ff683c2988167c8fb84bcb71a.jpg","text":"TemporaryFile(/tmp/multipartBody5803020452616582699asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056335149,"filename":"image_16062025_08_44_05_10613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2f5f67066255b8aac1122fe879a0a9d1.jpg","text":"TemporaryFile(/tmp/multipartBody4979138445525018117asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056335149,"filename":"image_16062025_08_44_15_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/48e869fe54429676acf4c0becb0e23a1.jpg","text":"TemporaryFile(/tmp/multipartBody3674406812931851051asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056335149,"filename":"image_16062025_08_44_25_9680.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a70154195ee0eb66aeddb9349f5eca8d.jpg","text":"TemporaryFile(/tmp/multipartBody8710955914720048164asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056335149,"filename":"image_16062025_08_44_35_10659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7032aa7d71b9c42d82d52c0931ab8a87.jpg","text":"TemporaryFile(/tmp/multipartBody3833332463673409381asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056335149,"filename":"image_16062025_08_43_55_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b3ff14e37ac32b69f67c8395339b7a1f.jpg","text":"TemporaryFile(/tmp/multipartBody5048112341063782782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056335149,"filename":"image_16062025_08_44_45_9712.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366516768","file1":"1366516762","file0":"1366516758","file4":"1366516789","file5":"1366516822","file3":"1366516774"},"map_files_photo_id_array":[{"photo_id":"1366516822","filename":"file5"},{"photo_id":"1366516768","filename":"file2"},{"photo_id":"1366516789","filename":"file4"},{"photo_id":"1366516762","filename":"file1"},{"photo_id":"1366516758","filename":"file0"},{"photo_id":"1366516774","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366516789":["hashtag1","hashtag2"]},{"1366516774":["hashtag1","hashtag2"]},{"1366516768":["hashtag1","hashtag2"]},{"1366516762":["hashtag1","hashtag2"]},{"1366516822":["hashtag1","hashtag2"]},{"1366516758":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366516789, 1366516774, 1366516768, 1366516762, 1366516822, 1366516758)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 56.77505922317505 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:45:32.578732
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/45/image_16062025_08_45_45_9662.jpg', 2), ('/home/nano/Desktop/images/16062025/08/45/image_16062025_08_45_35_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/08/45/image_16062025_08_45_25_9648.jpg', 2), ('/home/nano/Desktop/images/16062025/08/45/image_16062025_08_45_15_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/08/44/image_16062025_08_45_05_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/08/44/image_16062025_08_44_55_9634.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/08/45/image_16062025_08_45_45_9662.jpg', '/home/nano/Desktop/images/16062025/08/45/image_16062025_08_45_35_10658.jpg', '/home/nano/Desktop/images/16062025/08/45/image_16062025_08_45_25_9648.jpg', '/home/nano/Desktop/images/16062025/08/45/image_16062025_08_45_15_9612.jpg', '/home/nano/Desktop/images/16062025/08/44/image_16062025_08_45_05_10629.jpg', '/home/nano/Desktop/images/16062025/08/44/image_16062025_08_44_55_9634.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/08/45/image_16062025_08_45_45_9662.jpg
/home/nano/Desktop/images/16062025/08/45/image_16062025_08_45_35_10658.jpg
/home/nano/Desktop/images/16062025/08/45/image_16062025_08_45_25_9648.jpg
/home/nano/Desktop/images/16062025/08/45/image_16062025_08_45_15_9612.jpg
/home/nano/Desktop/images/16062025/08/44/image_16062025_08_45_05_10629.jpg
/home/nano/Desktop/images/16062025/08/44/image_16062025_08_44_55_9634.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366517140","1366517011","1366516896","1366517136","1366517081","1366517123"],"photo_ids_order":["1366516896","1366517011","1366517081","1366517123","1366517136","1366517140"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/effba1f2142f75bd8407de52dc690c06.jpg","text":"TemporaryFile(/tmp/multipartBody4451104215797424634asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056401276,"filename":"image_16062025_08_44_55_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/70728dfc966b59c7c9fc3e152f6e723a.jpg","text":"TemporaryFile(/tmp/multipartBody9080981174616287399asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056401276,"filename":"image_16062025_08_45_35_10658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/22d5a313d3e5daed645e39c6c38c5063.jpg","text":"TemporaryFile(/tmp/multipartBody5153190772834850118asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056401276,"filename":"image_16062025_08_45_45_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a3a217a60f37d21bbcb0a739f4a94a5a.jpg","text":"TemporaryFile(/tmp/multipartBody7019545771980532819asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056401276,"filename":"image_16062025_08_45_05_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4f0400e0161e10ed003763c8c688b3b4.jpg","text":"TemporaryFile(/tmp/multipartBody7774245847181125204asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056401276,"filename":"image_16062025_08_45_25_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a61f2682067b07fb6579289956069ddb.jpg","text":"TemporaryFile(/tmp/multipartBody4313668026923006519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056401276,"filename":"image_16062025_08_45_15_9612.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366517081","file1":"1366517011","file0":"1366516896","file4":"1366517136","file5":"1366517140","file3":"1366517123"},"map_files_photo_id_array":[{"photo_id":"1366517140","filename":"file5"},{"photo_id":"1366517081","filename":"file2"},{"photo_id":"1366517136","filename":"file4"},{"photo_id":"1366517011","filename":"file1"},{"photo_id":"1366516896","filename":"file0"},{"photo_id":"1366517123","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366517140":["hashtag1","hashtag2"]},{"1366517011":["hashtag1","hashtag2"]},{"1366516896":["hashtag1","hashtag2"]},{"1366517136":["hashtag1","hashtag2"]},{"1366517081":["hashtag1","hashtag2"]},{"1366517123":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366517140, 1366517011, 1366516896, 1366517136, 1366517081, 1366517123)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 113.68492078781128 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:47:32.744444
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/47/image_16062025_08_47_45_9583.jpg', 2), ('/home/nano/Desktop/images/16062025/08/47/image_16062025_08_47_35_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/08/47/image_16062025_08_47_24_9663.jpg', 2), ('/home/nano/Desktop/images/16062025/08/47/image_16062025_08_47_15_9670.jpg', 2), ('/home/nano/Desktop/images/16062025/08/46/image_16062025_08_47_05_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/08/46/image_16062025_08_46_54_9597.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/08/47/image_16062025_08_47_45_9583.jpg', '/home/nano/Desktop/images/16062025/08/47/image_16062025_08_47_35_10643.jpg', '/home/nano/Desktop/images/16062025/08/47/image_16062025_08_47_24_9663.jpg', '/home/nano/Desktop/images/16062025/08/47/image_16062025_08_47_15_9670.jpg', '/home/nano/Desktop/images/16062025/08/46/image_16062025_08_47_05_10610.jpg', '/home/nano/Desktop/images/16062025/08/46/image_16062025_08_46_54_9597.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/08/47/image_16062025_08_47_45_9583.jpg
/home/nano/Desktop/images/16062025/08/47/image_16062025_08_47_35_10643.jpg
/home/nano/Desktop/images/16062025/08/47/image_16062025_08_47_24_9663.jpg
/home/nano/Desktop/images/16062025/08/47/image_16062025_08_47_15_9670.jpg
/home/nano/Desktop/images/16062025/08/46/image_16062025_08_47_05_10610.jpg
/home/nano/Desktop/images/16062025/08/46/image_16062025_08_46_54_9597.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366517199","1366517224","1366517218","1366517193","1366517186","1366517171"],"photo_ids_order":["1366517171","1366517186","1366517193","1366517199","1366517218","1366517224"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8064e1662e36978ef66f45663427523e.jpg","text":"TemporaryFile(/tmp/multipartBody6803752656952704561asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056515582,"filename":"image_16062025_08_47_15_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/aa15c1c55e16726d7d52802c1d62de77.jpg","text":"TemporaryFile(/tmp/multipartBody6664208052202699717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056515582,"filename":"image_16062025_08_46_54_9597.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/30959ffb6b6dee09eee78f0241790b4e.jpg","text":"TemporaryFile(/tmp/multipartBody6359841597819729459asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056515582,"filename":"image_16062025_08_47_05_10610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/04903d1f04389cd45e0c5e1a89decff3.jpg","text":"TemporaryFile(/tmp/multipartBody3699321386123451733asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056515582,"filename":"image_16062025_08_47_24_9663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2fff3dc58fe70c4eac714a007a0ccafe.jpg","text":"TemporaryFile(/tmp/multipartBody2311590325734026750asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056515582,"filename":"image_16062025_08_47_35_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5e239376e65fd40d27d42af394dc378e.jpg","text":"TemporaryFile(/tmp/multipartBody5718714781773917553asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056515582,"filename":"image_16062025_08_47_45_9583.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366517193","file1":"1366517186","file0":"1366517171","file4":"1366517218","file5":"1366517224","file3":"1366517199"},"map_files_photo_id_array":[{"photo_id":"1366517224","filename":"file5"},{"photo_id":"1366517193","filename":"file2"},{"photo_id":"1366517218","filename":"file4"},{"photo_id":"1366517186","filename":"file1"},{"photo_id":"1366517171","filename":"file0"},{"photo_id":"1366517199","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366517199":["hashtag1","hashtag2"]},{"1366517224":["hashtag1","hashtag2"]},{"1366517218":["hashtag1","hashtag2"]},{"1366517193":["hashtag1","hashtag2"]},{"1366517186":["hashtag1","hashtag2"]},{"1366517171":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366517199, 1366517224, 1366517218, 1366517193, 1366517186, 1366517171)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 75.51444935798645 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:49:02.967762
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/48/image_16062025_08_48_35_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/08/48/image_16062025_08_48_25_10661.jpg', 2), ('/home/nano/Desktop/images/16062025/08/48/image_16062025_08_48_15_9698.jpg', 2), ('/home/nano/Desktop/images/16062025/08/47/image_16062025_08_48_05_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/08/47/image_16062025_08_47_55_10599.jpg', 2), ('/home/nano/Desktop/images/16062025/08/46/image_16062025_08_46_45_9667.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/08/48/image_16062025_08_48_35_9619.jpg', '/home/nano/Desktop/images/16062025/08/48/image_16062025_08_48_25_10661.jpg', '/home/nano/Desktop/images/16062025/08/48/image_16062025_08_48_15_9698.jpg', '/home/nano/Desktop/images/16062025/08/47/image_16062025_08_48_05_9646.jpg', '/home/nano/Desktop/images/16062025/08/47/image_16062025_08_47_55_10599.jpg', '/home/nano/Desktop/images/16062025/08/46/image_16062025_08_46_45_9667.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/08/48/image_16062025_08_48_35_9619.jpg
/home/nano/Desktop/images/16062025/08/48/image_16062025_08_48_25_10661.jpg
/home/nano/Desktop/images/16062025/08/48/image_16062025_08_48_15_9698.jpg
/home/nano/Desktop/images/16062025/08/47/image_16062025_08_48_05_9646.jpg
/home/nano/Desktop/images/16062025/08/47/image_16062025_08_47_55_10599.jpg
/home/nano/Desktop/images/16062025/08/46/image_16062025_08_46_45_9667.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366517311","1366517305","1366517316","1366517333","1366517336","1366517330"],"photo_ids_order":["1366517305","1366517311","1366517316","1366517330","1366517333","1366517336"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d31baa734ca985d775233663236e1290.jpg","text":"TemporaryFile(/tmp/multipartBody5110153178926091883asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056605331,"filename":"image_16062025_08_48_25_10661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b6bee4b2e09fec6ba4ad7d54de7a4c6c.jpg","text":"TemporaryFile(/tmp/multipartBody7382310254947219397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056605331,"filename":"image_16062025_08_48_35_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/68b28cc8de0ab2a780502a54778997ac.jpg","text":"TemporaryFile(/tmp/multipartBody7276408744864683727asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056605331,"filename":"image_16062025_08_48_15_9698.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/609f8e2418f257a7c592f626e6bf5b26.jpg","text":"TemporaryFile(/tmp/multipartBody7656669003003383664asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056605331,"filename":"image_16062025_08_47_55_10599.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8030875514725a1857c237334f0a74de.jpg","text":"TemporaryFile(/tmp/multipartBody7056955790496356555asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056605331,"filename":"image_16062025_08_46_45_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/05f6584acd4a86f626d0dc9901b2d8db.jpg","text":"TemporaryFile(/tmp/multipartBody54998673704332439asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056605331,"filename":"image_16062025_08_48_05_9646.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366517316","file1":"1366517311","file0":"1366517305","file4":"1366517333","file5":"1366517336","file3":"1366517330"},"map_files_photo_id_array":[{"photo_id":"1366517336","filename":"file5"},{"photo_id":"1366517316","filename":"file2"},{"photo_id":"1366517333","filename":"file4"},{"photo_id":"1366517311","filename":"file1"},{"photo_id":"1366517305","filename":"file0"},{"photo_id":"1366517330","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366517311":["hashtag1","hashtag2"]},{"1366517305":["hashtag1","hashtag2"]},{"1366517316":["hashtag1","hashtag2"]},{"1366517333":["hashtag1","hashtag2"]},{"1366517336":["hashtag1","hashtag2"]},{"1366517330":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366517311, 1366517305, 1366517316, 1366517333, 1366517336, 1366517330)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 92.40512251853943 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:50:47.096397
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/50/image_16062025_08_50_45_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/08/50/image_16062025_08_50_35_10617.jpg', 2), ('/home/nano/Desktop/images/16062025/08/50/image_16062025_08_50_25_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/08/50/image_16062025_08_50_15_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/08/49/image_16062025_08_50_04_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/08/49/image_16062025_08_49_55_9609.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/08/50/image_16062025_08_50_45_9617.jpg', '/home/nano/Desktop/images/16062025/08/50/image_16062025_08_50_35_10617.jpg', '/home/nano/Desktop/images/16062025/08/50/image_16062025_08_50_25_9602.jpg', '/home/nano/Desktop/images/16062025/08/50/image_16062025_08_50_15_10640.jpg', '/home/nano/Desktop/images/16062025/08/49/image_16062025_08_50_04_9614.jpg', '/home/nano/Desktop/images/16062025/08/49/image_16062025_08_49_55_9609.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/08/50/image_16062025_08_50_45_9617.jpg
/home/nano/Desktop/images/16062025/08/50/image_16062025_08_50_35_10617.jpg
/home/nano/Desktop/images/16062025/08/50/image_16062025_08_50_25_9602.jpg
/home/nano/Desktop/images/16062025/08/50/image_16062025_08_50_15_10640.jpg
/home/nano/Desktop/images/16062025/08/49/image_16062025_08_50_04_9614.jpg
/home/nano/Desktop/images/16062025/08/49/image_16062025_08_49_55_9609.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366517466","1366517352","1366517589","1366517607","1366517387","1366517501"],"photo_ids_order":["1366517352","1366517387","1366517466","1366517501","1366517589","1366517607"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dd6d3b7113a1267f254b8f948b13f7cc.jpg","text":"TemporaryFile(/tmp/multipartBody8781106787531777712asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056708558,"filename":"image_16062025_08_50_25_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e7e2569cdffda68746b02684909676bd.jpg","text":"TemporaryFile(/tmp/multipartBody581525985547869030asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056708558,"filename":"image_16062025_08_50_45_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9315c6684e87ddf1c4abdc00015de39e.jpg","text":"TemporaryFile(/tmp/multipartBody1431161617397225256asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056708558,"filename":"image_16062025_08_50_04_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a897778ef831bbf19919faf82a557825.jpg","text":"TemporaryFile(/tmp/multipartBody7354957852960300810asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056708558,"filename":"image_16062025_08_49_55_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f66b9eddbb7a9cf90d8590a4f6fa26d1.jpg","text":"TemporaryFile(/tmp/multipartBody1562195046183619380asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056708558,"filename":"image_16062025_08_50_35_10617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4fec261fe8b55f71bf8d32c03f2813f5.jpg","text":"TemporaryFile(/tmp/multipartBody7864526592942198601asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056708558,"filename":"image_16062025_08_50_15_10640.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366517466","file1":"1366517387","file0":"1366517352","file4":"1366517589","file5":"1366517607","file3":"1366517501"},"map_files_photo_id_array":[{"photo_id":"1366517607","filename":"file5"},{"photo_id":"1366517466","filename":"file2"},{"photo_id":"1366517589","filename":"file4"},{"photo_id":"1366517387","filename":"file1"},{"photo_id":"1366517352","filename":"file0"},{"photo_id":"1366517501","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366517466":["hashtag1","hashtag2"]},{"1366517352":["hashtag1","hashtag2"]},{"1366517589":["hashtag1","hashtag2"]},{"1366517607":["hashtag1","hashtag2"]},{"1366517387":["hashtag1","hashtag2"]},{"1366517501":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366517466, 1366517352, 1366517589, 1366517607, 1366517387, 1366517501)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 122.67604780197144 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:53:02.980558
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/52/image_16062025_08_52_25_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/08/52/image_16062025_08_52_14_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/08/51/image_16062025_08_52_05_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/08/51/image_16062025_08_51_55_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/08/51/image_16062025_08_51_45_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/08/51/image_16062025_08_51_35_10622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/08/52/image_16062025_08_52_25_10608.jpg', '/home/nano/Desktop/images/16062025/08/52/image_16062025_08_52_14_9637.jpg', '/home/nano/Desktop/images/16062025/08/51/image_16062025_08_52_05_9616.jpg', '/home/nano/Desktop/images/16062025/08/51/image_16062025_08_51_55_10610.jpg', '/home/nano/Desktop/images/16062025/08/51/image_16062025_08_51_45_9603.jpg', '/home/nano/Desktop/images/16062025/08/51/image_16062025_08_51_35_10622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/08/52/image_16062025_08_52_25_10608.jpg
/home/nano/Desktop/images/16062025/08/52/image_16062025_08_52_14_9637.jpg
/home/nano/Desktop/images/16062025/08/51/image_16062025_08_52_05_9616.jpg
/home/nano/Desktop/images/16062025/08/51/image_16062025_08_51_55_10610.jpg
/home/nano/Desktop/images/16062025/08/51/image_16062025_08_51_45_9603.jpg
/home/nano/Desktop/images/16062025/08/51/image_16062025_08_51_35_10622.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366517716","1366517673","1366517669","1366517678","1366517723","1366517683"],"photo_ids_order":["1366517669","1366517673","1366517678","1366517683","1366517716","1366517723"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c5d7081d14ca9a6cd765353e686da071.jpg","text":"TemporaryFile(/tmp/multipartBody8482726849018267819asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056844675,"filename":"image_16062025_08_51_45_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c544417e7e45f7d38c208952489560b2.jpg","text":"TemporaryFile(/tmp/multipartBody2447232472858459671asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056844675,"filename":"image_16062025_08_52_14_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/077f018df37c7529750f177e19282c6a.jpg","text":"TemporaryFile(/tmp/multipartBody2541759054277537951asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056844675,"filename":"image_16062025_08_52_25_10608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4244893150299e560d5981c9c6a8ebcf.jpg","text":"TemporaryFile(/tmp/multipartBody7170073251627698600asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056844675,"filename":"image_16062025_08_52_05_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/822cd00baff34d91a17d12af136a9740.jpg","text":"TemporaryFile(/tmp/multipartBody9141376011276383514asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056844675,"filename":"image_16062025_08_51_35_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8d08438b4c66c7f894d75f4a27c3cf86.jpg","text":"TemporaryFile(/tmp/multipartBody8029800562832388756asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056844675,"filename":"image_16062025_08_51_55_10610.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366517678","file1":"1366517673","file0":"1366517669","file4":"1366517716","file5":"1366517723","file3":"1366517683"},"map_files_photo_id_array":[{"photo_id":"1366517723","filename":"file5"},{"photo_id":"1366517678","filename":"file2"},{"photo_id":"1366517716","filename":"file4"},{"photo_id":"1366517673","filename":"file1"},{"photo_id":"1366517669","filename":"file0"},{"photo_id":"1366517683","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366517716":["hashtag1","hashtag2"]},{"1366517673":["hashtag1","hashtag2"]},{"1366517669":["hashtag1","hashtag2"]},{"1366517678":["hashtag1","hashtag2"]},{"1366517723":["hashtag1","hashtag2"]},{"1366517683":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366517716, 1366517673, 1366517669, 1366517678, 1366517723, 1366517683)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.576740026474 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:54:17.551728
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/54/image_16062025_08_54_44_9555.jpg', 2), ('/home/nano/Desktop/images/16062025/08/54/image_16062025_08_54_35_9556.jpg', 2), ('/home/nano/Desktop/images/16062025/08/54/image_16062025_08_54_25_10571.jpg', 2), ('/home/nano/Desktop/images/16062025/08/54/image_16062025_08_54_15_9585.jpg', 2), ('/home/nano/Desktop/images/16062025/08/53/image_16062025_08_54_05_10588.jpg', 2), ('/home/nano/Desktop/images/16062025/08/53/image_16062025_08_53_55_9556.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/08/54/image_16062025_08_54_44_9555.jpg', '/home/nano/Desktop/images/16062025/08/54/image_16062025_08_54_35_9556.jpg', '/home/nano/Desktop/images/16062025/08/54/image_16062025_08_54_25_10571.jpg', '/home/nano/Desktop/images/16062025/08/54/image_16062025_08_54_15_9585.jpg', '/home/nano/Desktop/images/16062025/08/53/image_16062025_08_54_05_10588.jpg', '/home/nano/Desktop/images/16062025/08/53/image_16062025_08_53_55_9556.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/08/54/image_16062025_08_54_44_9555.jpg
/home/nano/Desktop/images/16062025/08/54/image_16062025_08_54_35_9556.jpg
/home/nano/Desktop/images/16062025/08/54/image_16062025_08_54_25_10571.jpg
/home/nano/Desktop/images/16062025/08/54/image_16062025_08_54_15_9585.jpg
/home/nano/Desktop/images/16062025/08/53/image_16062025_08_54_05_10588.jpg
/home/nano/Desktop/images/16062025/08/53/image_16062025_08_53_55_9556.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366517775","1366517756","1366517750","1366517797","1366517791","1366517788"],"photo_ids_order":["1366517750","1366517756","1366517775","1366517788","1366517791","1366517797"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f1183e1cfba15107294dcc7b464d38e8.jpg","text":"TemporaryFile(/tmp/multipartBody3153684469893935248asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056922796,"filename":"image_16062025_08_54_25_10571.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5da4c671a82443c6068ec8f9dd42befc.jpg","text":"TemporaryFile(/tmp/multipartBody4964968834009453734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056922796,"filename":"image_16062025_08_54_35_9556.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c10e9a8c2ea121a71ceab76b76e13223.jpg","text":"TemporaryFile(/tmp/multipartBody4747371810314062332asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056922796,"filename":"image_16062025_08_54_44_9555.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/af7cfa10dd4efa12c0b8ed61141ad168.jpg","text":"TemporaryFile(/tmp/multipartBody962935313539190647asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056922796,"filename":"image_16062025_08_53_55_9556.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/043b5c4de7b75e48e456af64dafbc27f.jpg","text":"TemporaryFile(/tmp/multipartBody7867676074202899600asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056922796,"filename":"image_16062025_08_54_05_10588.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/20f9e0b5ce28da34aa73bba9d757700f.jpg","text":"TemporaryFile(/tmp/multipartBody7562036103041184922asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750056922796,"filename":"image_16062025_08_54_15_9585.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366517775","file1":"1366517756","file0":"1366517750","file4":"1366517791","file5":"1366517797","file3":"1366517788"},"map_files_photo_id_array":[{"photo_id":"1366517797","filename":"file5"},{"photo_id":"1366517775","filename":"file2"},{"photo_id":"1366517791","filename":"file4"},{"photo_id":"1366517756","filename":"file1"},{"photo_id":"1366517750","filename":"file0"},{"photo_id":"1366517788","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366517775":["hashtag1","hashtag2"]},{"1366517756":["hashtag1","hashtag2"]},{"1366517750":["hashtag1","hashtag2"]},{"1366517797":["hashtag1","hashtag2"]},{"1366517791":["hashtag1","hashtag2"]},{"1366517788":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366517775, 1366517756, 1366517750, 1366517797, 1366517791, 1366517788)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 76.47946453094482 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:55:47.663041
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/55/image_16062025_08_55_45_9661.jpg', 2), ('/home/nano/Desktop/images/16062025/08/55/image_16062025_08_55_35_10577.jpg', 2), ('/home/nano/Desktop/images/16062025/08/55/image_16062025_08_55_25_9558.jpg', 2), ('/home/nano/Desktop/images/16062025/08/55/image_16062025_08_55_15_10581.jpg', 2), ('/home/nano/Desktop/images/16062025/08/54/image_16062025_08_55_05_9571.jpg', 2), ('/home/nano/Desktop/images/16062025/08/54/image_16062025_08_54_55_10566.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/08/55/image_16062025_08_55_45_9661.jpg', '/home/nano/Desktop/images/16062025/08/55/image_16062025_08_55_35_10577.jpg', '/home/nano/Desktop/images/16062025/08/55/image_16062025_08_55_25_9558.jpg', '/home/nano/Desktop/images/16062025/08/55/image_16062025_08_55_15_10581.jpg', '/home/nano/Desktop/images/16062025/08/54/image_16062025_08_55_05_9571.jpg', '/home/nano/Desktop/images/16062025/08/54/image_16062025_08_54_55_10566.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/08/55/image_16062025_08_55_45_9661.jpg
/home/nano/Desktop/images/16062025/08/55/image_16062025_08_55_35_10577.jpg
/home/nano/Desktop/images/16062025/08/55/image_16062025_08_55_25_9558.jpg
/home/nano/Desktop/images/16062025/08/55/image_16062025_08_55_15_10581.jpg
/home/nano/Desktop/images/16062025/08/54/image_16062025_08_55_05_9571.jpg
/home/nano/Desktop/images/16062025/08/54/image_16062025_08_54_55_10566.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366518018","1366518055","1366517945","1366517974","1366517881","1366518052"],"photo_ids_order":["1366517881","1366517945","1366517974","1366518018","1366518052","1366518055"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d6e6d3dbf00ab752f3acf0171e35776e.jpg","text":"TemporaryFile(/tmp/multipartBody8020274577831758834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057009476,"filename":"image_16062025_08_55_15_10581.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c154e797133ab093a6d3b748fb30fcc6.jpg","text":"TemporaryFile(/tmp/multipartBody8958685946210805721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057009476,"filename":"image_16062025_08_54_55_10566.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a0460eb2e0b9f9ddf8af675d293007f3.jpg","text":"TemporaryFile(/tmp/multipartBody1704411969030611957asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057009476,"filename":"image_16062025_08_55_35_10577.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5a657398fa1cfff6442a7b17eb39d1f7.jpg","text":"TemporaryFile(/tmp/multipartBody3773217732696649272asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057009476,"filename":"image_16062025_08_55_25_9558.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f8334a99fc4b489b5ccb118b08367ff7.jpg","text":"TemporaryFile(/tmp/multipartBody5892543015417297017asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057009476,"filename":"image_16062025_08_55_45_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/70b25b0ba33ff690d1870520c6d045f6.jpg","text":"TemporaryFile(/tmp/multipartBody4238325175453183844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057009476,"filename":"image_16062025_08_55_05_9571.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366517974","file1":"1366517945","file0":"1366517881","file4":"1366518052","file5":"1366518055","file3":"1366518018"},"map_files_photo_id_array":[{"photo_id":"1366518055","filename":"file5"},{"photo_id":"1366517974","filename":"file2"},{"photo_id":"1366518052","filename":"file4"},{"photo_id":"1366517945","filename":"file1"},{"photo_id":"1366517881","filename":"file0"},{"photo_id":"1366518018","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366518018":["hashtag1","hashtag2"]},{"1366518055":["hashtag1","hashtag2"]},{"1366517945":["hashtag1","hashtag2"]},{"1366517974":["hashtag1","hashtag2"]},{"1366517881":["hashtag1","hashtag2"]},{"1366518052":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366518018, 1366518055, 1366517945, 1366517974, 1366517881, 1366518052)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 78.44303774833679 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:57:16.840419
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_44_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_35_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_25_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_15_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/08/56/image_16062025_08_57_05_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/08/56/image_16062025_08_56_54_9626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_44_9600.jpg', '/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_35_9602.jpg', '/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_25_10618.jpg', '/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_15_9640.jpg', '/home/nano/Desktop/images/16062025/08/56/image_16062025_08_57_05_10621.jpg', '/home/nano/Desktop/images/16062025/08/56/image_16062025_08_56_54_9626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_44_9600.jpg
/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_35_9602.jpg
/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_25_10618.jpg
/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_15_9640.jpg
/home/nano/Desktop/images/16062025/08/56/image_16062025_08_57_05_10621.jpg
/home/nano/Desktop/images/16062025/08/56/image_16062025_08_56_54_9626.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:58:02.641193
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_44_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_35_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_25_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_15_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/08/56/image_16062025_08_57_05_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/08/56/image_16062025_08_56_54_9626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_44_9600.jpg', '/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_35_9602.jpg', '/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_25_10618.jpg', '/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_15_9640.jpg', '/home/nano/Desktop/images/16062025/08/56/image_16062025_08_57_05_10621.jpg', '/home/nano/Desktop/images/16062025/08/56/image_16062025_08_56_54_9626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_44_9600.jpg
/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_35_9602.jpg
/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_25_10618.jpg
/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_15_9640.jpg
/home/nano/Desktop/images/16062025/08/56/image_16062025_08_57_05_10621.jpg
/home/nano/Desktop/images/16062025/08/56/image_16062025_08_56_54_9626.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366518121","1366518117","1366518102","1366518092","1366518119","1366518097"],"photo_ids_order":["1366518092","1366518097","1366518102","1366518117","1366518119","1366518121"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0663eee35f754bc2e91143a874d1ca29.jpg","text":"TemporaryFile(/tmp/multipartBody2197035090309113541asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057146107,"filename":"image_16062025_08_56_54_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1063239d1f50360e21c0e30d9fef11f8.jpg","text":"TemporaryFile(/tmp/multipartBody4907223514506042648asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057146107,"filename":"image_16062025_08_57_15_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fda3292d1f196d6c52c15058d6abfd03.jpg","text":"TemporaryFile(/tmp/multipartBody2033547108530146864asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057146107,"filename":"image_16062025_08_57_25_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/78cc30e513d3d34c996d416745f36b82.jpg","text":"TemporaryFile(/tmp/multipartBody4225381561056209545asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057146107,"filename":"image_16062025_08_57_44_9600.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/42d8e60c536b53e8d08a554aad8cbe65.jpg","text":"TemporaryFile(/tmp/multipartBody107352003874933036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057146107,"filename":"image_16062025_08_57_05_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1fffe91e8ebac6f75e29a1535540cff7.jpg","text":"TemporaryFile(/tmp/multipartBody4670171099398536580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057146107,"filename":"image_16062025_08_57_35_9602.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366518102","file1":"1366518097","file0":"1366518092","file4":"1366518119","file5":"1366518121","file3":"1366518117"},"map_files_photo_id_array":[{"photo_id":"1366518121","filename":"file5"},{"photo_id":"1366518102","filename":"file2"},{"photo_id":"1366518119","filename":"file4"},{"photo_id":"1366518097","filename":"file1"},{"photo_id":"1366518092","filename":"file0"},{"photo_id":"1366518117","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366518121":["hashtag1","hashtag2"]},{"1366518117":["hashtag1","hashtag2"]},{"1366518102":["hashtag1","hashtag2"]},{"1366518092":["hashtag1","hashtag2"]},{"1366518119":["hashtag1","hashtag2"]},{"1366518097":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366518121, 1366518117, 1366518102, 1366518092, 1366518119, 1366518097)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.298866748809814 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 08:59:03.203086
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/08/58/image_16062025_08_58_45_10615.jpg', 2), ('/home/nano/Desktop/images/16062025/08/58/image_16062025_08_58_35_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/08/58/image_16062025_08_58_25_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/08/58/image_16062025_08_58_15_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/08/57/image_16062025_08_58_05_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_55_10621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/08/58/image_16062025_08_58_45_10615.jpg', '/home/nano/Desktop/images/16062025/08/58/image_16062025_08_58_35_9629.jpg', '/home/nano/Desktop/images/16062025/08/58/image_16062025_08_58_25_9619.jpg', '/home/nano/Desktop/images/16062025/08/58/image_16062025_08_58_15_10630.jpg', '/home/nano/Desktop/images/16062025/08/57/image_16062025_08_58_05_9617.jpg', '/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_55_10621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/08/58/image_16062025_08_58_45_10615.jpg
/home/nano/Desktop/images/16062025/08/58/image_16062025_08_58_35_9629.jpg
/home/nano/Desktop/images/16062025/08/58/image_16062025_08_58_25_9619.jpg
/home/nano/Desktop/images/16062025/08/58/image_16062025_08_58_15_10630.jpg
/home/nano/Desktop/images/16062025/08/57/image_16062025_08_58_05_9617.jpg
/home/nano/Desktop/images/16062025/08/57/image_16062025_08_57_55_10621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366518288","1366518315","1366518323","1366518266","1366518335","1366518343"],"photo_ids_order":["1366518266","1366518288","1366518315","1366518323","1366518335","1366518343"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2a8b888a24587d2b83051f0a0040b16d.jpg","text":"TemporaryFile(/tmp/multipartBody6254147819403758163asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057212713,"filename":"image_16062025_08_58_35_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fe5cd60a3a8c7c57f800705a300c2195.jpg","text":"TemporaryFile(/tmp/multipartBody3692685158964290123asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057212713,"filename":"image_16062025_08_58_25_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/befb808df434af5ef9f31d1d249f3cf1.jpg","text":"TemporaryFile(/tmp/multipartBody8991719967280276977asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057212713,"filename":"image_16062025_08_58_15_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/034525af83e6e2c76a0c51a2b785b02b.jpg","text":"TemporaryFile(/tmp/multipartBody6480002395445269923asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057212713,"filename":"image_16062025_08_58_45_10615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/da6c4a1be638ba68df730375a00dcd55.jpg","text":"TemporaryFile(/tmp/multipartBody6796428309615143080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057212713,"filename":"image_16062025_08_58_05_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0d101f94def112996cd7afda021b5ee7.jpg","text":"TemporaryFile(/tmp/multipartBody440834421934648509asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057212713,"filename":"image_16062025_08_57_55_10621.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366518315","file1":"1366518288","file0":"1366518266","file4":"1366518335","file5":"1366518343","file3":"1366518323"},"map_files_photo_id_array":[{"photo_id":"1366518343","filename":"file5"},{"photo_id":"1366518315","filename":"file2"},{"photo_id":"1366518335","filename":"file4"},{"photo_id":"1366518288","filename":"file1"},{"photo_id":"1366518266","filename":"file0"},{"photo_id":"1366518323","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366518288":["hashtag1","hashtag2"]},{"1366518315":["hashtag1","hashtag2"]},{"1366518323":["hashtag1","hashtag2"]},{"1366518266":["hashtag1","hashtag2"]},{"1366518335":["hashtag1","hashtag2"]},{"1366518343":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366518288, 1366518315, 1366518323, 1366518266, 1366518335, 1366518343)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 120.92149496078491 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:01:17.260584
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/01/image_16062025_09_01_45_10600.jpg', 2), ('/home/nano/Desktop/images/16062025/09/01/image_16062025_09_01_35_9596.jpg', 2), ('/home/nano/Desktop/images/16062025/09/01/image_16062025_09_01_25_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/09/01/image_16062025_09_01_15_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/09/00/image_16062025_09_01_05_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/09/00/image_16062025_09_00_55_10599.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/01/image_16062025_09_01_45_10600.jpg', '/home/nano/Desktop/images/16062025/09/01/image_16062025_09_01_35_9596.jpg', '/home/nano/Desktop/images/16062025/09/01/image_16062025_09_01_25_9609.jpg', '/home/nano/Desktop/images/16062025/09/01/image_16062025_09_01_15_10638.jpg', '/home/nano/Desktop/images/16062025/09/00/image_16062025_09_01_05_9611.jpg', '/home/nano/Desktop/images/16062025/09/00/image_16062025_09_00_55_10599.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/01/image_16062025_09_01_45_10600.jpg
/home/nano/Desktop/images/16062025/09/01/image_16062025_09_01_35_9596.jpg
/home/nano/Desktop/images/16062025/09/01/image_16062025_09_01_25_9609.jpg
/home/nano/Desktop/images/16062025/09/01/image_16062025_09_01_15_10638.jpg
/home/nano/Desktop/images/16062025/09/00/image_16062025_09_01_05_9611.jpg
/home/nano/Desktop/images/16062025/09/00/image_16062025_09_00_55_10599.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366518363","1366518392","1366518437","1366518359","1366518367","1366518355"],"photo_ids_order":["1366518355","1366518359","1366518363","1366518367","1366518392","1366518437"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d4b47b6d8fadccbba90d058c122c8720.jpg","text":"TemporaryFile(/tmp/multipartBody592313850441784971asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057338902,"filename":"image_16062025_09_01_25_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c4f8418fa0dfc04545236f3e732041dc.jpg","text":"TemporaryFile(/tmp/multipartBody68498806197182260asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057338902,"filename":"image_16062025_09_01_05_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8885aeebe767d620d09acb19d81c9f63.jpg","text":"TemporaryFile(/tmp/multipartBody4355999775088864027asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057338902,"filename":"image_16062025_09_00_55_10599.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ea51f79828a7a9c7207c660459761119.jpg","text":"TemporaryFile(/tmp/multipartBody7796302974279517670asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057338902,"filename":"image_16062025_09_01_35_9596.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cc95d173e0e9527863bc28a752445aef.jpg","text":"TemporaryFile(/tmp/multipartBody6593779706573650292asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057338902,"filename":"image_16062025_09_01_15_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f7d4bca30fded10b3356feac527d3cac.jpg","text":"TemporaryFile(/tmp/multipartBody689586734180941091asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057338902,"filename":"image_16062025_09_01_45_10600.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366518363","file1":"1366518359","file0":"1366518355","file4":"1366518392","file5":"1366518437","file3":"1366518367"},"map_files_photo_id_array":[{"photo_id":"1366518437","filename":"file5"},{"photo_id":"1366518363","filename":"file2"},{"photo_id":"1366518392","filename":"file4"},{"photo_id":"1366518359","filename":"file1"},{"photo_id":"1366518355","filename":"file0"},{"photo_id":"1366518367","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366518363":["hashtag1","hashtag2"]},{"1366518392":["hashtag1","hashtag2"]},{"1366518437":["hashtag1","hashtag2"]},{"1366518359":["hashtag1","hashtag2"]},{"1366518367":["hashtag1","hashtag2"]},{"1366518355":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366518363, 1366518392, 1366518437, 1366518359, 1366518367, 1366518355)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 55.48408007621765 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:02:17.356251
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/02/image_16062025_09_02_45_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/09/02/image_16062025_09_02_35_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/09/02/image_16062025_09_02_25_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/09/02/image_16062025_09_02_15_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/09/01/image_16062025_09_02_05_10603.jpg', 2), ('/home/nano/Desktop/images/16062025/09/01/image_16062025_09_01_55_9587.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/02/image_16062025_09_02_45_9597.jpg', '/home/nano/Desktop/images/16062025/09/02/image_16062025_09_02_35_10610.jpg', '/home/nano/Desktop/images/16062025/09/02/image_16062025_09_02_25_9608.jpg', '/home/nano/Desktop/images/16062025/09/02/image_16062025_09_02_15_9616.jpg', '/home/nano/Desktop/images/16062025/09/01/image_16062025_09_02_05_10603.jpg', '/home/nano/Desktop/images/16062025/09/01/image_16062025_09_01_55_9587.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/02/image_16062025_09_02_45_9597.jpg
/home/nano/Desktop/images/16062025/09/02/image_16062025_09_02_35_10610.jpg
/home/nano/Desktop/images/16062025/09/02/image_16062025_09_02_25_9608.jpg
/home/nano/Desktop/images/16062025/09/02/image_16062025_09_02_15_9616.jpg
/home/nano/Desktop/images/16062025/09/01/image_16062025_09_02_05_10603.jpg
/home/nano/Desktop/images/16062025/09/01/image_16062025_09_01_55_9587.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366518636","1366518570","1366518738","1366518710","1366518586","1366518535"],"photo_ids_order":["1366518535","1366518570","1366518586","1366518636","1366518710","1366518738"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/57ed42d0f2284b1774266d99b3e16adc.jpg","text":"TemporaryFile(/tmp/multipartBody3600180949080381782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057398729,"filename":"image_16062025_09_02_15_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1e687a773657481fbadc729fe840f194.jpg","text":"TemporaryFile(/tmp/multipartBody3165450364207460352asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057398729,"filename":"image_16062025_09_02_35_10610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/156531d5b2299c7900ea8cd9f9a17b08.jpg","text":"TemporaryFile(/tmp/multipartBody8122714584365848966asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057398729,"filename":"image_16062025_09_01_55_9587.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/01a0d5c932545cb6c3ccbe8963525c00.jpg","text":"TemporaryFile(/tmp/multipartBody8647340240043694625asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057398729,"filename":"image_16062025_09_02_05_10603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a5730ae6b4d053eee3dd221e04f17a75.jpg","text":"TemporaryFile(/tmp/multipartBody8288581123213614765asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057398729,"filename":"image_16062025_09_02_25_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/32d913431fae5cca7b12a8b24a53c388.jpg","text":"TemporaryFile(/tmp/multipartBody5142582368395543207asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057398729,"filename":"image_16062025_09_02_45_9597.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366518586","file1":"1366518570","file0":"1366518535","file4":"1366518710","file5":"1366518738","file3":"1366518636"},"map_files_photo_id_array":[{"photo_id":"1366518738","filename":"file5"},{"photo_id":"1366518586","filename":"file2"},{"photo_id":"1366518710","filename":"file4"},{"photo_id":"1366518570","filename":"file1"},{"photo_id":"1366518535","filename":"file0"},{"photo_id":"1366518636","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366518636":["hashtag1","hashtag2"]},{"1366518570":["hashtag1","hashtag2"]},{"1366518738":["hashtag1","hashtag2"]},{"1366518710":["hashtag1","hashtag2"]},{"1366518586":["hashtag1","hashtag2"]},{"1366518535":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366518636, 1366518570, 1366518738, 1366518710, 1366518586, 1366518535)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 51.58869671821594 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:03:17.550316
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/03/image_16062025_09_03_45_9683.jpg', 2), ('/home/nano/Desktop/images/16062025/09/03/image_16062025_09_03_35_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/09/03/image_16062025_09_03_25_10706.jpg', 2), ('/home/nano/Desktop/images/16062025/09/03/image_16062025_09_03_15_9666.jpg', 2), ('/home/nano/Desktop/images/16062025/09/02/image_16062025_09_03_05_9596.jpg', 2), ('/home/nano/Desktop/images/16062025/09/02/image_16062025_09_02_55_10601.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/03/image_16062025_09_03_45_9683.jpg', '/home/nano/Desktop/images/16062025/09/03/image_16062025_09_03_35_9638.jpg', '/home/nano/Desktop/images/16062025/09/03/image_16062025_09_03_25_10706.jpg', '/home/nano/Desktop/images/16062025/09/03/image_16062025_09_03_15_9666.jpg', '/home/nano/Desktop/images/16062025/09/02/image_16062025_09_03_05_9596.jpg', '/home/nano/Desktop/images/16062025/09/02/image_16062025_09_02_55_10601.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/03/image_16062025_09_03_45_9683.jpg
/home/nano/Desktop/images/16062025/09/03/image_16062025_09_03_35_9638.jpg
/home/nano/Desktop/images/16062025/09/03/image_16062025_09_03_25_10706.jpg
/home/nano/Desktop/images/16062025/09/03/image_16062025_09_03_15_9666.jpg
/home/nano/Desktop/images/16062025/09/02/image_16062025_09_03_05_9596.jpg
/home/nano/Desktop/images/16062025/09/02/image_16062025_09_02_55_10601.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366518792","1366518780","1366518776","1366518785","1366518788","1366518796"],"photo_ids_order":["1366518776","1366518780","1366518785","1366518788","1366518792","1366518796"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dbd04a216c6a342993700366e8fd9f69.jpg","text":"TemporaryFile(/tmp/multipartBody6272772916909570537asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057460779,"filename":"image_16062025_09_03_05_9596.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/32d18382dbe008643c48537c1aa78250.jpg","text":"TemporaryFile(/tmp/multipartBody128322083123066208asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057460779,"filename":"image_16062025_09_03_35_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/730223bcc249132db8e1338ba7659107.jpg","text":"TemporaryFile(/tmp/multipartBody6198588884607271196asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057460779,"filename":"image_16062025_09_03_45_9683.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/af548de8718c2b83adf9a6b61a05d6e7.jpg","text":"TemporaryFile(/tmp/multipartBody4417618188415684463asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057460779,"filename":"image_16062025_09_03_25_10706.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c2389e1af595069c1f8b541330205e30.jpg","text":"TemporaryFile(/tmp/multipartBody6534909984152460229asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057460779,"filename":"image_16062025_09_03_15_9666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3c85a0fe2d95436dfa27cae5a7cbe39f.jpg","text":"TemporaryFile(/tmp/multipartBody8723411909408180833asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057460779,"filename":"image_16062025_09_02_55_10601.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366518785","file1":"1366518780","file0":"1366518776","file4":"1366518792","file5":"1366518796","file3":"1366518788"},"map_files_photo_id_array":[{"photo_id":"1366518796","filename":"file5"},{"photo_id":"1366518785","filename":"file2"},{"photo_id":"1366518792","filename":"file4"},{"photo_id":"1366518780","filename":"file1"},{"photo_id":"1366518776","filename":"file0"},{"photo_id":"1366518788","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366518792":["hashtag1","hashtag2"]},{"1366518780":["hashtag1","hashtag2"]},{"1366518776":["hashtag1","hashtag2"]},{"1366518785":["hashtag1","hashtag2"]},{"1366518788":["hashtag1","hashtag2"]},{"1366518796":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366518792, 1366518780, 1366518776, 1366518785, 1366518788, 1366518796)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 56.47755765914917 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:04:17.548287
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/04/image_16062025_09_04_45_10731.jpg', 2), ('/home/nano/Desktop/images/16062025/09/04/image_16062025_09_04_34_9684.jpg', 2), ('/home/nano/Desktop/images/16062025/09/04/image_16062025_09_04_25_9700.jpg', 2), ('/home/nano/Desktop/images/16062025/09/04/image_16062025_09_04_15_9855.jpg', 2), ('/home/nano/Desktop/images/16062025/09/03/image_16062025_09_04_05_9879.jpg', 2), ('/home/nano/Desktop/images/16062025/09/03/image_16062025_09_03_55_10686.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/04/image_16062025_09_04_45_10731.jpg', '/home/nano/Desktop/images/16062025/09/04/image_16062025_09_04_34_9684.jpg', '/home/nano/Desktop/images/16062025/09/04/image_16062025_09_04_25_9700.jpg', '/home/nano/Desktop/images/16062025/09/04/image_16062025_09_04_15_9855.jpg', '/home/nano/Desktop/images/16062025/09/03/image_16062025_09_04_05_9879.jpg', '/home/nano/Desktop/images/16062025/09/03/image_16062025_09_03_55_10686.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/04/image_16062025_09_04_45_10731.jpg
/home/nano/Desktop/images/16062025/09/04/image_16062025_09_04_34_9684.jpg
/home/nano/Desktop/images/16062025/09/04/image_16062025_09_04_25_9700.jpg
/home/nano/Desktop/images/16062025/09/04/image_16062025_09_04_15_9855.jpg
/home/nano/Desktop/images/16062025/09/03/image_16062025_09_04_05_9879.jpg
/home/nano/Desktop/images/16062025/09/03/image_16062025_09_03_55_10686.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366518888","1366518839","1366518892","1366518844","1366518904","1366518897"],"photo_ids_order":["1366518839","1366518844","1366518888","1366518892","1366518897","1366518904"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/526a2cb951b79b9e096f011205ae2b7f.jpg","text":"TemporaryFile(/tmp/multipartBody3724276057437811580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057520585,"filename":"image_16062025_09_04_25_9700.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1c77ed95f88a17b13d9a84f6b352112d.jpg","text":"TemporaryFile(/tmp/multipartBody8989894998234145684asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057520585,"filename":"image_16062025_09_04_45_10731.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d58cefac50b1ceecabfc837c0c266957.jpg","text":"TemporaryFile(/tmp/multipartBody1289845023938625155asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057520585,"filename":"image_16062025_09_04_15_9855.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/39471d1fce964725ccee270a9d3c1b70.jpg","text":"TemporaryFile(/tmp/multipartBody49422620041430416asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057520585,"filename":"image_16062025_09_04_34_9684.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a3bd3d52c9107240023294d5df0369a9.jpg","text":"TemporaryFile(/tmp/multipartBody6702410919602042282asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057520585,"filename":"image_16062025_09_03_55_10686.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/53f994e0b76443dde0cc9b1bbafc9cf3.jpg","text":"TemporaryFile(/tmp/multipartBody6307550321260782633asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057520585,"filename":"image_16062025_09_04_05_9879.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366518888","file1":"1366518844","file0":"1366518839","file4":"1366518897","file5":"1366518904","file3":"1366518892"},"map_files_photo_id_array":[{"photo_id":"1366518904","filename":"file5"},{"photo_id":"1366518888","filename":"file2"},{"photo_id":"1366518897","filename":"file4"},{"photo_id":"1366518844","filename":"file1"},{"photo_id":"1366518839","filename":"file0"},{"photo_id":"1366518892","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366518888":["hashtag1","hashtag2"]},{"1366518839":["hashtag1","hashtag2"]},{"1366518892":["hashtag1","hashtag2"]},{"1366518844":["hashtag1","hashtag2"]},{"1366518904":["hashtag1","hashtag2"]},{"1366518897":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366518888, 1366518839, 1366518892, 1366518844, 1366518904, 1366518897)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 83.59948778152466 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:05:47.719113
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/05/image_16062025_09_05_45_9834.jpg', 2), ('/home/nano/Desktop/images/16062025/09/05/image_16062025_09_05_35_9861.jpg', 2), ('/home/nano/Desktop/images/16062025/09/05/image_16062025_09_05_25_10818.jpg', 2), ('/home/nano/Desktop/images/16062025/09/05/image_16062025_09_05_14_9747.jpg', 2), ('/home/nano/Desktop/images/16062025/09/04/image_16062025_09_05_05_9837.jpg', 2), ('/home/nano/Desktop/images/16062025/09/04/image_16062025_09_04_55_9704.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/05/image_16062025_09_05_45_9834.jpg', '/home/nano/Desktop/images/16062025/09/05/image_16062025_09_05_35_9861.jpg', '/home/nano/Desktop/images/16062025/09/05/image_16062025_09_05_25_10818.jpg', '/home/nano/Desktop/images/16062025/09/05/image_16062025_09_05_14_9747.jpg', '/home/nano/Desktop/images/16062025/09/04/image_16062025_09_05_05_9837.jpg', '/home/nano/Desktop/images/16062025/09/04/image_16062025_09_04_55_9704.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/05/image_16062025_09_05_45_9834.jpg
/home/nano/Desktop/images/16062025/09/05/image_16062025_09_05_35_9861.jpg
/home/nano/Desktop/images/16062025/09/05/image_16062025_09_05_25_10818.jpg
/home/nano/Desktop/images/16062025/09/05/image_16062025_09_05_14_9747.jpg
/home/nano/Desktop/images/16062025/09/04/image_16062025_09_05_05_9837.jpg
/home/nano/Desktop/images/16062025/09/04/image_16062025_09_04_55_9704.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366519224","1366518977","1366518956","1366518967","1366518964","1366519083"],"photo_ids_order":["1366518956","1366518964","1366518967","1366518977","1366519083","1366519224"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/97e719bad2e6581b168586de9d123398.jpg","text":"TemporaryFile(/tmp/multipartBody26763616243925324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057612369,"filename":"image_16062025_09_04_55_9704.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/baaba0a4e9466ad5b57fe9e97da5e63d.jpg","text":"TemporaryFile(/tmp/multipartBody3309352863739156930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057612369,"filename":"image_16062025_09_05_14_9747.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9975a9ae872ee51ac88e212cf569781d.jpg","text":"TemporaryFile(/tmp/multipartBody8278769817477112673asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057612369,"filename":"image_16062025_09_05_45_9834.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/84cfa31dccbcf0d51d0052a668aec45d.jpg","text":"TemporaryFile(/tmp/multipartBody6271058638847124480asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057612369,"filename":"image_16062025_09_05_25_10818.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8190db7b9afa7302fa0377fa8ad13929.jpg","text":"TemporaryFile(/tmp/multipartBody7506473298520029300asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057612369,"filename":"image_16062025_09_05_35_9861.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4db1d5d0475f1f531ad32d823799e63a.jpg","text":"TemporaryFile(/tmp/multipartBody2079980213753817141asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057612369,"filename":"image_16062025_09_05_05_9837.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366518967","file1":"1366518964","file0":"1366518956","file4":"1366519083","file5":"1366519224","file3":"1366518977"},"map_files_photo_id_array":[{"photo_id":"1366519224","filename":"file5"},{"photo_id":"1366518967","filename":"file2"},{"photo_id":"1366519083","filename":"file4"},{"photo_id":"1366518964","filename":"file1"},{"photo_id":"1366518956","filename":"file0"},{"photo_id":"1366518977","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366519224":["hashtag1","hashtag2"]},{"1366518977":["hashtag1","hashtag2"]},{"1366518956":["hashtag1","hashtag2"]},{"1366518967":["hashtag1","hashtag2"]},{"1366518964":["hashtag1","hashtag2"]},{"1366519083":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366519224, 1366518977, 1366518956, 1366518967, 1366518964, 1366519083)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 86.38351154327393 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:07:16.911000
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/07/image_16062025_09_07_45_10780.jpg', 2), ('/home/nano/Desktop/images/16062025/09/07/image_16062025_09_07_35_9728.jpg', 2), ('/home/nano/Desktop/images/16062025/09/07/image_16062025_09_07_25_9779.jpg', 2), ('/home/nano/Desktop/images/16062025/09/07/image_16062025_09_07_15_9760.jpg', 2), ('/home/nano/Desktop/images/16062025/09/06/image_16062025_09_07_05_10755.jpg', 2), ('/home/nano/Desktop/images/16062025/09/06/image_16062025_09_06_54_9814.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/07/image_16062025_09_07_45_10780.jpg', '/home/nano/Desktop/images/16062025/09/07/image_16062025_09_07_35_9728.jpg', '/home/nano/Desktop/images/16062025/09/07/image_16062025_09_07_25_9779.jpg', '/home/nano/Desktop/images/16062025/09/07/image_16062025_09_07_15_9760.jpg', '/home/nano/Desktop/images/16062025/09/06/image_16062025_09_07_05_10755.jpg', '/home/nano/Desktop/images/16062025/09/06/image_16062025_09_06_54_9814.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/07/image_16062025_09_07_45_10780.jpg
/home/nano/Desktop/images/16062025/09/07/image_16062025_09_07_35_9728.jpg
/home/nano/Desktop/images/16062025/09/07/image_16062025_09_07_25_9779.jpg
/home/nano/Desktop/images/16062025/09/07/image_16062025_09_07_15_9760.jpg
/home/nano/Desktop/images/16062025/09/06/image_16062025_09_07_05_10755.jpg
/home/nano/Desktop/images/16062025/09/06/image_16062025_09_06_54_9814.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366519370","1366519337","1366519319","1366519429","1366519420","1366519377"],"photo_ids_order":["1366519319","1366519337","1366519370","1366519377","1366519420","1366519429"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/da081432ccd3f64eeba7d1c901261355.jpg","text":"TemporaryFile(/tmp/multipartBody4296377269706819191asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057702599,"filename":"image_16062025_09_07_25_9779.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/984eb66f68eeed37568af11e528a3861.jpg","text":"TemporaryFile(/tmp/multipartBody1294319130682289297asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057702599,"filename":"image_16062025_09_07_35_9728.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e2b39a0c9767c811a98bc1202e9cb58e.jpg","text":"TemporaryFile(/tmp/multipartBody1226415898589037240asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057702599,"filename":"image_16062025_09_07_45_10780.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/feb6e4a3e1bb6b18ab7f8849c89dc9e8.jpg","text":"TemporaryFile(/tmp/multipartBody30704671535061812asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057702599,"filename":"image_16062025_09_06_54_9814.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/98421f1afae832606e7488538e9e2937.jpg","text":"TemporaryFile(/tmp/multipartBody4575986140406672905asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057702599,"filename":"image_16062025_09_07_05_10755.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2be29cb0ce613f64c87837bc5efef751.jpg","text":"TemporaryFile(/tmp/multipartBody6393406340183185985asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057702599,"filename":"image_16062025_09_07_15_9760.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366519370","file1":"1366519337","file0":"1366519319","file4":"1366519420","file5":"1366519429","file3":"1366519377"},"map_files_photo_id_array":[{"photo_id":"1366519429","filename":"file5"},{"photo_id":"1366519370","filename":"file2"},{"photo_id":"1366519420","filename":"file4"},{"photo_id":"1366519337","filename":"file1"},{"photo_id":"1366519319","filename":"file0"},{"photo_id":"1366519377","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366519370":["hashtag1","hashtag2"]},{"1366519337":["hashtag1","hashtag2"]},{"1366519319":["hashtag1","hashtag2"]},{"1366519429":["hashtag1","hashtag2"]},{"1366519420":["hashtag1","hashtag2"]},{"1366519377":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366519370, 1366519337, 1366519319, 1366519429, 1366519420, 1366519377)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 59.029620885849 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:08:17.019245
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/08/image_16062025_09_08_45_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/09/08/image_16062025_09_08_35_9695.jpg', 2), ('/home/nano/Desktop/images/16062025/09/08/image_16062025_09_08_25_10753.jpg', 2), ('/home/nano/Desktop/images/16062025/09/08/image_16062025_09_08_15_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/09/07/image_16062025_09_08_05_9806.jpg', 2), ('/home/nano/Desktop/images/16062025/09/07/image_16062025_09_07_55_9783.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/08/image_16062025_09_08_45_9639.jpg', '/home/nano/Desktop/images/16062025/09/08/image_16062025_09_08_35_9695.jpg', '/home/nano/Desktop/images/16062025/09/08/image_16062025_09_08_25_10753.jpg', '/home/nano/Desktop/images/16062025/09/08/image_16062025_09_08_15_9659.jpg', '/home/nano/Desktop/images/16062025/09/07/image_16062025_09_08_05_9806.jpg', '/home/nano/Desktop/images/16062025/09/07/image_16062025_09_07_55_9783.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/08/image_16062025_09_08_45_9639.jpg
/home/nano/Desktop/images/16062025/09/08/image_16062025_09_08_35_9695.jpg
/home/nano/Desktop/images/16062025/09/08/image_16062025_09_08_25_10753.jpg
/home/nano/Desktop/images/16062025/09/08/image_16062025_09_08_15_9659.jpg
/home/nano/Desktop/images/16062025/09/07/image_16062025_09_08_05_9806.jpg
/home/nano/Desktop/images/16062025/09/07/image_16062025_09_07_55_9783.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366519442","1366519462","1366519456","1366519525","1366519504","1366519482"],"photo_ids_order":["1366519442","1366519456","1366519462","1366519482","1366519504","1366519525"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6c95a156cdddd1bcb20bb7c0859007ef.jpg","text":"TemporaryFile(/tmp/multipartBody5482041521871115359asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057758799,"filename":"image_16062025_09_08_45_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/39a437b78be96a3eee96ebae887c6cf8.jpg","text":"TemporaryFile(/tmp/multipartBody657847538851606385asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057758799,"filename":"image_16062025_09_08_25_10753.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/56e70e096953d58ced9d69ce9a63dd77.jpg","text":"TemporaryFile(/tmp/multipartBody5818443666455471995asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057758799,"filename":"image_16062025_09_08_35_9695.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4806ec7ec4c7a04a4d6cd153b369b77e.jpg","text":"TemporaryFile(/tmp/multipartBody6682103362238637304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057758799,"filename":"image_16062025_09_07_55_9783.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b53dd765a26a8d8aedaee19f7c4936ca.jpg","text":"TemporaryFile(/tmp/multipartBody2568860371647128610asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057758799,"filename":"image_16062025_09_08_05_9806.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/90799c063d14c8e567239e73f044dc60.jpg","text":"TemporaryFile(/tmp/multipartBody6298700035668048596asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057758799,"filename":"image_16062025_09_08_15_9659.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366519462","file1":"1366519456","file0":"1366519442","file4":"1366519504","file5":"1366519525","file3":"1366519482"},"map_files_photo_id_array":[{"photo_id":"1366519525","filename":"file5"},{"photo_id":"1366519462","filename":"file2"},{"photo_id":"1366519504","filename":"file4"},{"photo_id":"1366519456","filename":"file1"},{"photo_id":"1366519442","filename":"file0"},{"photo_id":"1366519482","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366519442":["hashtag1","hashtag2"]},{"1366519462":["hashtag1","hashtag2"]},{"1366519456":["hashtag1","hashtag2"]},{"1366519525":["hashtag1","hashtag2"]},{"1366519504":["hashtag1","hashtag2"]},{"1366519482":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366519442, 1366519462, 1366519456, 1366519525, 1366519504, 1366519482)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 65.58580040931702 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:09:32.156580
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/09/image_16062025_09_09_45_9777.jpg', 2), ('/home/nano/Desktop/images/16062025/09/09/image_16062025_09_09_35_10757.jpg', 2), ('/home/nano/Desktop/images/16062025/09/09/image_16062025_09_09_25_9730.jpg', 2), ('/home/nano/Desktop/images/16062025/09/09/image_16062025_09_09_15_9716.jpg', 2), ('/home/nano/Desktop/images/16062025/09/08/image_16062025_09_09_05_10663.jpg', 2), ('/home/nano/Desktop/images/16062025/09/08/image_16062025_09_08_54_9771.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/09/image_16062025_09_09_45_9777.jpg', '/home/nano/Desktop/images/16062025/09/09/image_16062025_09_09_35_10757.jpg', '/home/nano/Desktop/images/16062025/09/09/image_16062025_09_09_25_9730.jpg', '/home/nano/Desktop/images/16062025/09/09/image_16062025_09_09_15_9716.jpg', '/home/nano/Desktop/images/16062025/09/08/image_16062025_09_09_05_10663.jpg', '/home/nano/Desktop/images/16062025/09/08/image_16062025_09_08_54_9771.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/09/image_16062025_09_09_45_9777.jpg
/home/nano/Desktop/images/16062025/09/09/image_16062025_09_09_35_10757.jpg
/home/nano/Desktop/images/16062025/09/09/image_16062025_09_09_25_9730.jpg
/home/nano/Desktop/images/16062025/09/09/image_16062025_09_09_15_9716.jpg
/home/nano/Desktop/images/16062025/09/08/image_16062025_09_09_05_10663.jpg
/home/nano/Desktop/images/16062025/09/08/image_16062025_09_08_54_9771.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366519574","1366519553","1366519547","1366519564","1366519558","1366519569"],"photo_ids_order":["1366519547","1366519553","1366519558","1366519564","1366519569","1366519574"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5a0a865fc844442aca4826735c79e6d3.jpg","text":"TemporaryFile(/tmp/multipartBody4001233806107146219asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057841285,"filename":"image_16062025_09_08_54_9771.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/370d4603b4bda3c35f599cd3f5537bd9.jpg","text":"TemporaryFile(/tmp/multipartBody5432392183976563992asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057841285,"filename":"image_16062025_09_09_35_10757.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6b427be6aac3d00c50e6817d35587c82.jpg","text":"TemporaryFile(/tmp/multipartBody975435469611789015asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057841285,"filename":"image_16062025_09_09_45_9777.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d78c8e833b112d906f795adad1568078.jpg","text":"TemporaryFile(/tmp/multipartBody8850192486085329299asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057841285,"filename":"image_16062025_09_09_15_9716.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/176e93ccaf4e7e6edc4bf58d2a730cf2.jpg","text":"TemporaryFile(/tmp/multipartBody9213012061901724958asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057841285,"filename":"image_16062025_09_09_25_9730.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a8fd4a3c21357f85aed8237ed7665d69.jpg","text":"TemporaryFile(/tmp/multipartBody1995185274445386463asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057841285,"filename":"image_16062025_09_09_05_10663.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366519558","file1":"1366519553","file0":"1366519547","file4":"1366519569","file5":"1366519574","file3":"1366519564"},"map_files_photo_id_array":[{"photo_id":"1366519574","filename":"file5"},{"photo_id":"1366519558","filename":"file2"},{"photo_id":"1366519569","filename":"file4"},{"photo_id":"1366519553","filename":"file1"},{"photo_id":"1366519547","filename":"file0"},{"photo_id":"1366519564","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366519574":["hashtag1","hashtag2"]},{"1366519553":["hashtag1","hashtag2"]},{"1366519547":["hashtag1","hashtag2"]},{"1366519564":["hashtag1","hashtag2"]},{"1366519558":["hashtag1","hashtag2"]},{"1366519569":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366519574, 1366519553, 1366519547, 1366519564, 1366519558, 1366519569)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 87.80810284614563 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:11:02.939649
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/10/image_16062025_09_10_44_9727.jpg', 2), ('/home/nano/Desktop/images/16062025/09/10/image_16062025_09_10_35_9744.jpg', 2), ('/home/nano/Desktop/images/16062025/09/10/image_16062025_09_10_25_9741.jpg', 2), ('/home/nano/Desktop/images/16062025/09/10/image_16062025_09_10_15_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/09/09/image_16062025_09_10_05_9812.jpg', 2), ('/home/nano/Desktop/images/16062025/09/09/image_16062025_09_09_55_9681.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/10/image_16062025_09_10_44_9727.jpg', '/home/nano/Desktop/images/16062025/09/10/image_16062025_09_10_35_9744.jpg', '/home/nano/Desktop/images/16062025/09/10/image_16062025_09_10_25_9741.jpg', '/home/nano/Desktop/images/16062025/09/10/image_16062025_09_10_15_10652.jpg', '/home/nano/Desktop/images/16062025/09/09/image_16062025_09_10_05_9812.jpg', '/home/nano/Desktop/images/16062025/09/09/image_16062025_09_09_55_9681.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/10/image_16062025_09_10_44_9727.jpg
/home/nano/Desktop/images/16062025/09/10/image_16062025_09_10_35_9744.jpg
/home/nano/Desktop/images/16062025/09/10/image_16062025_09_10_25_9741.jpg
/home/nano/Desktop/images/16062025/09/10/image_16062025_09_10_15_10652.jpg
/home/nano/Desktop/images/16062025/09/09/image_16062025_09_10_05_9812.jpg
/home/nano/Desktop/images/16062025/09/09/image_16062025_09_09_55_9681.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366519595","1366519658","1366519591","1366519588","1366519585","1366519593"],"photo_ids_order":["1366519585","1366519588","1366519591","1366519593","1366519595","1366519658"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/04ff4460f38faebafc08e0f2f2535f88.jpg","text":"TemporaryFile(/tmp/multipartBody6126861882805064597asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057925007,"filename":"image_16062025_09_10_05_9812.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2288470b62507921b841678fb9f53248.jpg","text":"TemporaryFile(/tmp/multipartBody2897732614149891013asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057925007,"filename":"image_16062025_09_09_55_9681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3429df990986071544aabe3523f43a08.jpg","text":"TemporaryFile(/tmp/multipartBody6371612469344801033asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057925007,"filename":"image_16062025_09_10_25_9741.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/74d1057fb361678c57122d37946e2c85.jpg","text":"TemporaryFile(/tmp/multipartBody1007159327437610961asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057925007,"filename":"image_16062025_09_10_35_9744.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f2a7054b9a63735e7391394070ca7188.jpg","text":"TemporaryFile(/tmp/multipartBody6877472766543512349asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057925007,"filename":"image_16062025_09_10_44_9727.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ccde703dc4a3fee39a6b3e6c77172928.jpg","text":"TemporaryFile(/tmp/multipartBody747864961847330103asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057925007,"filename":"image_16062025_09_10_15_10652.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366519591","file1":"1366519588","file0":"1366519585","file4":"1366519595","file5":"1366519658","file3":"1366519593"},"map_files_photo_id_array":[{"photo_id":"1366519658","filename":"file5"},{"photo_id":"1366519591","filename":"file2"},{"photo_id":"1366519595","filename":"file4"},{"photo_id":"1366519588","filename":"file1"},{"photo_id":"1366519585","filename":"file0"},{"photo_id":"1366519593","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366519595":["hashtag1","hashtag2"]},{"1366519658":["hashtag1","hashtag2"]},{"1366519591":["hashtag1","hashtag2"]},{"1366519588":["hashtag1","hashtag2"]},{"1366519585":["hashtag1","hashtag2"]},{"1366519593":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366519595, 1366519658, 1366519591, 1366519588, 1366519585, 1366519593)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 62.732667446136475 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:12:17.457883
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/12/image_16062025_09_12_45_9703.jpg', 2), ('/home/nano/Desktop/images/16062025/09/12/image_16062025_09_12_35_9688.jpg', 2), ('/home/nano/Desktop/images/16062025/09/12/image_16062025_09_12_25_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/09/12/image_16062025_09_12_15_9681.jpg', 2), ('/home/nano/Desktop/images/16062025/09/11/image_16062025_09_12_05_10660.jpg', 2), ('/home/nano/Desktop/images/16062025/09/11/image_16062025_09_11_54_9650.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/12/image_16062025_09_12_45_9703.jpg', '/home/nano/Desktop/images/16062025/09/12/image_16062025_09_12_35_9688.jpg', '/home/nano/Desktop/images/16062025/09/12/image_16062025_09_12_25_10658.jpg', '/home/nano/Desktop/images/16062025/09/12/image_16062025_09_12_15_9681.jpg', '/home/nano/Desktop/images/16062025/09/11/image_16062025_09_12_05_10660.jpg', '/home/nano/Desktop/images/16062025/09/11/image_16062025_09_11_54_9650.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/12/image_16062025_09_12_45_9703.jpg
/home/nano/Desktop/images/16062025/09/12/image_16062025_09_12_35_9688.jpg
/home/nano/Desktop/images/16062025/09/12/image_16062025_09_12_25_10658.jpg
/home/nano/Desktop/images/16062025/09/12/image_16062025_09_12_15_9681.jpg
/home/nano/Desktop/images/16062025/09/11/image_16062025_09_12_05_10660.jpg
/home/nano/Desktop/images/16062025/09/11/image_16062025_09_11_54_9650.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366519929","1366519922","1366519952","1366519946","1366519870","1366519801"],"photo_ids_order":["1366519801","1366519870","1366519922","1366519929","1366519946","1366519952"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ee53d67ed1540754ac4891f848d3ba4b.jpg","text":"TemporaryFile(/tmp/multipartBody8289603359520377218asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057999667,"filename":"image_16062025_09_12_15_9681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/98b2ac105a99edd29569d52523727f97.jpg","text":"TemporaryFile(/tmp/multipartBody5067091015956447671asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057999667,"filename":"image_16062025_09_12_25_10658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/406b5b81a501255f5ae1430535645e92.jpg","text":"TemporaryFile(/tmp/multipartBody713003849025600106asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057999667,"filename":"image_16062025_09_11_54_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/39a78396282e5acf60b0815014db2a4b.jpg","text":"TemporaryFile(/tmp/multipartBody4512213235134899042asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057999667,"filename":"image_16062025_09_12_05_10660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8f8388ff5e5b0f0fe6eb80960b7440b7.jpg","text":"TemporaryFile(/tmp/multipartBody6539402288250768643asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057999667,"filename":"image_16062025_09_12_35_9688.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5e23a307439c8fda06a8bef7aa96f5f4.jpg","text":"TemporaryFile(/tmp/multipartBody1118274178104600892asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750057999667,"filename":"image_16062025_09_12_45_9703.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366519922","file1":"1366519870","file0":"1366519801","file4":"1366519946","file5":"1366519952","file3":"1366519929"},"map_files_photo_id_array":[{"photo_id":"1366519952","filename":"file5"},{"photo_id":"1366519922","filename":"file2"},{"photo_id":"1366519946","filename":"file4"},{"photo_id":"1366519870","filename":"file1"},{"photo_id":"1366519801","filename":"file0"},{"photo_id":"1366519929","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366519929":["hashtag1","hashtag2"]},{"1366519922":["hashtag1","hashtag2"]},{"1366519952":["hashtag1","hashtag2"]},{"1366519946":["hashtag1","hashtag2"]},{"1366519870":["hashtag1","hashtag2"]},{"1366519801":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366519929, 1366519922, 1366519952, 1366519946, 1366519870, 1366519801)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 50.077163219451904 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:13:17.599100
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/13/image_16062025_09_13_45_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/09/13/image_16062025_09_13_35_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/09/13/image_16062025_09_13_15_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/09/12/image_16062025_09_13_05_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/09/12/image_16062025_09_12_54_9680.jpg', 2), ('/home/nano/Desktop/images/16062025/09/11/image_16062025_09_11_45_9727.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/13/image_16062025_09_13_45_9612.jpg', '/home/nano/Desktop/images/16062025/09/13/image_16062025_09_13_35_9613.jpg', '/home/nano/Desktop/images/16062025/09/13/image_16062025_09_13_15_9627.jpg', '/home/nano/Desktop/images/16062025/09/12/image_16062025_09_13_05_10650.jpg', '/home/nano/Desktop/images/16062025/09/12/image_16062025_09_12_54_9680.jpg', '/home/nano/Desktop/images/16062025/09/11/image_16062025_09_11_45_9727.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/13/image_16062025_09_13_45_9612.jpg
/home/nano/Desktop/images/16062025/09/13/image_16062025_09_13_35_9613.jpg
/home/nano/Desktop/images/16062025/09/13/image_16062025_09_13_15_9627.jpg
/home/nano/Desktop/images/16062025/09/12/image_16062025_09_13_05_10650.jpg
/home/nano/Desktop/images/16062025/09/12/image_16062025_09_12_54_9680.jpg
/home/nano/Desktop/images/16062025/09/11/image_16062025_09_11_45_9727.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366519985","1366519973","1366519967","1366519981","1366519977","1366519962"],"photo_ids_order":["1366519962","1366519967","1366519973","1366519977","1366519981","1366519985"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/375fda155bd35f0a490fabc4d2fb266d.jpg","text":"TemporaryFile(/tmp/multipartBody3323530418532139394asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058064523,"filename":"image_16062025_09_11_45_9727.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bb1ddbca2ef195e0f8a5bd280bb514d7.jpg","text":"TemporaryFile(/tmp/multipartBody209409242165274978asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058064523,"filename":"image_16062025_09_13_15_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/aec1a85fcc3c6a1a472259cb287183f1.jpg","text":"TemporaryFile(/tmp/multipartBody4002829567436973460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058064523,"filename":"image_16062025_09_13_35_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fe7a561a08440c83c6109ce420eb9585.jpg","text":"TemporaryFile(/tmp/multipartBody3187387384287436516asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058064523,"filename":"image_16062025_09_12_54_9680.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6cb782b6e1b1a934ae3cca1ca1aebd9a.jpg","text":"TemporaryFile(/tmp/multipartBody2023556003656007529asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058064523,"filename":"image_16062025_09_13_05_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5d598e7ef479b8692923aa8f406d7f62.jpg","text":"TemporaryFile(/tmp/multipartBody6821733900263721458asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058064523,"filename":"image_16062025_09_13_45_9612.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366519973","file1":"1366519967","file0":"1366519962","file4":"1366519981","file5":"1366519985","file3":"1366519977"},"map_files_photo_id_array":[{"photo_id":"1366519985","filename":"file5"},{"photo_id":"1366519973","filename":"file2"},{"photo_id":"1366519981","filename":"file4"},{"photo_id":"1366519967","filename":"file1"},{"photo_id":"1366519962","filename":"file0"},{"photo_id":"1366519977","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366519985":["hashtag1","hashtag2"]},{"1366519973":["hashtag1","hashtag2"]},{"1366519967":["hashtag1","hashtag2"]},{"1366519981":["hashtag1","hashtag2"]},{"1366519977":["hashtag1","hashtag2"]},{"1366519962":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366519985, 1366519973, 1366519967, 1366519981, 1366519977, 1366519962)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 74.67942929267883 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:14:47.762369
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/14/image_16062025_09_14_45_10612.jpg', 2), ('/home/nano/Desktop/images/16062025/09/14/image_16062025_09_14_35_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/09/14/image_16062025_09_14_25_10607.jpg', 2), ('/home/nano/Desktop/images/16062025/09/14/image_16062025_09_14_14_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/09/13/image_16062025_09_14_05_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/09/13/image_16062025_09_13_55_10611.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/14/image_16062025_09_14_45_10612.jpg', '/home/nano/Desktop/images/16062025/09/14/image_16062025_09_14_35_9597.jpg', '/home/nano/Desktop/images/16062025/09/14/image_16062025_09_14_25_10607.jpg', '/home/nano/Desktop/images/16062025/09/14/image_16062025_09_14_14_9626.jpg', '/home/nano/Desktop/images/16062025/09/13/image_16062025_09_14_05_9614.jpg', '/home/nano/Desktop/images/16062025/09/13/image_16062025_09_13_55_10611.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/14/image_16062025_09_14_45_10612.jpg
/home/nano/Desktop/images/16062025/09/14/image_16062025_09_14_35_9597.jpg
/home/nano/Desktop/images/16062025/09/14/image_16062025_09_14_25_10607.jpg
/home/nano/Desktop/images/16062025/09/14/image_16062025_09_14_14_9626.jpg
/home/nano/Desktop/images/16062025/09/13/image_16062025_09_14_05_9614.jpg
/home/nano/Desktop/images/16062025/09/13/image_16062025_09_13_55_10611.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366519997","1366520025","1366520010","1366520054","1366520039","1366520015"],"photo_ids_order":["1366519997","1366520010","1366520015","1366520025","1366520039","1366520054"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2505634e1a3d89d33983489216a24b33.jpg","text":"TemporaryFile(/tmp/multipartBody3566091580819674980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058149628,"filename":"image_16062025_09_14_45_10612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4846250ae5d97c8cc2419270421cc896.jpg","text":"TemporaryFile(/tmp/multipartBody6969036258675080206asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058149628,"filename":"image_16062025_09_14_14_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/260fdcd57a549613441193bcd82833a0.jpg","text":"TemporaryFile(/tmp/multipartBody3591864656412385124asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058149628,"filename":"image_16062025_09_14_35_9597.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/49e30bf5afdfeb264193a9010fac31fe.jpg","text":"TemporaryFile(/tmp/multipartBody4293256801683662591asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058149628,"filename":"image_16062025_09_13_55_10611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/98fbde539898d587656fc2cf0f947fb0.jpg","text":"TemporaryFile(/tmp/multipartBody6162375068790723817asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058149628,"filename":"image_16062025_09_14_05_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fd0d357e86b26a47eec1dfe9cfc939ad.jpg","text":"TemporaryFile(/tmp/multipartBody775594783327951076asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058149628,"filename":"image_16062025_09_14_25_10607.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366520015","file1":"1366520010","file0":"1366519997","file4":"1366520039","file5":"1366520054","file3":"1366520025"},"map_files_photo_id_array":[{"photo_id":"1366520054","filename":"file5"},{"photo_id":"1366520015","filename":"file2"},{"photo_id":"1366520039","filename":"file4"},{"photo_id":"1366520010","filename":"file1"},{"photo_id":"1366519997","filename":"file0"},{"photo_id":"1366520025","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366519997":["hashtag1","hashtag2"]},{"1366520025":["hashtag1","hashtag2"]},{"1366520010":["hashtag1","hashtag2"]},{"1366520054":["hashtag1","hashtag2"]},{"1366520039":["hashtag1","hashtag2"]},{"1366520015":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366519997, 1366520025, 1366520010, 1366520054, 1366520039, 1366520015)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 64.8082811832428 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:16:02.576410
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/15/image_16062025_09_15_55_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/09/15/image_16062025_09_15_35_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/09/15/image_16062025_09_15_25_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/09/15/image_16062025_09_15_15_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/09/14/image_16062025_09_15_05_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/09/14/image_16062025_09_14_55_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/15/image_16062025_09_15_55_9616.jpg', '/home/nano/Desktop/images/16062025/09/15/image_16062025_09_15_35_10627.jpg', '/home/nano/Desktop/images/16062025/09/15/image_16062025_09_15_25_9610.jpg', '/home/nano/Desktop/images/16062025/09/15/image_16062025_09_15_15_10616.jpg', '/home/nano/Desktop/images/16062025/09/14/image_16062025_09_15_05_9650.jpg', '/home/nano/Desktop/images/16062025/09/14/image_16062025_09_14_55_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/15/image_16062025_09_15_55_9616.jpg
/home/nano/Desktop/images/16062025/09/15/image_16062025_09_15_35_10627.jpg
/home/nano/Desktop/images/16062025/09/15/image_16062025_09_15_25_9610.jpg
/home/nano/Desktop/images/16062025/09/15/image_16062025_09_15_15_10616.jpg
/home/nano/Desktop/images/16062025/09/14/image_16062025_09_15_05_9650.jpg
/home/nano/Desktop/images/16062025/09/14/image_16062025_09_14_55_9610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366520292","1366520110","1366520214","1366520264","1366520342","1366520089"],"photo_ids_order":["1366520089","1366520110","1366520214","1366520264","1366520292","1366520342"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5d1a46fb3209aacdb4c7a446e4639665.jpg","text":"TemporaryFile(/tmp/multipartBody1571219729219022593asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058227972,"filename":"image_16062025_09_15_05_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/884d2a5daac5b306ff1e95bf20cbb062.jpg","text":"TemporaryFile(/tmp/multipartBody4589216112092520890asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058227972,"filename":"image_16062025_09_15_35_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/899bc263bd12662efea9813587c553bd.jpg","text":"TemporaryFile(/tmp/multipartBody8276386864904480115asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058227972,"filename":"image_16062025_09_15_25_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9c86dfd4618e75c6fdfcdb37d09e0a47.jpg","text":"TemporaryFile(/tmp/multipartBody5485547170453555389asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058227972,"filename":"image_16062025_09_15_15_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b2f000a053a95c4341ff932f34b66852.jpg","text":"TemporaryFile(/tmp/multipartBody3131183075171004793asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058227972,"filename":"image_16062025_09_14_55_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a59ebf4c9ae144e2aaaaf28b6aa5a01a.jpg","text":"TemporaryFile(/tmp/multipartBody1609316368664483709asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058227972,"filename":"image_16062025_09_15_55_9616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366520214","file1":"1366520110","file0":"1366520089","file4":"1366520292","file5":"1366520342","file3":"1366520264"},"map_files_photo_id_array":[{"photo_id":"1366520342","filename":"file5"},{"photo_id":"1366520214","filename":"file2"},{"photo_id":"1366520292","filename":"file4"},{"photo_id":"1366520110","filename":"file1"},{"photo_id":"1366520089","filename":"file0"},{"photo_id":"1366520264","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366520292":["hashtag1","hashtag2"]},{"1366520110":["hashtag1","hashtag2"]},{"1366520214":["hashtag1","hashtag2"]},{"1366520264":["hashtag1","hashtag2"]},{"1366520342":["hashtag1","hashtag2"]},{"1366520089":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366520292, 1366520110, 1366520214, 1366520264, 1366520342, 1366520089)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 64.1613175868988 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:17:17.172847
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/17/image_16062025_09_17_44_9593.jpg', 2), ('/home/nano/Desktop/images/16062025/09/17/image_16062025_09_17_25_10601.jpg', 2), ('/home/nano/Desktop/images/16062025/09/17/image_16062025_09_17_15_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/09/16/image_16062025_09_17_05_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/09/16/image_16062025_09_16_54_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/09/16/image_16062025_09_16_45_9629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/17/image_16062025_09_17_44_9593.jpg', '/home/nano/Desktop/images/16062025/09/17/image_16062025_09_17_25_10601.jpg', '/home/nano/Desktop/images/16062025/09/17/image_16062025_09_17_15_9616.jpg', '/home/nano/Desktop/images/16062025/09/16/image_16062025_09_17_05_10610.jpg', '/home/nano/Desktop/images/16062025/09/16/image_16062025_09_16_54_9629.jpg', '/home/nano/Desktop/images/16062025/09/16/image_16062025_09_16_45_9629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/17/image_16062025_09_17_44_9593.jpg
/home/nano/Desktop/images/16062025/09/17/image_16062025_09_17_25_10601.jpg
/home/nano/Desktop/images/16062025/09/17/image_16062025_09_17_15_9616.jpg
/home/nano/Desktop/images/16062025/09/16/image_16062025_09_17_05_10610.jpg
/home/nano/Desktop/images/16062025/09/16/image_16062025_09_16_54_9629.jpg
/home/nano/Desktop/images/16062025/09/16/image_16062025_09_16_45_9629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366520447","1366520435","1366520443","1366520437","1366520452","1366520440"],"photo_ids_order":["1366520435","1366520437","1366520440","1366520443","1366520447","1366520452"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/44db32e5b8f7783864224a13854caa27.jpg","text":"TemporaryFile(/tmp/multipartBody3308935677009702606asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058298969,"filename":"image_16062025_09_16_54_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/261e242a2f1a27e4e69f933056ddc01e.jpg","text":"TemporaryFile(/tmp/multipartBody5225010091786844565asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058298969,"filename":"image_16062025_09_17_44_9593.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8b55702de98aaf52821b0f606b9c9303.jpg","text":"TemporaryFile(/tmp/multipartBody7902441847652480459asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058298969,"filename":"image_16062025_09_17_05_10610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/beb28b58fd983155afa06f664b5cb79e.jpg","text":"TemporaryFile(/tmp/multipartBody1652065169584376442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058298969,"filename":"image_16062025_09_17_25_10601.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9642d55df35cf69ccc8a1fe98a6592eb.jpg","text":"TemporaryFile(/tmp/multipartBody3223360481883765277asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058298969,"filename":"image_16062025_09_16_45_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/803e03698f85bb5eaa959715ee3a9d27.jpg","text":"TemporaryFile(/tmp/multipartBody5418927758880524548asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058298969,"filename":"image_16062025_09_17_15_9616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366520440","file1":"1366520437","file0":"1366520435","file4":"1366520447","file5":"1366520452","file3":"1366520443"},"map_files_photo_id_array":[{"photo_id":"1366520452","filename":"file5"},{"photo_id":"1366520440","filename":"file2"},{"photo_id":"1366520447","filename":"file4"},{"photo_id":"1366520437","filename":"file1"},{"photo_id":"1366520435","filename":"file0"},{"photo_id":"1366520443","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366520447":["hashtag1","hashtag2"]},{"1366520435":["hashtag1","hashtag2"]},{"1366520443":["hashtag1","hashtag2"]},{"1366520437":["hashtag1","hashtag2"]},{"1366520452":["hashtag1","hashtag2"]},{"1366520440":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366520447, 1366520435, 1366520443, 1366520437, 1366520452, 1366520440)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 58.439908504486084 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:18:17.198565
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/18/image_16062025_09_18_45_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/09/18/image_16062025_09_18_34_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/09/18/image_16062025_09_18_25_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/09/18/image_16062025_09_18_15_10632.jpg', 2), ('/home/nano/Desktop/images/16062025/09/17/image_16062025_09_18_05_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/09/17/image_16062025_09_17_55_10608.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/18/image_16062025_09_18_45_10622.jpg', '/home/nano/Desktop/images/16062025/09/18/image_16062025_09_18_34_9601.jpg', '/home/nano/Desktop/images/16062025/09/18/image_16062025_09_18_25_9611.jpg', '/home/nano/Desktop/images/16062025/09/18/image_16062025_09_18_15_10632.jpg', '/home/nano/Desktop/images/16062025/09/17/image_16062025_09_18_05_9614.jpg', '/home/nano/Desktop/images/16062025/09/17/image_16062025_09_17_55_10608.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/18/image_16062025_09_18_45_10622.jpg
/home/nano/Desktop/images/16062025/09/18/image_16062025_09_18_34_9601.jpg
/home/nano/Desktop/images/16062025/09/18/image_16062025_09_18_25_9611.jpg
/home/nano/Desktop/images/16062025/09/18/image_16062025_09_18_15_10632.jpg
/home/nano/Desktop/images/16062025/09/17/image_16062025_09_18_05_9614.jpg
/home/nano/Desktop/images/16062025/09/17/image_16062025_09_17_55_10608.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366520472","1366520475","1366520465","1366520467","1366520461","1366520470"],"photo_ids_order":["1366520461","1366520465","1366520467","1366520470","1366520472","1366520475"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ebc40b29c488960ddd8b86695e08af27.jpg","text":"TemporaryFile(/tmp/multipartBody3274324083499556639asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058358652,"filename":"image_16062025_09_18_05_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/11db9e1f232290ad6f471a15f72e7bef.jpg","text":"TemporaryFile(/tmp/multipartBody5728659000994815844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058358652,"filename":"image_16062025_09_17_55_10608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3544bab5647c6651e8413baab7074abe.jpg","text":"TemporaryFile(/tmp/multipartBody7665766547052712721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058358652,"filename":"image_16062025_09_18_34_9601.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2d9ceb55373aba5463e2432aca69c2ea.jpg","text":"TemporaryFile(/tmp/multipartBody8942823208733210742asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058358652,"filename":"image_16062025_09_18_25_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/97bb9ac2ab7b0b9868a06cbdffbf6b47.jpg","text":"TemporaryFile(/tmp/multipartBody7931956125310942044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058358652,"filename":"image_16062025_09_18_45_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/11a9fa76bcda769fd682e15870a8f1c2.jpg","text":"TemporaryFile(/tmp/multipartBody1874180767462145084asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058358652,"filename":"image_16062025_09_18_15_10632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366520467","file1":"1366520465","file0":"1366520461","file4":"1366520472","file5":"1366520475","file3":"1366520470"},"map_files_photo_id_array":[{"photo_id":"1366520475","filename":"file5"},{"photo_id":"1366520467","filename":"file2"},{"photo_id":"1366520472","filename":"file4"},{"photo_id":"1366520465","filename":"file1"},{"photo_id":"1366520461","filename":"file0"},{"photo_id":"1366520470","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366520472":["hashtag1","hashtag2"]},{"1366520475":["hashtag1","hashtag2"]},{"1366520465":["hashtag1","hashtag2"]},{"1366520467":["hashtag1","hashtag2"]},{"1366520461":["hashtag1","hashtag2"]},{"1366520470":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366520472, 1366520475, 1366520465, 1366520467, 1366520461, 1366520470)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.929744720458984 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:19:03.196568
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/16/image_16062025_09_16_35_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/09/16/image_16062025_09_16_24_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/09/16/image_16062025_09_16_15_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/09/15/image_16062025_09_16_05_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/09/15/image_16062025_09_15_45_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/09/11/image_16062025_09_11_35_9739.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/16/image_16062025_09_16_35_10623.jpg', '/home/nano/Desktop/images/16062025/09/16/image_16062025_09_16_24_9635.jpg', '/home/nano/Desktop/images/16062025/09/16/image_16062025_09_16_15_9621.jpg', '/home/nano/Desktop/images/16062025/09/15/image_16062025_09_16_05_10627.jpg', '/home/nano/Desktop/images/16062025/09/15/image_16062025_09_15_45_9620.jpg', '/home/nano/Desktop/images/16062025/09/11/image_16062025_09_11_35_9739.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/16/image_16062025_09_16_35_10623.jpg
/home/nano/Desktop/images/16062025/09/16/image_16062025_09_16_24_9635.jpg
/home/nano/Desktop/images/16062025/09/16/image_16062025_09_16_15_9621.jpg
/home/nano/Desktop/images/16062025/09/15/image_16062025_09_16_05_10627.jpg
/home/nano/Desktop/images/16062025/09/15/image_16062025_09_15_45_9620.jpg
/home/nano/Desktop/images/16062025/09/11/image_16062025_09_11_35_9739.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366520484","1366520538","1366520489","1366520501","1366520494","1366520496"],"photo_ids_order":["1366520484","1366520489","1366520494","1366520496","1366520501","1366520538"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ab183695bda47f9bec49bfba3d7f5422.jpg","text":"TemporaryFile(/tmp/multipartBody6062509655168703230asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058411709,"filename":"image_16062025_09_16_35_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2585da84027eecbd93fc8eaa2e5ec1ba.jpg","text":"TemporaryFile(/tmp/multipartBody82999289718045165asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058411709,"filename":"image_16062025_09_11_35_9739.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/460a8b75ca58399a6d602a251dc496e1.jpg","text":"TemporaryFile(/tmp/multipartBody9157074149241810540asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058411709,"filename":"image_16062025_09_16_24_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7d194ef52bf31d604d6a6d2023797342.jpg","text":"TemporaryFile(/tmp/multipartBody6329775632104900796asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058411709,"filename":"image_16062025_09_15_45_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/baac38258f94a6c019719213134cbb72.jpg","text":"TemporaryFile(/tmp/multipartBody1183702207835310729asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058411709,"filename":"image_16062025_09_16_15_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b82b9efadd4085553ef5685fdbda5b6a.jpg","text":"TemporaryFile(/tmp/multipartBody191075065530145530asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058411709,"filename":"image_16062025_09_16_05_10627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366520494","file1":"1366520489","file0":"1366520484","file4":"1366520501","file5":"1366520538","file3":"1366520496"},"map_files_photo_id_array":[{"photo_id":"1366520538","filename":"file5"},{"photo_id":"1366520494","filename":"file2"},{"photo_id":"1366520501","filename":"file4"},{"photo_id":"1366520489","filename":"file1"},{"photo_id":"1366520484","filename":"file0"},{"photo_id":"1366520496","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366520484":["hashtag1","hashtag2"]},{"1366520538":["hashtag1","hashtag2"]},{"1366520489":["hashtag1","hashtag2"]},{"1366520501":["hashtag1","hashtag2"]},{"1366520494":["hashtag1","hashtag2"]},{"1366520496":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366520484, 1366520538, 1366520489, 1366520501, 1366520494, 1366520496)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 83.2917971611023 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:20:32.412675
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/20/image_16062025_09_20_44_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/09/20/image_16062025_09_20_35_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/09/20/image_16062025_09_20_25_10607.jpg', 2), ('/home/nano/Desktop/images/16062025/09/20/image_16062025_09_20_15_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/09/19/image_16062025_09_20_05_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/09/19/image_16062025_09_19_54_9597.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/20/image_16062025_09_20_44_9642.jpg', '/home/nano/Desktop/images/16062025/09/20/image_16062025_09_20_35_9609.jpg', '/home/nano/Desktop/images/16062025/09/20/image_16062025_09_20_25_10607.jpg', '/home/nano/Desktop/images/16062025/09/20/image_16062025_09_20_15_9622.jpg', '/home/nano/Desktop/images/16062025/09/19/image_16062025_09_20_05_10609.jpg', '/home/nano/Desktop/images/16062025/09/19/image_16062025_09_19_54_9597.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/20/image_16062025_09_20_44_9642.jpg
/home/nano/Desktop/images/16062025/09/20/image_16062025_09_20_35_9609.jpg
/home/nano/Desktop/images/16062025/09/20/image_16062025_09_20_25_10607.jpg
/home/nano/Desktop/images/16062025/09/20/image_16062025_09_20_15_9622.jpg
/home/nano/Desktop/images/16062025/09/19/image_16062025_09_20_05_10609.jpg
/home/nano/Desktop/images/16062025/09/19/image_16062025_09_19_54_9597.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366520553","1366520561","1366520564","1366520566","1366520548","1366520557"],"photo_ids_order":["1366520548","1366520553","1366520557","1366520561","1366520564","1366520566"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bbe2bcd537fd47b1396d4783b3adfa6b.jpg","text":"TemporaryFile(/tmp/multipartBody5959448215116939837asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058496980,"filename":"image_16062025_09_20_35_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d779bf90ca8caa4900c0c9d04aedd86f.jpg","text":"TemporaryFile(/tmp/multipartBody6415412762797410940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058496980,"filename":"image_16062025_09_20_15_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bda041d96d71a17cc818376c9451d2d0.jpg","text":"TemporaryFile(/tmp/multipartBody3147959784805821682asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058496980,"filename":"image_16062025_09_20_05_10609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3dd1f6bc3595709b98ea0da0e120af89.jpg","text":"TemporaryFile(/tmp/multipartBody8480087367650227436asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058496980,"filename":"image_16062025_09_19_54_9597.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c010ec0e97351ad3b3cafd1f599b576d.jpg","text":"TemporaryFile(/tmp/multipartBody8153595525876307576asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058496980,"filename":"image_16062025_09_20_44_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b7835cfd2c06cea0849ddd543120ac8b.jpg","text":"TemporaryFile(/tmp/multipartBody6333475102631997477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058496980,"filename":"image_16062025_09_20_25_10607.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366520557","file1":"1366520553","file0":"1366520548","file4":"1366520564","file5":"1366520566","file3":"1366520561"},"map_files_photo_id_array":[{"photo_id":"1366520566","filename":"file5"},{"photo_id":"1366520557","filename":"file2"},{"photo_id":"1366520564","filename":"file4"},{"photo_id":"1366520553","filename":"file1"},{"photo_id":"1366520548","filename":"file0"},{"photo_id":"1366520561","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366520553":["hashtag1","hashtag2"]},{"1366520561":["hashtag1","hashtag2"]},{"1366520564":["hashtag1","hashtag2"]},{"1366520566":["hashtag1","hashtag2"]},{"1366520548":["hashtag1","hashtag2"]},{"1366520557":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366520553, 1366520561, 1366520564, 1366520566, 1366520548, 1366520557)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 48.75767683982849 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:21:32.530662
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/21/image_16062025_09_21_45_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/09/21/image_16062025_09_21_35_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/09/21/image_16062025_09_21_25_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/09/21/image_16062025_09_21_15_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/09/20/image_16062025_09_21_05_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/09/20/image_16062025_09_20_55_10617.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/21/image_16062025_09_21_45_10616.jpg', '/home/nano/Desktop/images/16062025/09/21/image_16062025_09_21_35_9610.jpg', '/home/nano/Desktop/images/16062025/09/21/image_16062025_09_21_25_9615.jpg', '/home/nano/Desktop/images/16062025/09/21/image_16062025_09_21_15_10633.jpg', '/home/nano/Desktop/images/16062025/09/20/image_16062025_09_21_05_9604.jpg', '/home/nano/Desktop/images/16062025/09/20/image_16062025_09_20_55_10617.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/21/image_16062025_09_21_45_10616.jpg
/home/nano/Desktop/images/16062025/09/21/image_16062025_09_21_35_9610.jpg
/home/nano/Desktop/images/16062025/09/21/image_16062025_09_21_25_9615.jpg
/home/nano/Desktop/images/16062025/09/21/image_16062025_09_21_15_10633.jpg
/home/nano/Desktop/images/16062025/09/20/image_16062025_09_21_05_9604.jpg
/home/nano/Desktop/images/16062025/09/20/image_16062025_09_20_55_10617.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366520763","1366520822","1366520819","1366520708","1366520787","1366520704"],"photo_ids_order":["1366520704","1366520708","1366520763","1366520787","1366520819","1366520822"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0bcef694baa49632fb16f3b1e3512d77.jpg","text":"TemporaryFile(/tmp/multipartBody3536354846752744951asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058555751,"filename":"image_16062025_09_21_25_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/642cc0b334af357b5ca2660f385e4e4b.jpg","text":"TemporaryFile(/tmp/multipartBody7432714204830753044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058555751,"filename":"image_16062025_09_20_55_10617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/17fd4adc2f7b0f27b046e080f544ea27.jpg","text":"TemporaryFile(/tmp/multipartBody723763709666647834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058555751,"filename":"image_16062025_09_21_05_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4217600aa8acf5894349e94533fd8a4c.jpg","text":"TemporaryFile(/tmp/multipartBody9006656378478069470asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058555751,"filename":"image_16062025_09_21_35_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/eef1a2901577e5bb3e2b44086cb4a3ab.jpg","text":"TemporaryFile(/tmp/multipartBody530799532001608890asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058555751,"filename":"image_16062025_09_21_15_10633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7b94e6903ecf989b5cc221714251dfbd.jpg","text":"TemporaryFile(/tmp/multipartBody1990441493141604840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058555751,"filename":"image_16062025_09_21_45_10616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366520763","file1":"1366520708","file0":"1366520704","file4":"1366520819","file5":"1366520822","file3":"1366520787"},"map_files_photo_id_array":[{"photo_id":"1366520822","filename":"file5"},{"photo_id":"1366520763","filename":"file2"},{"photo_id":"1366520819","filename":"file4"},{"photo_id":"1366520708","filename":"file1"},{"photo_id":"1366520704","filename":"file0"},{"photo_id":"1366520787","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366520763":["hashtag1","hashtag2"]},{"1366520822":["hashtag1","hashtag2"]},{"1366520819":["hashtag1","hashtag2"]},{"1366520708":["hashtag1","hashtag2"]},{"1366520787":["hashtag1","hashtag2"]},{"1366520704":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366520763, 1366520822, 1366520819, 1366520708, 1366520787, 1366520704)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 66.49171948432922 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:22:47.609077
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/22/image_16062025_09_22_45_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/09/22/image_16062025_09_22_35_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/09/22/image_16062025_09_22_25_9606.jpg', 2), ('/home/nano/Desktop/images/16062025/09/22/image_16062025_09_22_15_10675.jpg', 2), ('/home/nano/Desktop/images/16062025/09/21/image_16062025_09_22_04_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/09/21/image_16062025_09_21_55_9624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/22/image_16062025_09_22_45_9607.jpg', '/home/nano/Desktop/images/16062025/09/22/image_16062025_09_22_35_10628.jpg', '/home/nano/Desktop/images/16062025/09/22/image_16062025_09_22_25_9606.jpg', '/home/nano/Desktop/images/16062025/09/22/image_16062025_09_22_15_10675.jpg', '/home/nano/Desktop/images/16062025/09/21/image_16062025_09_22_04_9635.jpg', '/home/nano/Desktop/images/16062025/09/21/image_16062025_09_21_55_9624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/22/image_16062025_09_22_45_9607.jpg
/home/nano/Desktop/images/16062025/09/22/image_16062025_09_22_35_10628.jpg
/home/nano/Desktop/images/16062025/09/22/image_16062025_09_22_25_9606.jpg
/home/nano/Desktop/images/16062025/09/22/image_16062025_09_22_15_10675.jpg
/home/nano/Desktop/images/16062025/09/21/image_16062025_09_22_04_9635.jpg
/home/nano/Desktop/images/16062025/09/21/image_16062025_09_21_55_9624.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366520847","1366520852","1366520860","1366520833","1366520842","1366520836"],"photo_ids_order":["1366520833","1366520836","1366520842","1366520847","1366520852","1366520860"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a73cf535dd11fff1262ae1ad801eff5e.jpg","text":"TemporaryFile(/tmp/multipartBody2644232002848432050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058633189,"filename":"image_16062025_09_22_15_10675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/58a2eb829609a92b47167a0489ed3f11.jpg","text":"TemporaryFile(/tmp/multipartBody2784265496490139898asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058633189,"filename":"image_16062025_09_22_04_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/432bb6f04332f03229772af45bf222ef.jpg","text":"TemporaryFile(/tmp/multipartBody527460249640253040asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058633189,"filename":"image_16062025_09_21_55_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/201c1a847de65872ce327f572b57c633.jpg","text":"TemporaryFile(/tmp/multipartBody741917477677092481asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058633189,"filename":"image_16062025_09_22_45_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c95e21926ed91cda2f4550297f54dfb6.jpg","text":"TemporaryFile(/tmp/multipartBody3426876602296377308asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058633189,"filename":"image_16062025_09_22_25_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/022941740890171f0c575c7a7e53bbcc.jpg","text":"TemporaryFile(/tmp/multipartBody5071898616629885598asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058633189,"filename":"image_16062025_09_22_35_10628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366520842","file1":"1366520836","file0":"1366520833","file4":"1366520852","file5":"1366520860","file3":"1366520847"},"map_files_photo_id_array":[{"photo_id":"1366520860","filename":"file5"},{"photo_id":"1366520842","filename":"file2"},{"photo_id":"1366520852","filename":"file4"},{"photo_id":"1366520836","filename":"file1"},{"photo_id":"1366520833","filename":"file0"},{"photo_id":"1366520847","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366520847":["hashtag1","hashtag2"]},{"1366520852":["hashtag1","hashtag2"]},{"1366520860":["hashtag1","hashtag2"]},{"1366520833":["hashtag1","hashtag2"]},{"1366520842":["hashtag1","hashtag2"]},{"1366520836":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366520847, 1366520852, 1366520860, 1366520833, 1366520842, 1366520836)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 77.08644580841064 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:24:16.855871
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/24/image_16062025_09_24_45_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/09/24/image_16062025_09_24_35_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/09/24/image_16062025_09_24_25_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/09/24/image_16062025_09_24_15_9700.jpg', 2), ('/home/nano/Desktop/images/16062025/09/23/image_16062025_09_24_05_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/09/23/image_16062025_09_23_55_10643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/24/image_16062025_09_24_45_9638.jpg', '/home/nano/Desktop/images/16062025/09/24/image_16062025_09_24_35_9631.jpg', '/home/nano/Desktop/images/16062025/09/24/image_16062025_09_24_25_10648.jpg', '/home/nano/Desktop/images/16062025/09/24/image_16062025_09_24_15_9700.jpg', '/home/nano/Desktop/images/16062025/09/23/image_16062025_09_24_05_9645.jpg', '/home/nano/Desktop/images/16062025/09/23/image_16062025_09_23_55_10643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/24/image_16062025_09_24_45_9638.jpg
/home/nano/Desktop/images/16062025/09/24/image_16062025_09_24_35_9631.jpg
/home/nano/Desktop/images/16062025/09/24/image_16062025_09_24_25_10648.jpg
/home/nano/Desktop/images/16062025/09/24/image_16062025_09_24_15_9700.jpg
/home/nano/Desktop/images/16062025/09/23/image_16062025_09_24_05_9645.jpg
/home/nano/Desktop/images/16062025/09/23/image_16062025_09_23_55_10643.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366520895","1366520877","1366520881","1366520890","1366520878","1366520886"],"photo_ids_order":["1366520877","1366520878","1366520881","1366520886","1366520890","1366520895"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7fafe24b2274b33bbf72b127f841f962.jpg","text":"TemporaryFile(/tmp/multipartBody1182868000170413291asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058718776,"filename":"image_16062025_09_23_55_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f54a67ee209e33690864d5f7adcdadc7.jpg","text":"TemporaryFile(/tmp/multipartBody556195650322694208asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058718776,"filename":"image_16062025_09_24_45_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ab011ff35a4d2056b1cee188b8cb5d2e.jpg","text":"TemporaryFile(/tmp/multipartBody661928139249906228asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058718776,"filename":"image_16062025_09_24_25_10648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/09cbefb7cd42969daa9f4e75fdd749bc.jpg","text":"TemporaryFile(/tmp/multipartBody3079163095722042348asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058718776,"filename":"image_16062025_09_24_05_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/25cabf76d0f70d2ed6366e7acbe9c227.jpg","text":"TemporaryFile(/tmp/multipartBody624378648989968790asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058718776,"filename":"image_16062025_09_24_35_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7d821d077b1e8da3bcae4c635696795b.jpg","text":"TemporaryFile(/tmp/multipartBody8029850053270986965asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058718776,"filename":"image_16062025_09_24_15_9700.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366520881","file1":"1366520878","file0":"1366520877","file4":"1366520890","file5":"1366520895","file3":"1366520886"},"map_files_photo_id_array":[{"photo_id":"1366520895","filename":"file5"},{"photo_id":"1366520881","filename":"file2"},{"photo_id":"1366520890","filename":"file4"},{"photo_id":"1366520878","filename":"file1"},{"photo_id":"1366520877","filename":"file0"},{"photo_id":"1366520886","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366520895":["hashtag1","hashtag2"]},{"1366520877":["hashtag1","hashtag2"]},{"1366520881":["hashtag1","hashtag2"]},{"1366520890":["hashtag1","hashtag2"]},{"1366520878":["hashtag1","hashtag2"]},{"1366520886":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366520895, 1366520877, 1366520881, 1366520890, 1366520878, 1366520886)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 73.70539212226868 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:25:31.967583
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/25/image_16062025_09_25_45_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/09/25/image_16062025_09_25_35_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/09/25/image_16062025_09_25_25_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/09/25/image_16062025_09_25_15_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/09/24/image_16062025_09_24_55_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/09/23/image_16062025_09_23_45_9636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/25/image_16062025_09_25_45_9650.jpg', '/home/nano/Desktop/images/16062025/09/25/image_16062025_09_25_35_9650.jpg', '/home/nano/Desktop/images/16062025/09/25/image_16062025_09_25_25_10646.jpg', '/home/nano/Desktop/images/16062025/09/25/image_16062025_09_25_15_9640.jpg', '/home/nano/Desktop/images/16062025/09/24/image_16062025_09_24_55_10650.jpg', '/home/nano/Desktop/images/16062025/09/23/image_16062025_09_23_45_9636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/25/image_16062025_09_25_45_9650.jpg
/home/nano/Desktop/images/16062025/09/25/image_16062025_09_25_35_9650.jpg
/home/nano/Desktop/images/16062025/09/25/image_16062025_09_25_25_10646.jpg
/home/nano/Desktop/images/16062025/09/25/image_16062025_09_25_15_9640.jpg
/home/nano/Desktop/images/16062025/09/24/image_16062025_09_24_55_10650.jpg
/home/nano/Desktop/images/16062025/09/23/image_16062025_09_23_45_9636.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366520905","1366520910","1366520913","1366521017","1366521067","1366520909"],"photo_ids_order":["1366520905","1366520909","1366520910","1366520913","1366521017","1366521067"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0b120e53529284ec6ccccc75a914063d.jpg","text":"TemporaryFile(/tmp/multipartBody5100806598749092879asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058793792,"filename":"image_16062025_09_25_45_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f5794a75544bae68746448ebc6590b04.jpg","text":"TemporaryFile(/tmp/multipartBody7783960277709183772asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058793792,"filename":"image_16062025_09_25_25_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/36c48f1eb76a9fb0b26c79a42d51c09d.jpg","text":"TemporaryFile(/tmp/multipartBody6737047236704715748asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058793792,"filename":"image_16062025_09_25_15_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ca6e8b06a1011c84b439113c3bc31f87.jpg","text":"TemporaryFile(/tmp/multipartBody6134647679920260225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058793792,"filename":"image_16062025_09_24_55_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a3db291b79ce577eae180e41fc1f95e2.jpg","text":"TemporaryFile(/tmp/multipartBody5295875511121173293asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058793792,"filename":"image_16062025_09_23_45_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a956687c9d0ee7ccd6b8d36f2f985526.jpg","text":"TemporaryFile(/tmp/multipartBody2881680283654850261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058793792,"filename":"image_16062025_09_25_35_9650.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366520910","file1":"1366520909","file0":"1366520905","file4":"1366521017","file5":"1366521067","file3":"1366520913"},"map_files_photo_id_array":[{"photo_id":"1366521067","filename":"file5"},{"photo_id":"1366520910","filename":"file2"},{"photo_id":"1366521017","filename":"file4"},{"photo_id":"1366520909","filename":"file1"},{"photo_id":"1366520905","filename":"file0"},{"photo_id":"1366520913","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366520905":["hashtag1","hashtag2"]},{"1366520910":["hashtag1","hashtag2"]},{"1366520913":["hashtag1","hashtag2"]},{"1366521017":["hashtag1","hashtag2"]},{"1366521067":["hashtag1","hashtag2"]},{"1366520909":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366520905, 1366520910, 1366520913, 1366521017, 1366521067, 1366520909)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 70.52797818183899 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:26:47.131039
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/26/image_16062025_09_26_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/09/26/image_16062025_09_26_35_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/09/26/image_16062025_09_26_25_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/09/26/image_16062025_09_26_15_9674.jpg', 2), ('/home/nano/Desktop/images/16062025/09/25/image_16062025_09_26_05_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/09/25/image_16062025_09_25_55_10655.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/26/image_16062025_09_26_44_9617.jpg', '/home/nano/Desktop/images/16062025/09/26/image_16062025_09_26_35_9620.jpg', '/home/nano/Desktop/images/16062025/09/26/image_16062025_09_26_25_10643.jpg', '/home/nano/Desktop/images/16062025/09/26/image_16062025_09_26_15_9674.jpg', '/home/nano/Desktop/images/16062025/09/25/image_16062025_09_26_05_9658.jpg', '/home/nano/Desktop/images/16062025/09/25/image_16062025_09_25_55_10655.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/26/image_16062025_09_26_44_9617.jpg
/home/nano/Desktop/images/16062025/09/26/image_16062025_09_26_35_9620.jpg
/home/nano/Desktop/images/16062025/09/26/image_16062025_09_26_25_10643.jpg
/home/nano/Desktop/images/16062025/09/26/image_16062025_09_26_15_9674.jpg
/home/nano/Desktop/images/16062025/09/25/image_16062025_09_26_05_9658.jpg
/home/nano/Desktop/images/16062025/09/25/image_16062025_09_25_55_10655.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366521228","1366521160","1366521235","1366521238","1366521223","1366521232"],"photo_ids_order":["1366521160","1366521223","1366521228","1366521232","1366521235","1366521238"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8494412bd25d8d6565e47f38b7c97425.jpg","text":"TemporaryFile(/tmp/multipartBody543550234922134732asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058868550,"filename":"image_16062025_09_26_25_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2a01d00bdea79a8bc4c0f8b1ef372f2a.jpg","text":"TemporaryFile(/tmp/multipartBody4706503619279385798asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058868550,"filename":"image_16062025_09_26_44_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5a8f3e42c276b6b40365c7fc1503f5fd.jpg","text":"TemporaryFile(/tmp/multipartBody3496515554179467599asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058868550,"filename":"image_16062025_09_26_05_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b5c67beb8659fb42e4fa865c9421b25b.jpg","text":"TemporaryFile(/tmp/multipartBody6384883391956240051asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058868550,"filename":"image_16062025_09_25_55_10655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/60b4eb2798758ebe0d76154efbd98bd4.jpg","text":"TemporaryFile(/tmp/multipartBody2028204880796925971asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058868550,"filename":"image_16062025_09_26_35_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7134dc126236c62c9ed517dccf7a6b4e.jpg","text":"TemporaryFile(/tmp/multipartBody1329878221036837483asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058868550,"filename":"image_16062025_09_26_15_9674.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366521228","file1":"1366521223","file0":"1366521160","file4":"1366521235","file5":"1366521238","file3":"1366521232"},"map_files_photo_id_array":[{"photo_id":"1366521238","filename":"file5"},{"photo_id":"1366521228","filename":"file2"},{"photo_id":"1366521235","filename":"file4"},{"photo_id":"1366521223","filename":"file1"},{"photo_id":"1366521160","filename":"file0"},{"photo_id":"1366521232","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366521228":["hashtag1","hashtag2"]},{"1366521160":["hashtag1","hashtag2"]},{"1366521235":["hashtag1","hashtag2"]},{"1366521238":["hashtag1","hashtag2"]},{"1366521223":["hashtag1","hashtag2"]},{"1366521232":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366521228, 1366521160, 1366521235, 1366521238, 1366521223, 1366521232)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.04000377655029 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:27:32.262553
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/27/image_16062025_09_27_45_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/09/27/image_16062025_09_27_35_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/09/27/image_16062025_09_27_25_9648.jpg', 2), ('/home/nano/Desktop/images/16062025/09/27/image_16062025_09_27_15_10662.jpg', 2), ('/home/nano/Desktop/images/16062025/09/26/image_16062025_09_27_05_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/09/26/image_16062025_09_26_55_10636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/27/image_16062025_09_27_45_10640.jpg', '/home/nano/Desktop/images/16062025/09/27/image_16062025_09_27_35_9609.jpg', '/home/nano/Desktop/images/16062025/09/27/image_16062025_09_27_25_9648.jpg', '/home/nano/Desktop/images/16062025/09/27/image_16062025_09_27_15_10662.jpg', '/home/nano/Desktop/images/16062025/09/26/image_16062025_09_27_05_9633.jpg', '/home/nano/Desktop/images/16062025/09/26/image_16062025_09_26_55_10636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/27/image_16062025_09_27_45_10640.jpg
/home/nano/Desktop/images/16062025/09/27/image_16062025_09_27_35_9609.jpg
/home/nano/Desktop/images/16062025/09/27/image_16062025_09_27_25_9648.jpg
/home/nano/Desktop/images/16062025/09/27/image_16062025_09_27_15_10662.jpg
/home/nano/Desktop/images/16062025/09/26/image_16062025_09_27_05_9633.jpg
/home/nano/Desktop/images/16062025/09/26/image_16062025_09_26_55_10636.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366521249","1366521240","1366521258","1366521254","1366521241","1366521244"],"photo_ids_order":["1366521240","1366521241","1366521244","1366521249","1366521254","1366521258"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5d59c6f8d1934d3ecd8aa6b48cd3dc05.jpg","text":"TemporaryFile(/tmp/multipartBody2580755321691656193asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058913610,"filename":"image_16062025_09_27_15_10662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2cbc196c5d3de85f37dad764ba591b05.jpg","text":"TemporaryFile(/tmp/multipartBody4183236708236631262asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058913610,"filename":"image_16062025_09_27_45_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3c57bf808012d77c1f7d67b4b9adcdf3.jpg","text":"TemporaryFile(/tmp/multipartBody1627874847569313905asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058913610,"filename":"image_16062025_09_26_55_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/52ec3a012261520a6a8d89cbabe110f5.jpg","text":"TemporaryFile(/tmp/multipartBody6892739541099153287asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058913610,"filename":"image_16062025_09_27_05_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/21f935fb0b50012aa47be141de57dbcb.jpg","text":"TemporaryFile(/tmp/multipartBody974579536097895679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058913610,"filename":"image_16062025_09_27_35_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4748ec4951e41d8c124e6ab9441f925f.jpg","text":"TemporaryFile(/tmp/multipartBody7358917993539873970asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058913610,"filename":"image_16062025_09_27_25_9648.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366521244","file1":"1366521241","file0":"1366521240","file4":"1366521254","file5":"1366521258","file3":"1366521249"},"map_files_photo_id_array":[{"photo_id":"1366521258","filename":"file5"},{"photo_id":"1366521244","filename":"file2"},{"photo_id":"1366521254","filename":"file4"},{"photo_id":"1366521241","filename":"file1"},{"photo_id":"1366521240","filename":"file0"},{"photo_id":"1366521249","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366521249":["hashtag1","hashtag2"]},{"1366521240":["hashtag1","hashtag2"]},{"1366521258":["hashtag1","hashtag2"]},{"1366521254":["hashtag1","hashtag2"]},{"1366521241":["hashtag1","hashtag2"]},{"1366521244":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366521249, 1366521240, 1366521258, 1366521254, 1366521241, 1366521244)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 73.08159375190735 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:28:47.359910
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/28/image_16062025_09_28_45_10709.jpg', 2), ('/home/nano/Desktop/images/16062025/09/28/image_16062025_09_28_34_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/09/28/image_16062025_09_28_25_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/09/28/image_16062025_09_28_15_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/09/27/image_16062025_09_28_04_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/09/27/image_16062025_09_27_55_9615.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/28/image_16062025_09_28_45_10709.jpg', '/home/nano/Desktop/images/16062025/09/28/image_16062025_09_28_34_9602.jpg', '/home/nano/Desktop/images/16062025/09/28/image_16062025_09_28_25_9650.jpg', '/home/nano/Desktop/images/16062025/09/28/image_16062025_09_28_15_10643.jpg', '/home/nano/Desktop/images/16062025/09/27/image_16062025_09_28_04_9636.jpg', '/home/nano/Desktop/images/16062025/09/27/image_16062025_09_27_55_9615.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/28/image_16062025_09_28_45_10709.jpg
/home/nano/Desktop/images/16062025/09/28/image_16062025_09_28_34_9602.jpg
/home/nano/Desktop/images/16062025/09/28/image_16062025_09_28_25_9650.jpg
/home/nano/Desktop/images/16062025/09/28/image_16062025_09_28_15_10643.jpg
/home/nano/Desktop/images/16062025/09/27/image_16062025_09_28_04_9636.jpg
/home/nano/Desktop/images/16062025/09/27/image_16062025_09_27_55_9615.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366521276","1366521281","1366521269","1366521272","1366521286","1366521274"],"photo_ids_order":["1366521269","1366521272","1366521274","1366521276","1366521281","1366521286"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c05d95f47f4baa0f5d087df4e23311bf.jpg","text":"TemporaryFile(/tmp/multipartBody3358850863196233771asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058988978,"filename":"image_16062025_09_28_15_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d7fe263b0d5cff81dd0056547fc69638.jpg","text":"TemporaryFile(/tmp/multipartBody4310737157934425520asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058988978,"filename":"image_16062025_09_28_04_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5b64eade29a9e5200096cd248eeb6f97.jpg","text":"TemporaryFile(/tmp/multipartBody1471715460087252119asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058988978,"filename":"image_16062025_09_28_45_10709.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4eacca41e66c034b142b261632c44bb6.jpg","text":"TemporaryFile(/tmp/multipartBody9040785645499994766asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058988978,"filename":"image_16062025_09_28_34_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4a5d830820b457c1755e982937eea88b.jpg","text":"TemporaryFile(/tmp/multipartBody6950092854306500981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058988978,"filename":"image_16062025_09_27_55_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d0ad8648f3da0fe66541d627c0dd25d5.jpg","text":"TemporaryFile(/tmp/multipartBody1069245672778408684asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750058988978,"filename":"image_16062025_09_28_25_9650.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366521274","file1":"1366521272","file0":"1366521269","file4":"1366521281","file5":"1366521286","file3":"1366521276"},"map_files_photo_id_array":[{"photo_id":"1366521286","filename":"file5"},{"photo_id":"1366521274","filename":"file2"},{"photo_id":"1366521281","filename":"file4"},{"photo_id":"1366521272","filename":"file1"},{"photo_id":"1366521269","filename":"file0"},{"photo_id":"1366521276","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366521276":["hashtag1","hashtag2"]},{"1366521281":["hashtag1","hashtag2"]},{"1366521269":["hashtag1","hashtag2"]},{"1366521272":["hashtag1","hashtag2"]},{"1366521286":["hashtag1","hashtag2"]},{"1366521274":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366521276, 1366521281, 1366521269, 1366521272, 1366521286, 1366521274)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 53.0464973449707 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:29:47.477532
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/29/image_16062025_09_29_45_10723.jpg', 2), ('/home/nano/Desktop/images/16062025/09/29/image_16062025_09_29_35_9703.jpg', 2), ('/home/nano/Desktop/images/16062025/09/29/image_16062025_09_29_25_9686.jpg', 2), ('/home/nano/Desktop/images/16062025/09/29/image_16062025_09_29_15_10701.jpg', 2), ('/home/nano/Desktop/images/16062025/09/28/image_16062025_09_29_04_9681.jpg', 2), ('/home/nano/Desktop/images/16062025/09/28/image_16062025_09_28_55_9685.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/29/image_16062025_09_29_45_10723.jpg', '/home/nano/Desktop/images/16062025/09/29/image_16062025_09_29_35_9703.jpg', '/home/nano/Desktop/images/16062025/09/29/image_16062025_09_29_25_9686.jpg', '/home/nano/Desktop/images/16062025/09/29/image_16062025_09_29_15_10701.jpg', '/home/nano/Desktop/images/16062025/09/28/image_16062025_09_29_04_9681.jpg', '/home/nano/Desktop/images/16062025/09/28/image_16062025_09_28_55_9685.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/29/image_16062025_09_29_45_10723.jpg
/home/nano/Desktop/images/16062025/09/29/image_16062025_09_29_35_9703.jpg
/home/nano/Desktop/images/16062025/09/29/image_16062025_09_29_25_9686.jpg
/home/nano/Desktop/images/16062025/09/29/image_16062025_09_29_15_10701.jpg
/home/nano/Desktop/images/16062025/09/28/image_16062025_09_29_04_9681.jpg
/home/nano/Desktop/images/16062025/09/28/image_16062025_09_28_55_9685.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366521300","1366521379","1366521451","1366521340","1366521307","1366521492"],"photo_ids_order":["1366521300","1366521307","1366521340","1366521379","1366521451","1366521492"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/74f565c87567da175103290dd9e5122d.jpg","text":"TemporaryFile(/tmp/multipartBody7112202770040663032asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059057122,"filename":"image_16062025_09_29_45_10723.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dbce7126f327e47dcba84d60ab012f1d.jpg","text":"TemporaryFile(/tmp/multipartBody8241634640175977604asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059057122,"filename":"image_16062025_09_29_15_10701.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e692b6e0523142719a9e709d08ace3dd.jpg","text":"TemporaryFile(/tmp/multipartBody5203180990756734488asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059057122,"filename":"image_16062025_09_29_04_9681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4a9f4bbf4c62ffb2b86893219f6d4c55.jpg","text":"TemporaryFile(/tmp/multipartBody1783316009036500558asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059057122,"filename":"image_16062025_09_29_25_9686.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/146e28d5ca5f72e1847917a8137d3f1a.jpg","text":"TemporaryFile(/tmp/multipartBody3652436859601740710asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059057122,"filename":"image_16062025_09_29_35_9703.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5b6816c27d1c5b0201c5ea1e5c4f07fc.jpg","text":"TemporaryFile(/tmp/multipartBody5078699683781841080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059057122,"filename":"image_16062025_09_28_55_9685.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366521340","file1":"1366521307","file0":"1366521300","file4":"1366521451","file5":"1366521492","file3":"1366521379"},"map_files_photo_id_array":[{"photo_id":"1366521492","filename":"file5"},{"photo_id":"1366521340","filename":"file2"},{"photo_id":"1366521451","filename":"file4"},{"photo_id":"1366521307","filename":"file1"},{"photo_id":"1366521300","filename":"file0"},{"photo_id":"1366521379","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366521300":["hashtag1","hashtag2"]},{"1366521379":["hashtag1","hashtag2"]},{"1366521451":["hashtag1","hashtag2"]},{"1366521340":["hashtag1","hashtag2"]},{"1366521307":["hashtag1","hashtag2"]},{"1366521492":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366521300, 1366521379, 1366521451, 1366521340, 1366521307, 1366521492)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 98.55655264854431 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:31:32.739761
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/31/image_16062025_09_31_45_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/09/31/image_16062025_09_31_35_10704.jpg', 2), ('/home/nano/Desktop/images/16062025/09/31/image_16062025_09_31_24_9697.jpg', 2), ('/home/nano/Desktop/images/16062025/09/31/image_16062025_09_31_15_9787.jpg', 2), ('/home/nano/Desktop/images/16062025/09/30/image_16062025_09_31_05_9711.jpg', 2), ('/home/nano/Desktop/images/16062025/09/30/image_16062025_09_30_55_10727.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/31/image_16062025_09_31_45_9669.jpg', '/home/nano/Desktop/images/16062025/09/31/image_16062025_09_31_35_10704.jpg', '/home/nano/Desktop/images/16062025/09/31/image_16062025_09_31_24_9697.jpg', '/home/nano/Desktop/images/16062025/09/31/image_16062025_09_31_15_9787.jpg', '/home/nano/Desktop/images/16062025/09/30/image_16062025_09_31_05_9711.jpg', '/home/nano/Desktop/images/16062025/09/30/image_16062025_09_30_55_10727.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/31/image_16062025_09_31_45_9669.jpg
/home/nano/Desktop/images/16062025/09/31/image_16062025_09_31_35_10704.jpg
/home/nano/Desktop/images/16062025/09/31/image_16062025_09_31_24_9697.jpg
/home/nano/Desktop/images/16062025/09/31/image_16062025_09_31_15_9787.jpg
/home/nano/Desktop/images/16062025/09/30/image_16062025_09_31_05_9711.jpg
/home/nano/Desktop/images/16062025/09/30/image_16062025_09_30_55_10727.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366521779","1366521851","1366521676","1366521628","1366521897","1366521715"],"photo_ids_order":["1366521628","1366521676","1366521715","1366521779","1366521851","1366521897"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/713f08bf83156ce6dd41ad6dadc4554e.jpg","text":"TemporaryFile(/tmp/multipartBody6228131166766190697asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059159212,"filename":"image_16062025_09_31_15_9787.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b23b7b0800b1122ab2312447dbe8e370.jpg","text":"TemporaryFile(/tmp/multipartBody6913049638900937153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059159212,"filename":"image_16062025_09_31_05_9711.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/aa68e29732508f4f76735e47ee5b1152.jpg","text":"TemporaryFile(/tmp/multipartBody6777421939824007593asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059159212,"filename":"image_16062025_09_31_35_10704.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8a48368cee0928c68ac0e3e382776830.jpg","text":"TemporaryFile(/tmp/multipartBody8763757182908874859asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059159212,"filename":"image_16062025_09_31_45_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/15fe0a461ecaa62e7783c22bab4de073.jpg","text":"TemporaryFile(/tmp/multipartBody8221164448709647033asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059159212,"filename":"image_16062025_09_30_55_10727.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0e3310e884f8c5e386394f1a5323deb9.jpg","text":"TemporaryFile(/tmp/multipartBody6504226128985581753asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059159212,"filename":"image_16062025_09_31_24_9697.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366521715","file1":"1366521676","file0":"1366521628","file4":"1366521851","file5":"1366521897","file3":"1366521779"},"map_files_photo_id_array":[{"photo_id":"1366521897","filename":"file5"},{"photo_id":"1366521715","filename":"file2"},{"photo_id":"1366521851","filename":"file4"},{"photo_id":"1366521676","filename":"file1"},{"photo_id":"1366521628","filename":"file0"},{"photo_id":"1366521779","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366521779":["hashtag1","hashtag2"]},{"1366521851":["hashtag1","hashtag2"]},{"1366521676":["hashtag1","hashtag2"]},{"1366521628":["hashtag1","hashtag2"]},{"1366521897":["hashtag1","hashtag2"]},{"1366521715":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366521779, 1366521851, 1366521676, 1366521628, 1366521897, 1366521715)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 84.78197121620178 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:33:02.627485
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/32/image_16062025_09_32_45_10699.jpg', 2), ('/home/nano/Desktop/images/16062025/09/32/image_16062025_09_32_34_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/09/32/image_16062025_09_32_25_9755.jpg', 2), ('/home/nano/Desktop/images/16062025/09/32/image_16062025_09_32_15_9789.jpg', 2), ('/home/nano/Desktop/images/16062025/09/31/image_16062025_09_32_05_10778.jpg', 2), ('/home/nano/Desktop/images/16062025/09/31/image_16062025_09_31_54_9734.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/32/image_16062025_09_32_45_10699.jpg', '/home/nano/Desktop/images/16062025/09/32/image_16062025_09_32_34_9646.jpg', '/home/nano/Desktop/images/16062025/09/32/image_16062025_09_32_25_9755.jpg', '/home/nano/Desktop/images/16062025/09/32/image_16062025_09_32_15_9789.jpg', '/home/nano/Desktop/images/16062025/09/31/image_16062025_09_32_05_10778.jpg', '/home/nano/Desktop/images/16062025/09/31/image_16062025_09_31_54_9734.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/32/image_16062025_09_32_45_10699.jpg
/home/nano/Desktop/images/16062025/09/32/image_16062025_09_32_34_9646.jpg
/home/nano/Desktop/images/16062025/09/32/image_16062025_09_32_25_9755.jpg
/home/nano/Desktop/images/16062025/09/32/image_16062025_09_32_15_9789.jpg
/home/nano/Desktop/images/16062025/09/31/image_16062025_09_32_05_10778.jpg
/home/nano/Desktop/images/16062025/09/31/image_16062025_09_31_54_9734.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366522115","1366522093","1366522045","1366522089","1366522098","1366522083"],"photo_ids_order":["1366522045","1366522083","1366522089","1366522093","1366522098","1366522115"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0d5eacff8ed5d58017bf83e0fe41480e.jpg","text":"TemporaryFile(/tmp/multipartBody7266161026932367473asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059250314,"filename":"image_16062025_09_31_54_9734.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2f246a53e1e00c5e3967b3c0470be289.jpg","text":"TemporaryFile(/tmp/multipartBody30541148903611260asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059250314,"filename":"image_16062025_09_32_15_9789.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3da8b700b3f1ce19daf5988d6a012ed7.jpg","text":"TemporaryFile(/tmp/multipartBody1499426973440729314asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059250314,"filename":"image_16062025_09_32_45_10699.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d65271e413c2ace915d8b2de6558ae85.jpg","text":"TemporaryFile(/tmp/multipartBody6004227833011919983asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059250314,"filename":"image_16062025_09_32_25_9755.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/28a41ddd677f87c7dab0e10fe00e1943.jpg","text":"TemporaryFile(/tmp/multipartBody6489892799570789433asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059250314,"filename":"image_16062025_09_32_05_10778.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6f682db2c28f2bf1c48c5f06904565cc.jpg","text":"TemporaryFile(/tmp/multipartBody4538670733110900037asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059250314,"filename":"image_16062025_09_32_34_9646.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366522089","file1":"1366522083","file0":"1366522045","file4":"1366522098","file5":"1366522115","file3":"1366522093"},"map_files_photo_id_array":[{"photo_id":"1366522115","filename":"file5"},{"photo_id":"1366522089","filename":"file2"},{"photo_id":"1366522098","filename":"file4"},{"photo_id":"1366522083","filename":"file1"},{"photo_id":"1366522045","filename":"file0"},{"photo_id":"1366522093","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366522115":["hashtag1","hashtag2"]},{"1366522093":["hashtag1","hashtag2"]},{"1366522045":["hashtag1","hashtag2"]},{"1366522089":["hashtag1","hashtag2"]},{"1366522098":["hashtag1","hashtag2"]},{"1366522083":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366522115, 1366522093, 1366522045, 1366522089, 1366522098, 1366522083)","result":[],"list_datou_current":[]}'
Result OK !
 val : 1 : upload photos already in processing! 
uploaded 6 photos
time to upload: 88.88144969940186 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:34:47.131010
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/34/image_16062025_09_34_45_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/09/34/image_16062025_09_34_35_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/09/34/image_16062025_09_34_25_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/09/34/image_16062025_09_34_15_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/09/33/image_16062025_09_34_05_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/09/33/image_16062025_09_33_55_9616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/34/image_16062025_09_34_45_9626.jpg', '/home/nano/Desktop/images/16062025/09/34/image_16062025_09_34_35_10629.jpg', '/home/nano/Desktop/images/16062025/09/34/image_16062025_09_34_25_9614.jpg', '/home/nano/Desktop/images/16062025/09/34/image_16062025_09_34_15_9624.jpg', '/home/nano/Desktop/images/16062025/09/33/image_16062025_09_34_05_10625.jpg', '/home/nano/Desktop/images/16062025/09/33/image_16062025_09_33_55_9616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/34/image_16062025_09_34_45_9626.jpg
/home/nano/Desktop/images/16062025/09/34/image_16062025_09_34_35_10629.jpg
/home/nano/Desktop/images/16062025/09/34/image_16062025_09_34_25_9614.jpg
/home/nano/Desktop/images/16062025/09/34/image_16062025_09_34_15_9624.jpg
/home/nano/Desktop/images/16062025/09/33/image_16062025_09_34_05_10625.jpg
/home/nano/Desktop/images/16062025/09/33/image_16062025_09_33_55_9616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366522286","1366522175","1366522223","1366522198","1366522204","1366522299"],"photo_ids_order":["1366522175","1366522198","1366522204","1366522223","1366522286","1366522299"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/263ed0b94aa1349bfa20504a542bba58.jpg","text":"TemporaryFile(/tmp/multipartBody5520375101440439203asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059349320,"filename":"image_16062025_09_34_05_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0f57dfb275a2802f26a6f86db70e59eb.jpg","text":"TemporaryFile(/tmp/multipartBody3494078536866022631asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059349320,"filename":"image_16062025_09_34_45_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a94c1fc3d9c70a86a799d42ca1ebb568.jpg","text":"TemporaryFile(/tmp/multipartBody511187473504802203asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059349320,"filename":"image_16062025_09_34_15_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/13ff56056bbab69b5c1f8fb4293b6f83.jpg","text":"TemporaryFile(/tmp/multipartBody5939900799836838490asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059349320,"filename":"image_16062025_09_34_35_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/72a0a75a11927ef34f8d880ba60e98a0.jpg","text":"TemporaryFile(/tmp/multipartBody5700894391662603139asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059349320,"filename":"image_16062025_09_34_25_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e6a309585f70f4244517c6fc8abfce23.jpg","text":"TemporaryFile(/tmp/multipartBody1464758097108304909asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059349320,"filename":"image_16062025_09_33_55_9616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366522204","file1":"1366522198","file0":"1366522175","file4":"1366522286","file5":"1366522299","file3":"1366522223"},"map_files_photo_id_array":[{"photo_id":"1366522299","filename":"file5"},{"photo_id":"1366522204","filename":"file2"},{"photo_id":"1366522286","filename":"file4"},{"photo_id":"1366522198","filename":"file1"},{"photo_id":"1366522175","filename":"file0"},{"photo_id":"1366522223","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366522286":["hashtag1","hashtag2"]},{"1366522175":["hashtag1","hashtag2"]},{"1366522223":["hashtag1","hashtag2"]},{"1366522198":["hashtag1","hashtag2"]},{"1366522204":["hashtag1","hashtag2"]},{"1366522299":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366522286, 1366522175, 1366522223, 1366522198, 1366522204, 1366522299)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 97.58119082450867 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:36:32.339185
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/36/image_16062025_09_36_45_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/09/36/image_16062025_09_36_35_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/09/36/image_16062025_09_36_25_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/09/36/image_16062025_09_36_15_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/09/35/image_16062025_09_36_05_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/09/35/image_16062025_09_35_55_10616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/36/image_16062025_09_36_45_10616.jpg', '/home/nano/Desktop/images/16062025/09/36/image_16062025_09_36_35_9604.jpg', '/home/nano/Desktop/images/16062025/09/36/image_16062025_09_36_25_9602.jpg', '/home/nano/Desktop/images/16062025/09/36/image_16062025_09_36_15_10645.jpg', '/home/nano/Desktop/images/16062025/09/35/image_16062025_09_36_05_9609.jpg', '/home/nano/Desktop/images/16062025/09/35/image_16062025_09_35_55_10616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/36/image_16062025_09_36_45_10616.jpg
/home/nano/Desktop/images/16062025/09/36/image_16062025_09_36_35_9604.jpg
/home/nano/Desktop/images/16062025/09/36/image_16062025_09_36_25_9602.jpg
/home/nano/Desktop/images/16062025/09/36/image_16062025_09_36_15_10645.jpg
/home/nano/Desktop/images/16062025/09/35/image_16062025_09_36_05_9609.jpg
/home/nano/Desktop/images/16062025/09/35/image_16062025_09_35_55_10616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366522868","1366522904","1366522891","1366522875","1366522884","1366522845"],"photo_ids_order":["1366522845","1366522868","1366522875","1366522884","1366522891","1366522904"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6f71bd0b4320cb9d7ac0279f35b717a6.jpg","text":"TemporaryFile(/tmp/multipartBody5474571451405916909asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059484709,"filename":"image_16062025_09_36_35_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c42e7b98dac3b30ee6dfd59d46e22c0f.jpg","text":"TemporaryFile(/tmp/multipartBody8128625988594416782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059484709,"filename":"image_16062025_09_35_55_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/19c20e8158847ca1a42d7a17c5ee606e.jpg","text":"TemporaryFile(/tmp/multipartBody2951304758325965846asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059484709,"filename":"image_16062025_09_36_05_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a9c3a1a356691a5158d11c5c2080c9a4.jpg","text":"TemporaryFile(/tmp/multipartBody1028508265385112734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059484709,"filename":"image_16062025_09_36_25_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a2e43330165563dd6c5da3187d7bd318.jpg","text":"TemporaryFile(/tmp/multipartBody397455226622530542asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059484709,"filename":"image_16062025_09_36_15_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b137a8ca49ff11803cc37bacc9e85da6.jpg","text":"TemporaryFile(/tmp/multipartBody8733091543778664974asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059484709,"filename":"image_16062025_09_36_45_10616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366522875","file1":"1366522868","file0":"1366522845","file4":"1366522891","file5":"1366522904","file3":"1366522884"},"map_files_photo_id_array":[{"photo_id":"1366522904","filename":"file5"},{"photo_id":"1366522875","filename":"file2"},{"photo_id":"1366522891","filename":"file4"},{"photo_id":"1366522868","filename":"file1"},{"photo_id":"1366522845","filename":"file0"},{"photo_id":"1366522884","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366522868":["hashtag1","hashtag2"]},{"1366522904":["hashtag1","hashtag2"]},{"1366522891":["hashtag1","hashtag2"]},{"1366522875":["hashtag1","hashtag2"]},{"1366522884":["hashtag1","hashtag2"]},{"1366522845":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366522868, 1366522904, 1366522891, 1366522875, 1366522884, 1366522845)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 213.17841958999634 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:40:16.866278
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/40/image_16062025_09_40_45_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/09/40/image_16062025_09_40_34_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/09/40/image_16062025_09_40_25_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/09/40/image_16062025_09_40_15_10677.jpg', 2), ('/home/nano/Desktop/images/16062025/09/39/image_16062025_09_40_05_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/09/39/image_16062025_09_39_55_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/40/image_16062025_09_40_45_10613.jpg', '/home/nano/Desktop/images/16062025/09/40/image_16062025_09_40_34_9633.jpg', '/home/nano/Desktop/images/16062025/09/40/image_16062025_09_40_25_9617.jpg', '/home/nano/Desktop/images/16062025/09/40/image_16062025_09_40_15_10677.jpg', '/home/nano/Desktop/images/16062025/09/39/image_16062025_09_40_05_9626.jpg', '/home/nano/Desktop/images/16062025/09/39/image_16062025_09_39_55_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/40/image_16062025_09_40_45_10613.jpg
/home/nano/Desktop/images/16062025/09/40/image_16062025_09_40_34_9633.jpg
/home/nano/Desktop/images/16062025/09/40/image_16062025_09_40_25_9617.jpg
/home/nano/Desktop/images/16062025/09/40/image_16062025_09_40_15_10677.jpg
/home/nano/Desktop/images/16062025/09/39/image_16062025_09_40_05_9626.jpg
/home/nano/Desktop/images/16062025/09/39/image_16062025_09_39_55_9610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366522988","1366522996","1366522981","1366522975","1366523008","1366522968"],"photo_ids_order":["1366522968","1366522975","1366522981","1366522988","1366522996","1366523008"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0daa81455b740c79ac04793d2b32ffac.jpg","text":"TemporaryFile(/tmp/multipartBody8471037114907790415asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059681306,"filename":"image_16062025_09_40_15_10677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/358a833451bbd4679a4c1729d611f370.jpg","text":"TemporaryFile(/tmp/multipartBody5385577368473469517asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059681306,"filename":"image_16062025_09_40_05_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b1c7c83c4a10b85058be57531c95fd14.jpg","text":"TemporaryFile(/tmp/multipartBody3207310799276067353asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059681306,"filename":"image_16062025_09_40_25_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fac8ab50c68bd23952c0c95235b2d2cb.jpg","text":"TemporaryFile(/tmp/multipartBody8664963771318597776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059681306,"filename":"image_16062025_09_40_34_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c592d9ca6b8718003de177c342aca2c6.jpg","text":"TemporaryFile(/tmp/multipartBody8082070334055977046asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059681306,"filename":"image_16062025_09_39_55_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a344e3176e33eed6ef2c62c5e5f1e7b7.jpg","text":"TemporaryFile(/tmp/multipartBody8240694500894799266asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059681306,"filename":"image_16062025_09_40_45_10613.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366522981","file1":"1366522975","file0":"1366522968","file4":"1366522996","file5":"1366523008","file3":"1366522988"},"map_files_photo_id_array":[{"photo_id":"1366523008","filename":"file5"},{"photo_id":"1366522981","filename":"file2"},{"photo_id":"1366522996","filename":"file4"},{"photo_id":"1366522975","filename":"file1"},{"photo_id":"1366522968","filename":"file0"},{"photo_id":"1366522988","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366522988":["hashtag1","hashtag2"]},{"1366522996":["hashtag1","hashtag2"]},{"1366522981":["hashtag1","hashtag2"]},{"1366522975":["hashtag1","hashtag2"]},{"1366523008":["hashtag1","hashtag2"]},{"1366522968":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366522988, 1366522996, 1366522981, 1366522975, 1366523008, 1366522968)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 107.63645124435425 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:42:17.177609
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/42/image_16062025_09_42_44_9606.jpg', 2), ('/home/nano/Desktop/images/16062025/09/42/image_16062025_09_42_35_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/09/42/image_16062025_09_42_25_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/09/42/image_16062025_09_42_15_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/09/41/image_16062025_09_42_05_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/09/41/image_16062025_09_41_54_9607.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/42/image_16062025_09_42_44_9606.jpg', '/home/nano/Desktop/images/16062025/09/42/image_16062025_09_42_35_9597.jpg', '/home/nano/Desktop/images/16062025/09/42/image_16062025_09_42_25_10634.jpg', '/home/nano/Desktop/images/16062025/09/42/image_16062025_09_42_15_9602.jpg', '/home/nano/Desktop/images/16062025/09/41/image_16062025_09_42_05_10646.jpg', '/home/nano/Desktop/images/16062025/09/41/image_16062025_09_41_54_9607.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/42/image_16062025_09_42_44_9606.jpg
/home/nano/Desktop/images/16062025/09/42/image_16062025_09_42_35_9597.jpg
/home/nano/Desktop/images/16062025/09/42/image_16062025_09_42_25_10634.jpg
/home/nano/Desktop/images/16062025/09/42/image_16062025_09_42_15_9602.jpg
/home/nano/Desktop/images/16062025/09/41/image_16062025_09_42_05_10646.jpg
/home/nano/Desktop/images/16062025/09/41/image_16062025_09_41_54_9607.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366523057","1366523045","1366523033","1366523052","1366523040","1366523100"],"photo_ids_order":["1366523033","1366523040","1366523045","1366523052","1366523057","1366523100"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5a1051c75ab17bb7e06b2e2e8367f1a4.jpg","text":"TemporaryFile(/tmp/multipartBody4632884886968925258asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059799527,"filename":"image_16062025_09_42_05_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/49c74a213fdf888b43c02db2c9126099.jpg","text":"TemporaryFile(/tmp/multipartBody5883883203728042719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059799527,"filename":"image_16062025_09_42_25_10634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fae6916813c2313cb185e25065d42f39.jpg","text":"TemporaryFile(/tmp/multipartBody781792374550151250asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059799527,"filename":"image_16062025_09_42_44_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1247d6f52179dab11392aa6536d78fe0.jpg","text":"TemporaryFile(/tmp/multipartBody7747357308552260790asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059799527,"filename":"image_16062025_09_42_15_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5709e3e97f38bd306392d058c603a17d.jpg","text":"TemporaryFile(/tmp/multipartBody2880159778040397795asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059799527,"filename":"image_16062025_09_42_35_9597.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c7a7d8237fcb6d296ea2a5dbc0028766.jpg","text":"TemporaryFile(/tmp/multipartBody7613632085442741201asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059799527,"filename":"image_16062025_09_41_54_9607.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366523045","file1":"1366523040","file0":"1366523033","file4":"1366523057","file5":"1366523100","file3":"1366523052"},"map_files_photo_id_array":[{"photo_id":"1366523100","filename":"file5"},{"photo_id":"1366523045","filename":"file2"},{"photo_id":"1366523057","filename":"file4"},{"photo_id":"1366523040","filename":"file1"},{"photo_id":"1366523033","filename":"file0"},{"photo_id":"1366523052","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366523057":["hashtag1","hashtag2"]},{"1366523045":["hashtag1","hashtag2"]},{"1366523033":["hashtag1","hashtag2"]},{"1366523052":["hashtag1","hashtag2"]},{"1366523040":["hashtag1","hashtag2"]},{"1366523100":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366523057, 1366523045, 1366523033, 1366523052, 1366523040, 1366523100)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 62.204482316970825 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:43:32.293406
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/43/image_16062025_09_43_45_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/09/43/image_16062025_09_43_35_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/09/43/image_16062025_09_43_25_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/09/43/image_16062025_09_43_15_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/09/42/image_16062025_09_43_05_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/09/42/image_16062025_09_42_55_10608.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/43/image_16062025_09_43_45_10618.jpg', '/home/nano/Desktop/images/16062025/09/43/image_16062025_09_43_35_9607.jpg', '/home/nano/Desktop/images/16062025/09/43/image_16062025_09_43_25_9601.jpg', '/home/nano/Desktop/images/16062025/09/43/image_16062025_09_43_15_10635.jpg', '/home/nano/Desktop/images/16062025/09/42/image_16062025_09_43_05_9616.jpg', '/home/nano/Desktop/images/16062025/09/42/image_16062025_09_42_55_10608.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/43/image_16062025_09_43_45_10618.jpg
/home/nano/Desktop/images/16062025/09/43/image_16062025_09_43_35_9607.jpg
/home/nano/Desktop/images/16062025/09/43/image_16062025_09_43_25_9601.jpg
/home/nano/Desktop/images/16062025/09/43/image_16062025_09_43_15_10635.jpg
/home/nano/Desktop/images/16062025/09/42/image_16062025_09_43_05_9616.jpg
/home/nano/Desktop/images/16062025/09/42/image_16062025_09_42_55_10608.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.4169526100158691 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:43:47.338536
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/43/image_16062025_09_43_45_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/09/43/image_16062025_09_43_35_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/09/43/image_16062025_09_43_25_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/09/43/image_16062025_09_43_15_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/09/42/image_16062025_09_43_05_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/09/42/image_16062025_09_42_55_10608.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/43/image_16062025_09_43_45_10618.jpg', '/home/nano/Desktop/images/16062025/09/43/image_16062025_09_43_35_9607.jpg', '/home/nano/Desktop/images/16062025/09/43/image_16062025_09_43_25_9601.jpg', '/home/nano/Desktop/images/16062025/09/43/image_16062025_09_43_15_10635.jpg', '/home/nano/Desktop/images/16062025/09/42/image_16062025_09_43_05_9616.jpg', '/home/nano/Desktop/images/16062025/09/42/image_16062025_09_42_55_10608.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/43/image_16062025_09_43_45_10618.jpg
/home/nano/Desktop/images/16062025/09/43/image_16062025_09_43_35_9607.jpg
/home/nano/Desktop/images/16062025/09/43/image_16062025_09_43_25_9601.jpg
/home/nano/Desktop/images/16062025/09/43/image_16062025_09_43_15_10635.jpg
/home/nano/Desktop/images/16062025/09/42/image_16062025_09_43_05_9616.jpg
/home/nano/Desktop/images/16062025/09/42/image_16062025_09_42_55_10608.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366523426","1366523321","1366523404","1366523499","1366523484","1366523505"],"photo_ids_order":["1366523321","1366523404","1366523426","1366523484","1366523499","1366523505"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2afe1deb55db670419cd60256e2b9ef8.jpg","text":"TemporaryFile(/tmp/multipartBody3217726129459755544asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059889428,"filename":"image_16062025_09_43_25_9601.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/df88bebfbcbed7ea76edcf518f4fe012.jpg","text":"TemporaryFile(/tmp/multipartBody6724530594303153415asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059889428,"filename":"image_16062025_09_43_45_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/06327ad4db6192bef3ff9aef803194f2.jpg","text":"TemporaryFile(/tmp/multipartBody8446679876305027874asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059889428,"filename":"image_16062025_09_43_35_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c4a9e4fac0e6fbf60c6412f15b0c4d75.jpg","text":"TemporaryFile(/tmp/multipartBody31012394590775598asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059889428,"filename":"image_16062025_09_43_05_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b4fe1c4106856bab908546023ea1519b.jpg","text":"TemporaryFile(/tmp/multipartBody7467031622275780182asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059889428,"filename":"image_16062025_09_43_15_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3a677ea93a1a14a8ef2724b6fe4b7d53.jpg","text":"TemporaryFile(/tmp/multipartBody3322787782198444427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059889428,"filename":"image_16062025_09_42_55_10608.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366523426","file1":"1366523404","file0":"1366523321","file4":"1366523499","file5":"1366523505","file3":"1366523484"},"map_files_photo_id_array":[{"photo_id":"1366523505","filename":"file5"},{"photo_id":"1366523426","filename":"file2"},{"photo_id":"1366523499","filename":"file4"},{"photo_id":"1366523404","filename":"file1"},{"photo_id":"1366523321","filename":"file0"},{"photo_id":"1366523484","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366523426":["hashtag1","hashtag2"]},{"1366523321":["hashtag1","hashtag2"]},{"1366523404":["hashtag1","hashtag2"]},{"1366523499":["hashtag1","hashtag2"]},{"1366523484":["hashtag1","hashtag2"]},{"1366523505":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366523426, 1366523321, 1366523404, 1366523499, 1366523484, 1366523505)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 75.99499773979187 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:45:17.537095
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/45/image_16062025_09_45_44_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/09/45/image_16062025_09_45_35_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/09/45/image_16062025_09_45_25_10607.jpg', 2), ('/home/nano/Desktop/images/16062025/09/45/image_16062025_09_45_15_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/09/44/image_16062025_09_45_05_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/09/44/image_16062025_09_44_54_9603.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/45/image_16062025_09_45_44_9602.jpg', '/home/nano/Desktop/images/16062025/09/45/image_16062025_09_45_35_9600.jpg', '/home/nano/Desktop/images/16062025/09/45/image_16062025_09_45_25_10607.jpg', '/home/nano/Desktop/images/16062025/09/45/image_16062025_09_45_15_9620.jpg', '/home/nano/Desktop/images/16062025/09/44/image_16062025_09_45_05_10623.jpg', '/home/nano/Desktop/images/16062025/09/44/image_16062025_09_44_54_9603.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/45/image_16062025_09_45_44_9602.jpg
/home/nano/Desktop/images/16062025/09/45/image_16062025_09_45_35_9600.jpg
/home/nano/Desktop/images/16062025/09/45/image_16062025_09_45_25_10607.jpg
/home/nano/Desktop/images/16062025/09/45/image_16062025_09_45_15_9620.jpg
/home/nano/Desktop/images/16062025/09/44/image_16062025_09_45_05_10623.jpg
/home/nano/Desktop/images/16062025/09/44/image_16062025_09_44_54_9603.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366523875","1366523617","1366523562","1366523955","1366523691","1366523634"],"photo_ids_order":["1366523562","1366523617","1366523634","1366523691","1366523875","1366523955"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2b00e95e97ecb0d619c842fae65a7d20.jpg","text":"TemporaryFile(/tmp/multipartBody7998468758177209754asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059981684,"filename":"image_16062025_09_45_05_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/893a491e517a2d8c1b82b74b5d8f53a8.jpg","text":"TemporaryFile(/tmp/multipartBody5546849930387375178asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059981684,"filename":"image_16062025_09_45_35_9600.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/abfc6545235681c9d6e456a56888df0e.jpg","text":"TemporaryFile(/tmp/multipartBody5792898484445232712asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059981684,"filename":"image_16062025_09_45_44_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dace6662fc6c4d37828c26e62347ed12.jpg","text":"TemporaryFile(/tmp/multipartBody253193210537427928asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059981684,"filename":"image_16062025_09_44_54_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/629f6c24995279123d5e179c9c016196.jpg","text":"TemporaryFile(/tmp/multipartBody6355593148695351433asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059981684,"filename":"image_16062025_09_45_15_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b4f9fae6f302f923bd27996fcb3256b4.jpg","text":"TemporaryFile(/tmp/multipartBody8239781908216670625asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750059981684,"filename":"image_16062025_09_45_25_10607.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366523634","file1":"1366523617","file0":"1366523562","file4":"1366523875","file5":"1366523955","file3":"1366523691"},"map_files_photo_id_array":[{"photo_id":"1366523955","filename":"file5"},{"photo_id":"1366523634","filename":"file2"},{"photo_id":"1366523875","filename":"file4"},{"photo_id":"1366523617","filename":"file1"},{"photo_id":"1366523562","filename":"file0"},{"photo_id":"1366523691","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366523875":["hashtag1","hashtag2"]},{"1366523617":["hashtag1","hashtag2"]},{"1366523562":["hashtag1","hashtag2"]},{"1366523955":["hashtag1","hashtag2"]},{"1366523691":["hashtag1","hashtag2"]},{"1366523634":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366523875, 1366523617, 1366523562, 1366523955, 1366523691, 1366523634)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 190.22852444648743 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:48:31.910063
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/48/image_16062025_09_48_45_9595.jpg', 2), ('/home/nano/Desktop/images/16062025/09/48/image_16062025_09_48_35_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/09/48/image_16062025_09_48_15_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/09/47/image_16062025_09_48_05_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/09/47/image_16062025_09_47_54_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/09/47/image_16062025_09_47_45_9597.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/48/image_16062025_09_48_45_9595.jpg', '/home/nano/Desktop/images/16062025/09/48/image_16062025_09_48_35_9603.jpg', '/home/nano/Desktop/images/16062025/09/48/image_16062025_09_48_15_9623.jpg', '/home/nano/Desktop/images/16062025/09/47/image_16062025_09_48_05_10616.jpg', '/home/nano/Desktop/images/16062025/09/47/image_16062025_09_47_54_9597.jpg', '/home/nano/Desktop/images/16062025/09/47/image_16062025_09_47_45_9597.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/48/image_16062025_09_48_45_9595.jpg
/home/nano/Desktop/images/16062025/09/48/image_16062025_09_48_35_9603.jpg
/home/nano/Desktop/images/16062025/09/48/image_16062025_09_48_15_9623.jpg
/home/nano/Desktop/images/16062025/09/47/image_16062025_09_48_05_10616.jpg
/home/nano/Desktop/images/16062025/09/47/image_16062025_09_47_54_9597.jpg
/home/nano/Desktop/images/16062025/09/47/image_16062025_09_47_45_9597.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366524172","1366524147","1366524213","1366524224","1366524134","1366524190"],"photo_ids_order":["1366524134","1366524147","1366524172","1366524190","1366524213","1366524224"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0a250a00852e443ef6ca74253daaabf5.jpg","text":"TemporaryFile(/tmp/multipartBody960460467076470406asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750060180309,"filename":"image_16062025_09_48_15_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d4f0b444bf4558f90200f4bff7e3222c.jpg","text":"TemporaryFile(/tmp/multipartBody879734003673696693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750060180309,"filename":"image_16062025_09_48_35_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b736c0c05dfb1c630aaf6ec6d52af45a.jpg","text":"TemporaryFile(/tmp/multipartBody7315820686959484851asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750060180309,"filename":"image_16062025_09_47_54_9597.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e4ba7d4c01c5c33769d67910a93fa70c.jpg","text":"TemporaryFile(/tmp/multipartBody4179716559784705438asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750060180309,"filename":"image_16062025_09_47_45_9597.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8862b280a87ebc9cf4130e9241f68e94.jpg","text":"TemporaryFile(/tmp/multipartBody8228015667089943519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750060180309,"filename":"image_16062025_09_48_45_9595.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c38a2aa9f53027ae9f29aea9e9c56dc9.jpg","text":"TemporaryFile(/tmp/multipartBody4977175526214924145asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750060180309,"filename":"image_16062025_09_48_05_10616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366524172","file1":"1366524147","file0":"1366524134","file4":"1366524213","file5":"1366524224","file3":"1366524190"},"map_files_photo_id_array":[{"photo_id":"1366524224","filename":"file5"},{"photo_id":"1366524172","filename":"file2"},{"photo_id":"1366524213","filename":"file4"},{"photo_id":"1366524147","filename":"file1"},{"photo_id":"1366524134","filename":"file0"},{"photo_id":"1366524190","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366524172":["hashtag1","hashtag2"]},{"1366524147":["hashtag1","hashtag2"]},{"1366524213":["hashtag1","hashtag2"]},{"1366524224":["hashtag1","hashtag2"]},{"1366524134":["hashtag1","hashtag2"]},{"1366524190":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366524172, 1366524147, 1366524213, 1366524224, 1366524134, 1366524190)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 199.71754622459412 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:52:02.897600
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/51/image_16062025_09_51_45_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/09/51/image_16062025_09_51_35_10607.jpg', 2), ('/home/nano/Desktop/images/16062025/09/51/image_16062025_09_51_24_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/09/51/image_16062025_09_51_15_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/09/50/image_16062025_09_51_05_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/09/50/image_16062025_09_50_54_9596.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/51/image_16062025_09_51_45_9602.jpg', '/home/nano/Desktop/images/16062025/09/51/image_16062025_09_51_35_10607.jpg', '/home/nano/Desktop/images/16062025/09/51/image_16062025_09_51_24_9609.jpg', '/home/nano/Desktop/images/16062025/09/51/image_16062025_09_51_15_9614.jpg', '/home/nano/Desktop/images/16062025/09/50/image_16062025_09_51_05_10653.jpg', '/home/nano/Desktop/images/16062025/09/50/image_16062025_09_50_54_9596.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/51/image_16062025_09_51_45_9602.jpg
/home/nano/Desktop/images/16062025/09/51/image_16062025_09_51_35_10607.jpg
/home/nano/Desktop/images/16062025/09/51/image_16062025_09_51_24_9609.jpg
/home/nano/Desktop/images/16062025/09/51/image_16062025_09_51_15_9614.jpg
/home/nano/Desktop/images/16062025/09/50/image_16062025_09_51_05_10653.jpg
/home/nano/Desktop/images/16062025/09/50/image_16062025_09_50_54_9596.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366524304","1366524291","1366524309","1366524272","1366524314","1366524298"],"photo_ids_order":["1366524272","1366524291","1366524298","1366524304","1366524309","1366524314"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/db4396e876565c310efcdc6fc2492d43.jpg","text":"TemporaryFile(/tmp/multipartBody8349314740508525659asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750060389654,"filename":"image_16062025_09_51_15_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/281aaabd82b2f5a844ea7033cc68bb0e.jpg","text":"TemporaryFile(/tmp/multipartBody5689113169034350501asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750060389654,"filename":"image_16062025_09_51_35_10607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/363be7dad59c110facb0d4516f8949b3.jpg","text":"TemporaryFile(/tmp/multipartBody8116721886882747962asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750060389654,"filename":"image_16062025_09_51_05_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0145ea251bcc6f54676344a0671eded3.jpg","text":"TemporaryFile(/tmp/multipartBody7106045621685654790asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750060389654,"filename":"image_16062025_09_51_45_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/af92f7a885ddb8be155d9ac101a6ed89.jpg","text":"TemporaryFile(/tmp/multipartBody5222836341636655906asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750060389654,"filename":"image_16062025_09_50_54_9596.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0765da5c7cf6b3dccb0b7885050d8ca7.jpg","text":"TemporaryFile(/tmp/multipartBody5170733501689753754asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750060389654,"filename":"image_16062025_09_51_24_9609.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366524298","file1":"1366524291","file0":"1366524272","file4":"1366524309","file5":"1366524314","file3":"1366524304"},"map_files_photo_id_array":[{"photo_id":"1366524314","filename":"file5"},{"photo_id":"1366524298","filename":"file2"},{"photo_id":"1366524309","filename":"file4"},{"photo_id":"1366524291","filename":"file1"},{"photo_id":"1366524272","filename":"file0"},{"photo_id":"1366524304","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366524304":["hashtag1","hashtag2"]},{"1366524291":["hashtag1","hashtag2"]},{"1366524309":["hashtag1","hashtag2"]},{"1366524272":["hashtag1","hashtag2"]},{"1366524314":["hashtag1","hashtag2"]},{"1366524298":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366524304, 1366524291, 1366524309, 1366524272, 1366524314, 1366524298)","result":[],"list_datou_current":[]}'
Result OK !
 val : 1 : upload photos already in processing! 
uploaded 6 photos
time to upload: 88.88500475883484 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:53:47.420821
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/53/image_16062025_09_53_45_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/09/53/image_16062025_09_53_35_10607.jpg', 2), ('/home/nano/Desktop/images/16062025/09/53/image_16062025_09_53_25_9606.jpg', 2), ('/home/nano/Desktop/images/16062025/09/53/image_16062025_09_53_15_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/09/52/image_16062025_09_53_05_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/09/52/image_16062025_09_52_55_9602.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/53/image_16062025_09_53_45_9605.jpg', '/home/nano/Desktop/images/16062025/09/53/image_16062025_09_53_35_10607.jpg', '/home/nano/Desktop/images/16062025/09/53/image_16062025_09_53_25_9606.jpg', '/home/nano/Desktop/images/16062025/09/53/image_16062025_09_53_15_10638.jpg', '/home/nano/Desktop/images/16062025/09/52/image_16062025_09_53_05_9615.jpg', '/home/nano/Desktop/images/16062025/09/52/image_16062025_09_52_55_9602.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/53/image_16062025_09_53_45_9605.jpg
/home/nano/Desktop/images/16062025/09/53/image_16062025_09_53_35_10607.jpg
/home/nano/Desktop/images/16062025/09/53/image_16062025_09_53_25_9606.jpg
/home/nano/Desktop/images/16062025/09/53/image_16062025_09_53_15_10638.jpg
/home/nano/Desktop/images/16062025/09/52/image_16062025_09_53_05_9615.jpg
/home/nano/Desktop/images/16062025/09/52/image_16062025_09_52_55_9602.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 09:58:02.269735
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/09/57/image_16062025_09_57_45_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/09/57/image_16062025_09_57_35_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/09/57/image_16062025_09_57_25_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/09/57/image_16062025_09_57_15_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/09/56/image_16062025_09_57_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/09/56/image_16062025_09_56_55_9624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/09/57/image_16062025_09_57_45_9613.jpg', '/home/nano/Desktop/images/16062025/09/57/image_16062025_09_57_35_10621.jpg', '/home/nano/Desktop/images/16062025/09/57/image_16062025_09_57_25_9601.jpg', '/home/nano/Desktop/images/16062025/09/57/image_16062025_09_57_15_10639.jpg', '/home/nano/Desktop/images/16062025/09/56/image_16062025_09_57_04_9630.jpg', '/home/nano/Desktop/images/16062025/09/56/image_16062025_09_56_55_9624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/09/57/image_16062025_09_57_45_9613.jpg
/home/nano/Desktop/images/16062025/09/57/image_16062025_09_57_35_10621.jpg
/home/nano/Desktop/images/16062025/09/57/image_16062025_09_57_25_9601.jpg
/home/nano/Desktop/images/16062025/09/57/image_16062025_09_57_15_10639.jpg
/home/nano/Desktop/images/16062025/09/56/image_16062025_09_57_04_9630.jpg
/home/nano/Desktop/images/16062025/09/56/image_16062025_09_56_55_9624.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366525998","1366525914","1366525821","1366525841","1366525850","1366525771"],"photo_ids_order":["1366525771","1366525821","1366525841","1366525850","1366525914","1366525998"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/27e51d399bb76713610f8266042499dc.jpg","text":"TemporaryFile(/tmp/multipartBody2790583125225290008asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750060781914,"filename":"image_16062025_09_56_55_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cee6d9c9c8097727f0232787a47dd4b2.jpg","text":"TemporaryFile(/tmp/multipartBody972692608402344989asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750060781914,"filename":"image_16062025_09_57_04_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dc98e717109bf575544a8abf3042ce60.jpg","text":"TemporaryFile(/tmp/multipartBody1813531759069369529asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750060781914,"filename":"image_16062025_09_57_35_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/38251039bd3741b17e98cf73a1ff01c3.jpg","text":"TemporaryFile(/tmp/multipartBody7791995379287101464asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750060781914,"filename":"image_16062025_09_57_25_9601.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1d95be50c65a87e38f93d77711734887.jpg","text":"TemporaryFile(/tmp/multipartBody1235437083604364566asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750060781914,"filename":"image_16062025_09_57_15_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c44326364827e0dec5ed3bbcf191a233.jpg","text":"TemporaryFile(/tmp/multipartBody1823175160528115981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750060781914,"filename":"image_16062025_09_57_45_9613.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366525841","file1":"1366525821","file0":"1366525771","file4":"1366525914","file5":"1366525998","file3":"1366525850"},"map_files_photo_id_array":[{"photo_id":"1366525998","filename":"file5"},{"photo_id":"1366525841","filename":"file2"},{"photo_id":"1366525914","filename":"file4"},{"photo_id":"1366525821","filename":"file1"},{"photo_id":"1366525771","filename":"file0"},{"photo_id":"1366525850","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366525998":["hashtag1","hashtag2"]},{"1366525914":["hashtag1","hashtag2"]},{"1366525821":["hashtag1","hashtag2"]},{"1366525841":["hashtag1","hashtag2"]},{"1366525850":["hashtag1","hashtag2"]},{"1366525771":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366525998, 1366525914, 1366525821, 1366525841, 1366525850, 1366525771)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 264.1351833343506 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:02:32.169380
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/02/image_16062025_10_02_45_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/10/02/image_16062025_10_02_34_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/10/02/image_16062025_10_02_25_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/10/02/image_16062025_10_02_15_10663.jpg', 2), ('/home/nano/Desktop/images/16062025/10/01/image_16062025_10_02_05_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/10/01/image_16062025_10_01_55_10602.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/02/image_16062025_10_02_45_10623.jpg', '/home/nano/Desktop/images/16062025/10/02/image_16062025_10_02_34_9609.jpg', '/home/nano/Desktop/images/16062025/10/02/image_16062025_10_02_25_9610.jpg', '/home/nano/Desktop/images/16062025/10/02/image_16062025_10_02_15_10663.jpg', '/home/nano/Desktop/images/16062025/10/01/image_16062025_10_02_05_9607.jpg', '/home/nano/Desktop/images/16062025/10/01/image_16062025_10_01_55_10602.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/02/image_16062025_10_02_45_10623.jpg
/home/nano/Desktop/images/16062025/10/02/image_16062025_10_02_34_9609.jpg
/home/nano/Desktop/images/16062025/10/02/image_16062025_10_02_25_9610.jpg
/home/nano/Desktop/images/16062025/10/02/image_16062025_10_02_15_10663.jpg
/home/nano/Desktop/images/16062025/10/01/image_16062025_10_02_05_9607.jpg
/home/nano/Desktop/images/16062025/10/01/image_16062025_10_01_55_10602.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366526316","1366526250","1366526307","1366526276","1366526208","1366526263"],"photo_ids_order":["1366526208","1366526250","1366526263","1366526276","1366526307","1366526316"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/70278949cb48069e00dd4f8a75a95fc7.jpg","text":"TemporaryFile(/tmp/multipartBody7208755933685236596asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061034163,"filename":"image_16062025_10_01_55_10602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e88fa71905bf194e07f78dfa87e5488b.jpg","text":"TemporaryFile(/tmp/multipartBody7288823977412891562asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061034163,"filename":"image_16062025_10_02_34_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9387cf02ee929e227c70fb27df63f796.jpg","text":"TemporaryFile(/tmp/multipartBody2616821724034443360asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061034163,"filename":"image_16062025_10_02_05_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/621b5acace148162b7153cff0d4785de.jpg","text":"TemporaryFile(/tmp/multipartBody1166160869558833572asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061034163,"filename":"image_16062025_10_02_15_10663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dc14520b417de3c479267135a60936d5.jpg","text":"TemporaryFile(/tmp/multipartBody6099528568019058224asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061034163,"filename":"image_16062025_10_02_45_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f990daaee6cb2a8fa957b3b133be1f66.jpg","text":"TemporaryFile(/tmp/multipartBody1234887424938102235asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061034163,"filename":"image_16062025_10_02_25_9610.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366526263","file1":"1366526250","file0":"1366526208","file4":"1366526307","file5":"1366526316","file3":"1366526276"},"map_files_photo_id_array":[{"photo_id":"1366526316","filename":"file5"},{"photo_id":"1366526263","filename":"file2"},{"photo_id":"1366526307","filename":"file4"},{"photo_id":"1366526250","filename":"file1"},{"photo_id":"1366526208","filename":"file0"},{"photo_id":"1366526276","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366526316":["hashtag1","hashtag2"]},{"1366526250":["hashtag1","hashtag2"]},{"1366526307":["hashtag1","hashtag2"]},{"1366526276":["hashtag1","hashtag2"]},{"1366526208":["hashtag1","hashtag2"]},{"1366526263":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366526316, 1366526250, 1366526307, 1366526276, 1366526208, 1366526263)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 190.20373272895813 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:05:47.440046
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/05/image_16062025_10_05_45_10604.jpg', 2), ('/home/nano/Desktop/images/16062025/10/05/image_16062025_10_05_34_9586.jpg', 2), ('/home/nano/Desktop/images/16062025/10/05/image_16062025_10_05_25_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/10/05/image_16062025_10_05_15_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/10/04/image_16062025_10_05_05_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/10/04/image_16062025_10_04_55_9603.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/05/image_16062025_10_05_45_10604.jpg', '/home/nano/Desktop/images/16062025/10/05/image_16062025_10_05_34_9586.jpg', '/home/nano/Desktop/images/16062025/10/05/image_16062025_10_05_25_9602.jpg', '/home/nano/Desktop/images/16062025/10/05/image_16062025_10_05_15_10650.jpg', '/home/nano/Desktop/images/16062025/10/04/image_16062025_10_05_05_9610.jpg', '/home/nano/Desktop/images/16062025/10/04/image_16062025_10_04_55_9603.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/05/image_16062025_10_05_45_10604.jpg
/home/nano/Desktop/images/16062025/10/05/image_16062025_10_05_34_9586.jpg
/home/nano/Desktop/images/16062025/10/05/image_16062025_10_05_25_9602.jpg
/home/nano/Desktop/images/16062025/10/05/image_16062025_10_05_15_10650.jpg
/home/nano/Desktop/images/16062025/10/04/image_16062025_10_05_05_9610.jpg
/home/nano/Desktop/images/16062025/10/04/image_16062025_10_04_55_9603.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366526509","1366526841","1366526337","1366526714","1366526431","1366526347"],"photo_ids_order":["1366526337","1366526347","1366526431","1366526509","1366526714","1366526841"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/89367097f8f71b3ab8848ca43c4abc92.jpg","text":"TemporaryFile(/tmp/multipartBody5909076616212719053asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061214968,"filename":"image_16062025_10_05_15_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fa04f9823ed5f07184b2fcc78522daf0.jpg","text":"TemporaryFile(/tmp/multipartBody5378654634440796287asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061214968,"filename":"image_16062025_10_04_55_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bb5706bb6c4f601fbe3876251f52e968.jpg","text":"TemporaryFile(/tmp/multipartBody8142487541572974691asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061214968,"filename":"image_16062025_10_05_45_10604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/304de62182c09fa404b4c738f09d1d0a.jpg","text":"TemporaryFile(/tmp/multipartBody6831882374743655087asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061214968,"filename":"image_16062025_10_05_05_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b7545c7aafe5ba36c1d12111769f0dec.jpg","text":"TemporaryFile(/tmp/multipartBody4638286657520297321asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061214968,"filename":"image_16062025_10_05_25_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f633372771fbfe3dae4941f8b112f11b.jpg","text":"TemporaryFile(/tmp/multipartBody1859675241399445529asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061214968,"filename":"image_16062025_10_05_34_9586.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366526431","file1":"1366526347","file0":"1366526337","file4":"1366526714","file5":"1366526841","file3":"1366526509"},"map_files_photo_id_array":[{"photo_id":"1366526841","filename":"file5"},{"photo_id":"1366526431","filename":"file2"},{"photo_id":"1366526714","filename":"file4"},{"photo_id":"1366526347","filename":"file1"},{"photo_id":"1366526337","filename":"file0"},{"photo_id":"1366526509","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366526509":["hashtag1","hashtag2"]},{"1366526841":["hashtag1","hashtag2"]},{"1366526337":["hashtag1","hashtag2"]},{"1366526714":["hashtag1","hashtag2"]},{"1366526431":["hashtag1","hashtag2"]},{"1366526347":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366526509, 1366526841, 1366526337, 1366526714, 1366526431, 1366526347)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 220.93245458602905 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:09:31.845981
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/09/image_16062025_10_09_44_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/10/09/image_16062025_10_09_35_9582.jpg', 2), ('/home/nano/Desktop/images/16062025/10/09/image_16062025_10_09_25_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/10/09/image_16062025_10_09_15_9586.jpg', 2), ('/home/nano/Desktop/images/16062025/10/08/image_16062025_10_09_05_10611.jpg', 2), ('/home/nano/Desktop/images/16062025/10/08/image_16062025_10_08_54_9591.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/09/image_16062025_10_09_44_9600.jpg', '/home/nano/Desktop/images/16062025/10/09/image_16062025_10_09_35_9582.jpg', '/home/nano/Desktop/images/16062025/10/09/image_16062025_10_09_25_10608.jpg', '/home/nano/Desktop/images/16062025/10/09/image_16062025_10_09_15_9586.jpg', '/home/nano/Desktop/images/16062025/10/08/image_16062025_10_09_05_10611.jpg', '/home/nano/Desktop/images/16062025/10/08/image_16062025_10_08_54_9591.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/09/image_16062025_10_09_44_9600.jpg
/home/nano/Desktop/images/16062025/10/09/image_16062025_10_09_35_9582.jpg
/home/nano/Desktop/images/16062025/10/09/image_16062025_10_09_25_10608.jpg
/home/nano/Desktop/images/16062025/10/09/image_16062025_10_09_15_9586.jpg
/home/nano/Desktop/images/16062025/10/08/image_16062025_10_09_05_10611.jpg
/home/nano/Desktop/images/16062025/10/08/image_16062025_10_08_54_9591.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366526889","1366526862","1366526879","1366526938","1366527069","1366526902"],"photo_ids_order":["1366526862","1366526879","1366526889","1366526902","1366526938","1366527069"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9be2aaa12dee8940842d53c9aadb5176.jpg","text":"TemporaryFile(/tmp/multipartBody5961592705677835761asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061436057,"filename":"image_16062025_10_09_25_10608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4db79c5e8bfd96e08898c2acc1bc4457.jpg","text":"TemporaryFile(/tmp/multipartBody2236659372116520493asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061436057,"filename":"image_16062025_10_09_44_9600.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3213795d28740f41b9f78ee18b4463b4.jpg","text":"TemporaryFile(/tmp/multipartBody3246877975889682699asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061436057,"filename":"image_16062025_10_09_35_9582.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1decc1c20064822d7c156a6b8d7eeb71.jpg","text":"TemporaryFile(/tmp/multipartBody7082054170211701668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061436057,"filename":"image_16062025_10_09_05_10611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d944f6a44782ee2afccce885e3fc9017.jpg","text":"TemporaryFile(/tmp/multipartBody4046188876362912326asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061436057,"filename":"image_16062025_10_08_54_9591.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b088310d7c9f280d416511ba98d380f0.jpg","text":"TemporaryFile(/tmp/multipartBody9051876056788759134asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061436057,"filename":"image_16062025_10_09_15_9586.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366526889","file1":"1366526879","file0":"1366526862","file4":"1366526938","file5":"1366527069","file3":"1366526902"},"map_files_photo_id_array":[{"photo_id":"1366527069","filename":"file5"},{"photo_id":"1366526889","filename":"file2"},{"photo_id":"1366526938","filename":"file4"},{"photo_id":"1366526879","filename":"file1"},{"photo_id":"1366526862","filename":"file0"},{"photo_id":"1366526902","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366526889":["hashtag1","hashtag2"]},{"1366526862":["hashtag1","hashtag2"]},{"1366526879":["hashtag1","hashtag2"]},{"1366526938":["hashtag1","hashtag2"]},{"1366527069":["hashtag1","hashtag2"]},{"1366526902":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366526889, 1366526862, 1366526879, 1366526938, 1366527069, 1366526902)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 175.2723081111908 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:12:32.187876
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/12/image_16062025_10_12_45_10592.jpg', 2), ('/home/nano/Desktop/images/16062025/10/12/image_16062025_10_12_35_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/10/12/image_16062025_10_12_25_10601.jpg', 2), ('/home/nano/Desktop/images/16062025/10/12/image_16062025_10_12_14_9606.jpg', 2), ('/home/nano/Desktop/images/16062025/10/11/image_16062025_10_12_05_9586.jpg', 2), ('/home/nano/Desktop/images/16062025/10/11/image_16062025_10_11_55_10603.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/12/image_16062025_10_12_45_10592.jpg', '/home/nano/Desktop/images/16062025/10/12/image_16062025_10_12_35_9602.jpg', '/home/nano/Desktop/images/16062025/10/12/image_16062025_10_12_25_10601.jpg', '/home/nano/Desktop/images/16062025/10/12/image_16062025_10_12_14_9606.jpg', '/home/nano/Desktop/images/16062025/10/11/image_16062025_10_12_05_9586.jpg', '/home/nano/Desktop/images/16062025/10/11/image_16062025_10_11_55_10603.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/12/image_16062025_10_12_45_10592.jpg
/home/nano/Desktop/images/16062025/10/12/image_16062025_10_12_35_9602.jpg
/home/nano/Desktop/images/16062025/10/12/image_16062025_10_12_25_10601.jpg
/home/nano/Desktop/images/16062025/10/12/image_16062025_10_12_14_9606.jpg
/home/nano/Desktop/images/16062025/10/11/image_16062025_10_12_05_9586.jpg
/home/nano/Desktop/images/16062025/10/11/image_16062025_10_11_55_10603.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366527504","1366527333","1366527512","1366527472","1366527409","1366527400"],"photo_ids_order":["1366527333","1366527400","1366527409","1366527472","1366527504","1366527512"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2fc81540bbd11b3eb9dfea6413ab207f.jpg","text":"TemporaryFile(/tmp/multipartBody158599778626446468asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061620758,"filename":"image_16062025_10_12_05_9586.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/751479f15d4455b7786eef4fb4078062.jpg","text":"TemporaryFile(/tmp/multipartBody783321668583428651asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061620758,"filename":"image_16062025_10_12_45_10592.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8b8b393c9be6028759efa0d2f2c9837e.jpg","text":"TemporaryFile(/tmp/multipartBody2025908813821898815asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061620758,"filename":"image_16062025_10_11_55_10603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9c24d0033de225015d1ad7a079fefdeb.jpg","text":"TemporaryFile(/tmp/multipartBody3588076020433648598asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061620758,"filename":"image_16062025_10_12_14_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/447d96ad64d5e176b7e176d369a194e3.jpg","text":"TemporaryFile(/tmp/multipartBody7445568239834230325asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061620758,"filename":"image_16062025_10_12_25_10601.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d07b4faabf1c841c8fdd813e8e2b1749.jpg","text":"TemporaryFile(/tmp/multipartBody8292835909645184144asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061620758,"filename":"image_16062025_10_12_35_9602.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366527409","file1":"1366527400","file0":"1366527333","file4":"1366527504","file5":"1366527512","file3":"1366527472"},"map_files_photo_id_array":[{"photo_id":"1366527512","filename":"file5"},{"photo_id":"1366527409","filename":"file2"},{"photo_id":"1366527504","filename":"file4"},{"photo_id":"1366527400","filename":"file1"},{"photo_id":"1366527333","filename":"file0"},{"photo_id":"1366527472","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366527504":["hashtag1","hashtag2"]},{"1366527333":["hashtag1","hashtag2"]},{"1366527512":["hashtag1","hashtag2"]},{"1366527472":["hashtag1","hashtag2"]},{"1366527409":["hashtag1","hashtag2"]},{"1366527400":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366527504, 1366527333, 1366527512, 1366527472, 1366527409, 1366527400)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 108.27108335494995 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:14:32.391489
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/14/image_16062025_10_14_44_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/10/14/image_16062025_10_14_35_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/10/14/image_16062025_10_14_25_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/10/14/image_16062025_10_14_15_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/10/13/image_16062025_10_14_05_9589.jpg', 2), ('/home/nano/Desktop/images/16062025/10/13/image_16062025_10_13_55_10597.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/14/image_16062025_10_14_44_9601.jpg', '/home/nano/Desktop/images/16062025/10/14/image_16062025_10_14_35_9616.jpg', '/home/nano/Desktop/images/16062025/10/14/image_16062025_10_14_25_10610.jpg', '/home/nano/Desktop/images/16062025/10/14/image_16062025_10_14_15_9619.jpg', '/home/nano/Desktop/images/16062025/10/13/image_16062025_10_14_05_9589.jpg', '/home/nano/Desktop/images/16062025/10/13/image_16062025_10_13_55_10597.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/14/image_16062025_10_14_44_9601.jpg
/home/nano/Desktop/images/16062025/10/14/image_16062025_10_14_35_9616.jpg
/home/nano/Desktop/images/16062025/10/14/image_16062025_10_14_25_10610.jpg
/home/nano/Desktop/images/16062025/10/14/image_16062025_10_14_15_9619.jpg
/home/nano/Desktop/images/16062025/10/13/image_16062025_10_14_05_9589.jpg
/home/nano/Desktop/images/16062025/10/13/image_16062025_10_13_55_10597.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366527546","1366527551","1366527530","1366527568","1366527558","1366527537"],"photo_ids_order":["1366527530","1366527537","1366527546","1366527551","1366527558","1366527568"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/960545e01db5aefd9030621869d9fe34.jpg","text":"TemporaryFile(/tmp/multipartBody2302640106228875678asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061738974,"filename":"image_16062025_10_14_25_10610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/76aca41c094240140579a13d5068c88d.jpg","text":"TemporaryFile(/tmp/multipartBody8871892836200735595asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061738974,"filename":"image_16062025_10_14_15_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a21beb2b8108bfbbb3dd3b0c89e254d1.jpg","text":"TemporaryFile(/tmp/multipartBody3599527040312664706asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061738974,"filename":"image_16062025_10_14_44_9601.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c0e85b2981137f894ee0bde4be944168.jpg","text":"TemporaryFile(/tmp/multipartBody4244399665091625059asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061738974,"filename":"image_16062025_10_13_55_10597.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cd4851394aba12b875df45a8f6a2880a.jpg","text":"TemporaryFile(/tmp/multipartBody1337792584446699193asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061738974,"filename":"image_16062025_10_14_05_9589.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cfb3bfa417a53e226889d3c57fbd3fe3.jpg","text":"TemporaryFile(/tmp/multipartBody569760082064215011asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061738974,"filename":"image_16062025_10_14_35_9616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366527546","file1":"1366527537","file0":"1366527530","file4":"1366527558","file5":"1366527568","file3":"1366527551"},"map_files_photo_id_array":[{"photo_id":"1366527568","filename":"file5"},{"photo_id":"1366527546","filename":"file2"},{"photo_id":"1366527558","filename":"file4"},{"photo_id":"1366527537","filename":"file1"},{"photo_id":"1366527530","filename":"file0"},{"photo_id":"1366527551","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366527546":["hashtag1","hashtag2"]},{"1366527551":["hashtag1","hashtag2"]},{"1366527530":["hashtag1","hashtag2"]},{"1366527568":["hashtag1","hashtag2"]},{"1366527558":["hashtag1","hashtag2"]},{"1366527537":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366527546, 1366527551, 1366527530, 1366527568, 1366527558, 1366527537)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 115.23798561096191 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:16:32.602183
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/16/image_16062025_10_16_45_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/10/16/image_16062025_10_16_35_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/10/16/image_16062025_10_16_24_9586.jpg', 2), ('/home/nano/Desktop/images/16062025/10/16/image_16062025_10_16_15_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/10/15/image_16062025_10_16_05_10597.jpg', 2), ('/home/nano/Desktop/images/16062025/10/15/image_16062025_10_15_55_9589.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/16/image_16062025_10_16_45_9600.jpg', '/home/nano/Desktop/images/16062025/10/16/image_16062025_10_16_35_10619.jpg', '/home/nano/Desktop/images/16062025/10/16/image_16062025_10_16_24_9586.jpg', '/home/nano/Desktop/images/16062025/10/16/image_16062025_10_16_15_9605.jpg', '/home/nano/Desktop/images/16062025/10/15/image_16062025_10_16_05_10597.jpg', '/home/nano/Desktop/images/16062025/10/15/image_16062025_10_15_55_9589.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/16/image_16062025_10_16_45_9600.jpg
/home/nano/Desktop/images/16062025/10/16/image_16062025_10_16_35_10619.jpg
/home/nano/Desktop/images/16062025/10/16/image_16062025_10_16_24_9586.jpg
/home/nano/Desktop/images/16062025/10/16/image_16062025_10_16_15_9605.jpg
/home/nano/Desktop/images/16062025/10/15/image_16062025_10_16_05_10597.jpg
/home/nano/Desktop/images/16062025/10/15/image_16062025_10_15_55_9589.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366527942","1366527936","1366527816","1366527775","1366527946","1366527885"],"photo_ids_order":["1366527775","1366527816","1366527885","1366527936","1366527942","1366527946"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/665d48b3e19c20b8bbbd51a8b74b3380.jpg","text":"TemporaryFile(/tmp/multipartBody7159252922498452831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061857359,"filename":"image_16062025_10_16_05_10597.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7bff93a665bd54099de3b9f7eb048748.jpg","text":"TemporaryFile(/tmp/multipartBody8763485084326404905asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061857359,"filename":"image_16062025_10_16_15_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a711265d50c3d23ef1fe98c99622a529.jpg","text":"TemporaryFile(/tmp/multipartBody5479759374006020197asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061857359,"filename":"image_16062025_10_16_35_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4b56def084d0b4cf544e1a2ad6aa4319.jpg","text":"TemporaryFile(/tmp/multipartBody8221565323008704067asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061857359,"filename":"image_16062025_10_16_45_9600.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7d7072cba425db91e4f53b6ea08f3d09.jpg","text":"TemporaryFile(/tmp/multipartBody4000939370739496210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061857359,"filename":"image_16062025_10_15_55_9589.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/12ea2f0a5ac3b9a4898405715351aed2.jpg","text":"TemporaryFile(/tmp/multipartBody8404288974834369290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061857359,"filename":"image_16062025_10_16_24_9586.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366527885","file1":"1366527816","file0":"1366527775","file4":"1366527942","file5":"1366527946","file3":"1366527936"},"map_files_photo_id_array":[{"photo_id":"1366527946","filename":"file5"},{"photo_id":"1366527885","filename":"file2"},{"photo_id":"1366527942","filename":"file4"},{"photo_id":"1366527816","filename":"file1"},{"photo_id":"1366527775","filename":"file0"},{"photo_id":"1366527936","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366527942":["hashtag1","hashtag2"]},{"1366527936":["hashtag1","hashtag2"]},{"1366527816":["hashtag1","hashtag2"]},{"1366527775":["hashtag1","hashtag2"]},{"1366527946":["hashtag1","hashtag2"]},{"1366527885":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366527942, 1366527936, 1366527816, 1366527775, 1366527946, 1366527885)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 103.32675004005432 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:18:16.849088
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/18/image_16062025_10_18_45_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/10/18/image_16062025_10_18_35_9798.jpg', 2), ('/home/nano/Desktop/images/16062025/10/18/image_16062025_10_18_25_9684.jpg', 2), ('/home/nano/Desktop/images/16062025/10/18/image_16062025_10_18_15_10701.jpg', 2), ('/home/nano/Desktop/images/16062025/10/17/image_16062025_10_18_04_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/10/17/image_16062025_10_17_55_9591.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/18/image_16062025_10_18_45_10644.jpg', '/home/nano/Desktop/images/16062025/10/18/image_16062025_10_18_35_9798.jpg', '/home/nano/Desktop/images/16062025/10/18/image_16062025_10_18_25_9684.jpg', '/home/nano/Desktop/images/16062025/10/18/image_16062025_10_18_15_10701.jpg', '/home/nano/Desktop/images/16062025/10/17/image_16062025_10_18_04_9597.jpg', '/home/nano/Desktop/images/16062025/10/17/image_16062025_10_17_55_9591.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/18/image_16062025_10_18_45_10644.jpg
/home/nano/Desktop/images/16062025/10/18/image_16062025_10_18_35_9798.jpg
/home/nano/Desktop/images/16062025/10/18/image_16062025_10_18_25_9684.jpg
/home/nano/Desktop/images/16062025/10/18/image_16062025_10_18_15_10701.jpg
/home/nano/Desktop/images/16062025/10/17/image_16062025_10_18_04_9597.jpg
/home/nano/Desktop/images/16062025/10/17/image_16062025_10_17_55_9591.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366527992","1366528015","1366527982","1366527957","1366528002","1366527969"],"photo_ids_order":["1366527957","1366527969","1366527982","1366527992","1366528002","1366528015"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/336483059ce156c4d62352364a0a1a1b.jpg","text":"TemporaryFile(/tmp/multipartBody8046724457223840704asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061961155,"filename":"image_16062025_10_18_15_10701.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/98ac82952b1d44fc90c0147e30b0150b.jpg","text":"TemporaryFile(/tmp/multipartBody7284859249407389033asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061961155,"filename":"image_16062025_10_17_55_9591.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9c38bb753124bf28863a3847903f4cea.jpg","text":"TemporaryFile(/tmp/multipartBody608290479643782265asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061961155,"filename":"image_16062025_10_18_25_9684.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/72f1c604f969d10cfbdfe44a6816b9de.jpg","text":"TemporaryFile(/tmp/multipartBody5625627697874820287asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061961155,"filename":"image_16062025_10_18_45_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e619fe8128362903d97fb2b5e263370a.jpg","text":"TemporaryFile(/tmp/multipartBody2179639635405759290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061961155,"filename":"image_16062025_10_18_04_9597.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a75e28c6e17b8027450567b0a6705c8d.jpg","text":"TemporaryFile(/tmp/multipartBody2982849886248473399asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750061961155,"filename":"image_16062025_10_18_35_9798.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366527982","file1":"1366527969","file0":"1366527957","file4":"1366528002","file5":"1366528015","file3":"1366527992"},"map_files_photo_id_array":[{"photo_id":"1366528015","filename":"file5"},{"photo_id":"1366527982","filename":"file2"},{"photo_id":"1366528002","filename":"file4"},{"photo_id":"1366527969","filename":"file1"},{"photo_id":"1366527957","filename":"file0"},{"photo_id":"1366527992","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366527992":["hashtag1","hashtag2"]},{"1366528015":["hashtag1","hashtag2"]},{"1366527982":["hashtag1","hashtag2"]},{"1366527957":["hashtag1","hashtag2"]},{"1366528002":["hashtag1","hashtag2"]},{"1366527969":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366527992, 1366528015, 1366527982, 1366527957, 1366528002, 1366527969)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 158.51867961883545 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:21:02.909953
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/20/image_16062025_10_20_45_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/10/20/image_16062025_10_20_35_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/10/20/image_16062025_10_20_25_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/10/20/image_16062025_10_20_15_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/10/19/image_16062025_10_20_05_10846.jpg', 2), ('/home/nano/Desktop/images/16062025/10/19/image_16062025_10_19_55_9768.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/20/image_16062025_10_20_45_9623.jpg', '/home/nano/Desktop/images/16062025/10/20/image_16062025_10_20_35_10639.jpg', '/home/nano/Desktop/images/16062025/10/20/image_16062025_10_20_25_9650.jpg', '/home/nano/Desktop/images/16062025/10/20/image_16062025_10_20_15_9660.jpg', '/home/nano/Desktop/images/16062025/10/19/image_16062025_10_20_05_10846.jpg', '/home/nano/Desktop/images/16062025/10/19/image_16062025_10_19_55_9768.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/20/image_16062025_10_20_45_9623.jpg
/home/nano/Desktop/images/16062025/10/20/image_16062025_10_20_35_10639.jpg
/home/nano/Desktop/images/16062025/10/20/image_16062025_10_20_25_9650.jpg
/home/nano/Desktop/images/16062025/10/20/image_16062025_10_20_15_9660.jpg
/home/nano/Desktop/images/16062025/10/19/image_16062025_10_20_05_10846.jpg
/home/nano/Desktop/images/16062025/10/19/image_16062025_10_19_55_9768.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366528088","1366528097","1366528040","1366528058","1366528033","1366528047"],"photo_ids_order":["1366528033","1366528040","1366528047","1366528058","1366528088","1366528097"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ca9dcbefede37a8dc6f304a806ceeb13.jpg","text":"TemporaryFile(/tmp/multipartBody8095300123629583891asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062138653,"filename":"image_16062025_10_20_05_10846.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/045bfa9056cce4efb8183166bfac85a9.jpg","text":"TemporaryFile(/tmp/multipartBody1965228529899216060asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062138653,"filename":"image_16062025_10_19_55_9768.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/72884f3975948f8103f44bf4fce81836.jpg","text":"TemporaryFile(/tmp/multipartBody6417996590125293947asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062138653,"filename":"image_16062025_10_20_35_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d21f234d3cccd4235272a19dfb24ffad.jpg","text":"TemporaryFile(/tmp/multipartBody3545232197353329246asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062138653,"filename":"image_16062025_10_20_15_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/37f23f22f43ffe500f7e4cefeea34822.jpg","text":"TemporaryFile(/tmp/multipartBody7957321334056718589asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062138653,"filename":"image_16062025_10_20_45_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/391a6ed57b58579f18fad32b91dd8ccd.jpg","text":"TemporaryFile(/tmp/multipartBody2458423303046415664asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062138653,"filename":"image_16062025_10_20_25_9650.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366528047","file1":"1366528040","file0":"1366528033","file4":"1366528088","file5":"1366528097","file3":"1366528058"},"map_files_photo_id_array":[{"photo_id":"1366528097","filename":"file5"},{"photo_id":"1366528047","filename":"file2"},{"photo_id":"1366528088","filename":"file4"},{"photo_id":"1366528040","filename":"file1"},{"photo_id":"1366528033","filename":"file0"},{"photo_id":"1366528058","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366528088":["hashtag1","hashtag2"]},{"1366528097":["hashtag1","hashtag2"]},{"1366528040":["hashtag1","hashtag2"]},{"1366528058":["hashtag1","hashtag2"]},{"1366528033":["hashtag1","hashtag2"]},{"1366528047":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366528088, 1366528097, 1366528040, 1366528058, 1366528033, 1366528047)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 126.65954399108887 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:23:17.418763
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/23/image_16062025_10_23_45_10593.jpg', 2), ('/home/nano/Desktop/images/16062025/10/23/image_16062025_10_23_34_9583.jpg', 2), ('/home/nano/Desktop/images/16062025/10/23/image_16062025_10_23_25_9594.jpg', 2), ('/home/nano/Desktop/images/16062025/10/23/image_16062025_10_23_15_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/10/22/image_16062025_10_22_44_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/10/22/image_16062025_10_22_35_9649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/23/image_16062025_10_23_45_10593.jpg', '/home/nano/Desktop/images/16062025/10/23/image_16062025_10_23_34_9583.jpg', '/home/nano/Desktop/images/16062025/10/23/image_16062025_10_23_25_9594.jpg', '/home/nano/Desktop/images/16062025/10/23/image_16062025_10_23_15_10629.jpg', '/home/nano/Desktop/images/16062025/10/22/image_16062025_10_22_44_9604.jpg', '/home/nano/Desktop/images/16062025/10/22/image_16062025_10_22_35_9649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/23/image_16062025_10_23_45_10593.jpg
/home/nano/Desktop/images/16062025/10/23/image_16062025_10_23_34_9583.jpg
/home/nano/Desktop/images/16062025/10/23/image_16062025_10_23_25_9594.jpg
/home/nano/Desktop/images/16062025/10/23/image_16062025_10_23_15_10629.jpg
/home/nano/Desktop/images/16062025/10/22/image_16062025_10_22_44_9604.jpg
/home/nano/Desktop/images/16062025/10/22/image_16062025_10_22_35_9649.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366528541","1366528381","1366528441","1366528165","1366528317","1366528230"],"photo_ids_order":["1366528165","1366528230","1366528317","1366528381","1366528441","1366528541"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d1d5eafeeb250647531642d60f81abb6.jpg","text":"TemporaryFile(/tmp/multipartBody5943429733376489110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062259508,"filename":"image_16062025_10_22_35_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/32f972913e249d1d6dc1d3bd5070d6f7.jpg","text":"TemporaryFile(/tmp/multipartBody2007626172067391180asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062259508,"filename":"image_16062025_10_23_15_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b3e431b287775425d2b326db44c888b8.jpg","text":"TemporaryFile(/tmp/multipartBody3808203837074469445asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062259508,"filename":"image_16062025_10_22_44_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8d011a619bf389452f67836c6e9723d3.jpg","text":"TemporaryFile(/tmp/multipartBody6514110018187034719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062259508,"filename":"image_16062025_10_23_45_10593.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e6300b4a5a91b0b6e7a826f21eea60c5.jpg","text":"TemporaryFile(/tmp/multipartBody8757035874051580528asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062259508,"filename":"image_16062025_10_23_25_9594.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f787307a7d0f79f6cbbf57d33e6f993b.jpg","text":"TemporaryFile(/tmp/multipartBody1197521004423778437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062259508,"filename":"image_16062025_10_23_34_9583.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366528317","file1":"1366528230","file0":"1366528165","file4":"1366528441","file5":"1366528541","file3":"1366528381"},"map_files_photo_id_array":[{"photo_id":"1366528541","filename":"file5"},{"photo_id":"1366528317","filename":"file2"},{"photo_id":"1366528441","filename":"file4"},{"photo_id":"1366528230","filename":"file1"},{"photo_id":"1366528165","filename":"file0"},{"photo_id":"1366528381","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366528541":["hashtag1","hashtag2"]},{"1366528381":["hashtag1","hashtag2"]},{"1366528441":["hashtag1","hashtag2"]},{"1366528165":["hashtag1","hashtag2"]},{"1366528317":["hashtag1","hashtag2"]},{"1366528230":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366528541, 1366528381, 1366528441, 1366528165, 1366528317, 1366528230)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 79.96769881248474 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:24:47.589375
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/24/image_16062025_10_24_45_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/10/24/image_16062025_10_24_35_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/10/24/image_16062025_10_24_24_9606.jpg', 2), ('/home/nano/Desktop/images/16062025/10/24/image_16062025_10_24_15_9592.jpg', 2), ('/home/nano/Desktop/images/16062025/10/23/image_16062025_10_24_05_10615.jpg', 2), ('/home/nano/Desktop/images/16062025/10/23/image_16062025_10_23_55_9588.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/24/image_16062025_10_24_45_9622.jpg', '/home/nano/Desktop/images/16062025/10/24/image_16062025_10_24_35_10619.jpg', '/home/nano/Desktop/images/16062025/10/24/image_16062025_10_24_24_9606.jpg', '/home/nano/Desktop/images/16062025/10/24/image_16062025_10_24_15_9592.jpg', '/home/nano/Desktop/images/16062025/10/23/image_16062025_10_24_05_10615.jpg', '/home/nano/Desktop/images/16062025/10/23/image_16062025_10_23_55_9588.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/24/image_16062025_10_24_45_9622.jpg
/home/nano/Desktop/images/16062025/10/24/image_16062025_10_24_35_10619.jpg
/home/nano/Desktop/images/16062025/10/24/image_16062025_10_24_24_9606.jpg
/home/nano/Desktop/images/16062025/10/24/image_16062025_10_24_15_9592.jpg
/home/nano/Desktop/images/16062025/10/23/image_16062025_10_24_05_10615.jpg
/home/nano/Desktop/images/16062025/10/23/image_16062025_10_23_55_9588.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366528676","1366528670","1366528678","1366528774","1366528681","1366528673"],"photo_ids_order":["1366528670","1366528673","1366528676","1366528678","1366528681","1366528774"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/667d022227d9e225a44b9ae2676093f0.jpg","text":"TemporaryFile(/tmp/multipartBody2488384431287369922asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062351377,"filename":"image_16062025_10_24_24_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e2fc13863fbb5760b4e10fe2697d662e.jpg","text":"TemporaryFile(/tmp/multipartBody4231618008817278960asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062351377,"filename":"image_16062025_10_24_45_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cae8ef9a6186f46f4c92e3dd4bf41aff.jpg","text":"TemporaryFile(/tmp/multipartBody8670391625884014654asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062351377,"filename":"image_16062025_10_24_15_9592.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/679d54cb7cbf44452ac9cd56c0d11829.jpg","text":"TemporaryFile(/tmp/multipartBody8548801226370564867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062351377,"filename":"image_16062025_10_23_55_9588.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ec5a7cef2c7420ba2883f93a091f01a6.jpg","text":"TemporaryFile(/tmp/multipartBody2381107675438899676asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062351377,"filename":"image_16062025_10_24_05_10615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/89dd4aea6f3d4b242867159fb5d75af8.jpg","text":"TemporaryFile(/tmp/multipartBody6177072005178811229asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062351377,"filename":"image_16062025_10_24_35_10619.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366528676","file1":"1366528673","file0":"1366528670","file4":"1366528681","file5":"1366528774","file3":"1366528678"},"map_files_photo_id_array":[{"photo_id":"1366528774","filename":"file5"},{"photo_id":"1366528676","filename":"file2"},{"photo_id":"1366528681","filename":"file4"},{"photo_id":"1366528673","filename":"file1"},{"photo_id":"1366528670","filename":"file0"},{"photo_id":"1366528678","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366528676":["hashtag1","hashtag2"]},{"1366528670":["hashtag1","hashtag2"]},{"1366528678":["hashtag1","hashtag2"]},{"1366528774":["hashtag1","hashtag2"]},{"1366528681":["hashtag1","hashtag2"]},{"1366528673":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366528676, 1366528670, 1366528678, 1366528774, 1366528681, 1366528673)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 55.39918518066406 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:25:47.691853
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/25/image_16062025_10_25_45_10565.jpg', 2), ('/home/nano/Desktop/images/16062025/10/25/image_16062025_10_25_35_9558.jpg', 2), ('/home/nano/Desktop/images/16062025/10/25/image_16062025_10_25_25_10573.jpg', 2), ('/home/nano/Desktop/images/16062025/10/25/image_16062025_10_25_15_9606.jpg', 2), ('/home/nano/Desktop/images/16062025/10/24/image_16062025_10_25_05_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/10/24/image_16062025_10_24_55_10621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/25/image_16062025_10_25_45_10565.jpg', '/home/nano/Desktop/images/16062025/10/25/image_16062025_10_25_35_9558.jpg', '/home/nano/Desktop/images/16062025/10/25/image_16062025_10_25_25_10573.jpg', '/home/nano/Desktop/images/16062025/10/25/image_16062025_10_25_15_9606.jpg', '/home/nano/Desktop/images/16062025/10/24/image_16062025_10_25_05_9619.jpg', '/home/nano/Desktop/images/16062025/10/24/image_16062025_10_24_55_10621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/25/image_16062025_10_25_45_10565.jpg
/home/nano/Desktop/images/16062025/10/25/image_16062025_10_25_35_9558.jpg
/home/nano/Desktop/images/16062025/10/25/image_16062025_10_25_25_10573.jpg
/home/nano/Desktop/images/16062025/10/25/image_16062025_10_25_15_9606.jpg
/home/nano/Desktop/images/16062025/10/24/image_16062025_10_25_05_9619.jpg
/home/nano/Desktop/images/16062025/10/24/image_16062025_10_24_55_10621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366529036","1366529102","1366528961","1366529151","1366529165","1366528914"],"photo_ids_order":["1366528914","1366528961","1366529036","1366529102","1366529151","1366529165"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/33fd091f53b2f886a91d2cf16f1bd67c.jpg","text":"TemporaryFile(/tmp/multipartBody1533968358101954948asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062409818,"filename":"image_16062025_10_25_25_10573.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4a8539b1d9369e5db6af25fd81cd60ac.jpg","text":"TemporaryFile(/tmp/multipartBody8134334827617142377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062409818,"filename":"image_16062025_10_25_15_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ffe3bed44c3b89d96c7c685a4bd38f35.jpg","text":"TemporaryFile(/tmp/multipartBody5924029781947320961asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062409818,"filename":"image_16062025_10_25_35_9558.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b3213d4abf8f09803776b9627559a571.jpg","text":"TemporaryFile(/tmp/multipartBody3512137904070516401asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062409818,"filename":"image_16062025_10_25_05_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3ad73c4d03dbf9ff2369c4830a41a257.jpg","text":"TemporaryFile(/tmp/multipartBody7639600831183669982asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062409818,"filename":"image_16062025_10_24_55_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/df1dd920e83c0254970c896c81a3a530.jpg","text":"TemporaryFile(/tmp/multipartBody7848678298537439804asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062409818,"filename":"image_16062025_10_25_45_10565.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366529036","file1":"1366528961","file0":"1366528914","file4":"1366529151","file5":"1366529165","file3":"1366529102"},"map_files_photo_id_array":[{"photo_id":"1366529165","filename":"file5"},{"photo_id":"1366529036","filename":"file2"},{"photo_id":"1366529151","filename":"file4"},{"photo_id":"1366528961","filename":"file1"},{"photo_id":"1366528914","filename":"file0"},{"photo_id":"1366529102","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366529036":["hashtag1","hashtag2"]},{"1366529102":["hashtag1","hashtag2"]},{"1366528961":["hashtag1","hashtag2"]},{"1366529151":["hashtag1","hashtag2"]},{"1366529165":["hashtag1","hashtag2"]},{"1366528914":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366529036, 1366529102, 1366528961, 1366529151, 1366529165, 1366528914)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 60.23726844787598 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:27:02.547656
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/26/image_16062025_10_26_45_9556.jpg', 2), ('/home/nano/Desktop/images/16062025/10/26/image_16062025_10_26_35_10572.jpg', 2), ('/home/nano/Desktop/images/16062025/10/26/image_16062025_10_26_24_9556.jpg', 2), ('/home/nano/Desktop/images/16062025/10/26/image_16062025_10_26_15_9579.jpg', 2), ('/home/nano/Desktop/images/16062025/10/25/image_16062025_10_25_55_9557.jpg', 2), ('/home/nano/Desktop/images/16062025/10/22/image_16062025_10_22_25_10766.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/26/image_16062025_10_26_45_9556.jpg', '/home/nano/Desktop/images/16062025/10/26/image_16062025_10_26_35_10572.jpg', '/home/nano/Desktop/images/16062025/10/26/image_16062025_10_26_24_9556.jpg', '/home/nano/Desktop/images/16062025/10/26/image_16062025_10_26_15_9579.jpg', '/home/nano/Desktop/images/16062025/10/25/image_16062025_10_25_55_9557.jpg', '/home/nano/Desktop/images/16062025/10/22/image_16062025_10_22_25_10766.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/26/image_16062025_10_26_45_9556.jpg
/home/nano/Desktop/images/16062025/10/26/image_16062025_10_26_35_10572.jpg
/home/nano/Desktop/images/16062025/10/26/image_16062025_10_26_24_9556.jpg
/home/nano/Desktop/images/16062025/10/26/image_16062025_10_26_15_9579.jpg
/home/nano/Desktop/images/16062025/10/25/image_16062025_10_25_55_9557.jpg
/home/nano/Desktop/images/16062025/10/22/image_16062025_10_22_25_10766.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366529420","1366529318","1366529389","1366529412","1366529400","1366529366"],"photo_ids_order":["1366529318","1366529366","1366529389","1366529400","1366529412","1366529420"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8fcce097730b0a34dfe672d43c7e0211.jpg","text":"TemporaryFile(/tmp/multipartBody505107608588300617asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062496049,"filename":"image_16062025_10_22_25_10766.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e6b54b28370f6aee78dcc51356373c87.jpg","text":"TemporaryFile(/tmp/multipartBody7510845737120193767asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062496049,"filename":"image_16062025_10_26_45_9556.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7700d3e8dec7c0cde1e494812b83919c.jpg","text":"TemporaryFile(/tmp/multipartBody8643261126005627106asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062496049,"filename":"image_16062025_10_26_24_9556.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7fd1241671ef720fa430c852e694a4ca.jpg","text":"TemporaryFile(/tmp/multipartBody1784193943139247374asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062496049,"filename":"image_16062025_10_25_55_9557.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ddc4c27a11835ba89656f65b942a52bf.jpg","text":"TemporaryFile(/tmp/multipartBody526702300138121509asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062496049,"filename":"image_16062025_10_26_15_9579.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/21f794e70a6569958c115fcac24b4431.jpg","text":"TemporaryFile(/tmp/multipartBody4987567902667681231asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062496049,"filename":"image_16062025_10_26_35_10572.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366529389","file1":"1366529366","file0":"1366529318","file4":"1366529412","file5":"1366529420","file3":"1366529400"},"map_files_photo_id_array":[{"photo_id":"1366529420","filename":"file5"},{"photo_id":"1366529389","filename":"file2"},{"photo_id":"1366529412","filename":"file4"},{"photo_id":"1366529366","filename":"file1"},{"photo_id":"1366529318","filename":"file0"},{"photo_id":"1366529400","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366529420":["hashtag1","hashtag2"]},{"1366529318":["hashtag1","hashtag2"]},{"1366529389":["hashtag1","hashtag2"]},{"1366529412":["hashtag1","hashtag2"]},{"1366529400":["hashtag1","hashtag2"]},{"1366529366":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366529420, 1366529318, 1366529389, 1366529412, 1366529400, 1366529366)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 82.23556661605835 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:28:32.083581
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/28/image_16062025_10_28_45_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/10/28/image_16062025_10_28_35_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/10/28/image_16062025_10_28_24_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/10/28/image_16062025_10_28_15_9648.jpg', 2), ('/home/nano/Desktop/images/16062025/10/27/image_16062025_10_28_05_10579.jpg', 2), ('/home/nano/Desktop/images/16062025/10/27/image_16062025_10_27_55_9583.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/28/image_16062025_10_28_45_9650.jpg', '/home/nano/Desktop/images/16062025/10/28/image_16062025_10_28_35_10651.jpg', '/home/nano/Desktop/images/16062025/10/28/image_16062025_10_28_24_9613.jpg', '/home/nano/Desktop/images/16062025/10/28/image_16062025_10_28_15_9648.jpg', '/home/nano/Desktop/images/16062025/10/27/image_16062025_10_28_05_10579.jpg', '/home/nano/Desktop/images/16062025/10/27/image_16062025_10_27_55_9583.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/28/image_16062025_10_28_45_9650.jpg
/home/nano/Desktop/images/16062025/10/28/image_16062025_10_28_35_10651.jpg
/home/nano/Desktop/images/16062025/10/28/image_16062025_10_28_24_9613.jpg
/home/nano/Desktop/images/16062025/10/28/image_16062025_10_28_15_9648.jpg
/home/nano/Desktop/images/16062025/10/27/image_16062025_10_28_05_10579.jpg
/home/nano/Desktop/images/16062025/10/27/image_16062025_10_27_55_9583.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366529470","1366529446","1366529440","1366529481","1366529465","1366529459"],"photo_ids_order":["1366529440","1366529446","1366529459","1366529465","1366529470","1366529481"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c55769e45454ce336223f092b5fe068e.jpg","text":"TemporaryFile(/tmp/multipartBody1226742095435733345asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062574047,"filename":"image_16062025_10_28_05_10579.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b49cfe47962d4d594caf25a1073c66d1.jpg","text":"TemporaryFile(/tmp/multipartBody4076861891683076380asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062574047,"filename":"image_16062025_10_28_35_10651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4bc3804b1e823c7e5d51770f0c2b9a88.jpg","text":"TemporaryFile(/tmp/multipartBody1656287383033328588asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062574047,"filename":"image_16062025_10_28_45_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9f507daf2a4b348362a6d928ab825bd7.jpg","text":"TemporaryFile(/tmp/multipartBody3874644485980445610asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062574047,"filename":"image_16062025_10_27_55_9583.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ae80c1022a3eafcff6c2cd07bef1c644.jpg","text":"TemporaryFile(/tmp/multipartBody8834594919072305249asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062574047,"filename":"image_16062025_10_28_15_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5f1279cb69fffb32d819e726c5be8236.jpg","text":"TemporaryFile(/tmp/multipartBody5708667246845219064asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062574047,"filename":"image_16062025_10_28_24_9613.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366529459","file1":"1366529446","file0":"1366529440","file4":"1366529470","file5":"1366529481","file3":"1366529465"},"map_files_photo_id_array":[{"photo_id":"1366529481","filename":"file5"},{"photo_id":"1366529459","filename":"file2"},{"photo_id":"1366529470","filename":"file4"},{"photo_id":"1366529446","filename":"file1"},{"photo_id":"1366529440","filename":"file0"},{"photo_id":"1366529465","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366529470":["hashtag1","hashtag2"]},{"1366529446":["hashtag1","hashtag2"]},{"1366529440":["hashtag1","hashtag2"]},{"1366529481":["hashtag1","hashtag2"]},{"1366529465":["hashtag1","hashtag2"]},{"1366529459":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366529470, 1366529446, 1366529440, 1366529481, 1366529465, 1366529459)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 86.1286473274231 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:30:02.876157
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/29/image_16062025_10_29_45_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/10/29/image_16062025_10_29_35_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/10/29/image_16062025_10_29_25_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/10/29/image_16062025_10_29_15_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/10/28/image_16062025_10_29_05_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/10/28/image_16062025_10_28_54_9704.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/29/image_16062025_10_29_45_9611.jpg', '/home/nano/Desktop/images/16062025/10/29/image_16062025_10_29_35_9649.jpg', '/home/nano/Desktop/images/16062025/10/29/image_16062025_10_29_25_10619.jpg', '/home/nano/Desktop/images/16062025/10/29/image_16062025_10_29_15_9614.jpg', '/home/nano/Desktop/images/16062025/10/28/image_16062025_10_29_05_10640.jpg', '/home/nano/Desktop/images/16062025/10/28/image_16062025_10_28_54_9704.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/29/image_16062025_10_29_45_9611.jpg
/home/nano/Desktop/images/16062025/10/29/image_16062025_10_29_35_9649.jpg
/home/nano/Desktop/images/16062025/10/29/image_16062025_10_29_25_10619.jpg
/home/nano/Desktop/images/16062025/10/29/image_16062025_10_29_15_9614.jpg
/home/nano/Desktop/images/16062025/10/28/image_16062025_10_29_05_10640.jpg
/home/nano/Desktop/images/16062025/10/28/image_16062025_10_28_54_9704.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366529519","1366529533","1366529509","1366529499","1366529591","1366529505"],"photo_ids_order":["1366529499","1366529505","1366529509","1366529519","1366529533","1366529591"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b18941dfd1c5c88bed03e9dfa8e1da4f.jpg","text":"TemporaryFile(/tmp/multipartBody9054155919212798421asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062669323,"filename":"image_16062025_10_29_15_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9dec2e982f2769483ce28c6393e247a8.jpg","text":"TemporaryFile(/tmp/multipartBody4979588848755763695asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062669323,"filename":"image_16062025_10_29_05_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/04c912102fd71b76654feff2f12e307b.jpg","text":"TemporaryFile(/tmp/multipartBody7588905722922711320asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062669323,"filename":"image_16062025_10_29_25_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0685935af135304f160c98e9b1170690.jpg","text":"TemporaryFile(/tmp/multipartBody8922248475345928135asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062669323,"filename":"image_16062025_10_29_45_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b4b91e24d77174b6c4cb88f530345fa7.jpg","text":"TemporaryFile(/tmp/multipartBody4273432428258248787asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062669323,"filename":"image_16062025_10_28_54_9704.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/096552ab6f30e59c5ea2afd90909b582.jpg","text":"TemporaryFile(/tmp/multipartBody767225334706813136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062669323,"filename":"image_16062025_10_29_35_9649.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366529509","file1":"1366529505","file0":"1366529499","file4":"1366529533","file5":"1366529591","file3":"1366529519"},"map_files_photo_id_array":[{"photo_id":"1366529591","filename":"file5"},{"photo_id":"1366529509","filename":"file2"},{"photo_id":"1366529533","filename":"file4"},{"photo_id":"1366529505","filename":"file1"},{"photo_id":"1366529499","filename":"file0"},{"photo_id":"1366529519","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366529519":["hashtag1","hashtag2"]},{"1366529533":["hashtag1","hashtag2"]},{"1366529509":["hashtag1","hashtag2"]},{"1366529499":["hashtag1","hashtag2"]},{"1366529591":["hashtag1","hashtag2"]},{"1366529505":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366529519, 1366529533, 1366529509, 1366529499, 1366529591, 1366529505)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 77.3730263710022 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:31:32.439459
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/31/image_16062025_10_31_45_9751.jpg', 2), ('/home/nano/Desktop/images/16062025/10/31/image_16062025_10_31_35_9763.jpg', 2), ('/home/nano/Desktop/images/16062025/10/31/image_16062025_10_31_25_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/10/31/image_16062025_10_31_15_9832.jpg', 2), ('/home/nano/Desktop/images/16062025/10/30/image_16062025_10_31_05_9811.jpg', 2), ('/home/nano/Desktop/images/16062025/10/30/image_16062025_10_30_55_9791.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/31/image_16062025_10_31_45_9751.jpg', '/home/nano/Desktop/images/16062025/10/31/image_16062025_10_31_35_9763.jpg', '/home/nano/Desktop/images/16062025/10/31/image_16062025_10_31_25_10625.jpg', '/home/nano/Desktop/images/16062025/10/31/image_16062025_10_31_15_9832.jpg', '/home/nano/Desktop/images/16062025/10/30/image_16062025_10_31_05_9811.jpg', '/home/nano/Desktop/images/16062025/10/30/image_16062025_10_30_55_9791.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/31/image_16062025_10_31_45_9751.jpg
/home/nano/Desktop/images/16062025/10/31/image_16062025_10_31_35_9763.jpg
/home/nano/Desktop/images/16062025/10/31/image_16062025_10_31_25_10625.jpg
/home/nano/Desktop/images/16062025/10/31/image_16062025_10_31_15_9832.jpg
/home/nano/Desktop/images/16062025/10/30/image_16062025_10_31_05_9811.jpg
/home/nano/Desktop/images/16062025/10/30/image_16062025_10_30_55_9791.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366529744","1366529746","1366529748","1366529739","1366529733","1366529750"],"photo_ids_order":["1366529733","1366529739","1366529744","1366529746","1366529748","1366529750"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/283d857b17256e91018017a6372e8eb2.jpg","text":"TemporaryFile(/tmp/multipartBody8413095157474781667asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062762618,"filename":"image_16062025_10_31_25_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d7b5a71f6183b94c0456034d1b995567.jpg","text":"TemporaryFile(/tmp/multipartBody1280437578866700214asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062762618,"filename":"image_16062025_10_31_15_9832.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/174f69ab6bfc30ecd4fe6d846011893d.jpg","text":"TemporaryFile(/tmp/multipartBody5408622521125232056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062762618,"filename":"image_16062025_10_31_05_9811.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a045da68ef815510bcd8f9e2cfff5be6.jpg","text":"TemporaryFile(/tmp/multipartBody5635413089591565482asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062762618,"filename":"image_16062025_10_31_35_9763.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/68e4a605a534222dd941d1ee859d805c.jpg","text":"TemporaryFile(/tmp/multipartBody6781100034950587472asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062762618,"filename":"image_16062025_10_31_45_9751.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7064b77e83530b62f79f123bf77cb6e7.jpg","text":"TemporaryFile(/tmp/multipartBody924013950010655456asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062762618,"filename":"image_16062025_10_30_55_9791.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366529744","file1":"1366529739","file0":"1366529733","file4":"1366529748","file5":"1366529750","file3":"1366529746"},"map_files_photo_id_array":[{"photo_id":"1366529750","filename":"file5"},{"photo_id":"1366529744","filename":"file2"},{"photo_id":"1366529748","filename":"file4"},{"photo_id":"1366529739","filename":"file1"},{"photo_id":"1366529733","filename":"file0"},{"photo_id":"1366529746","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366529744":["hashtag1","hashtag2"]},{"1366529746":["hashtag1","hashtag2"]},{"1366529748":["hashtag1","hashtag2"]},{"1366529739":["hashtag1","hashtag2"]},{"1366529733":["hashtag1","hashtag2"]},{"1366529750":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366529744, 1366529746, 1366529748, 1366529739, 1366529733, 1366529750)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 72.40648365020752 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:32:47.592912
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/32/image_16062025_10_32_45_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/10/32/image_16062025_10_32_35_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/10/32/image_16062025_10_32_24_9682.jpg', 2), ('/home/nano/Desktop/images/16062025/10/32/image_16062025_10_32_15_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/10/31/image_16062025_10_32_05_10731.jpg', 2), ('/home/nano/Desktop/images/16062025/10/31/image_16062025_10_31_54_9702.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/32/image_16062025_10_32_45_9614.jpg', '/home/nano/Desktop/images/16062025/10/32/image_16062025_10_32_35_10626.jpg', '/home/nano/Desktop/images/16062025/10/32/image_16062025_10_32_24_9682.jpg', '/home/nano/Desktop/images/16062025/10/32/image_16062025_10_32_15_9638.jpg', '/home/nano/Desktop/images/16062025/10/31/image_16062025_10_32_05_10731.jpg', '/home/nano/Desktop/images/16062025/10/31/image_16062025_10_31_54_9702.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/32/image_16062025_10_32_45_9614.jpg
/home/nano/Desktop/images/16062025/10/32/image_16062025_10_32_35_10626.jpg
/home/nano/Desktop/images/16062025/10/32/image_16062025_10_32_24_9682.jpg
/home/nano/Desktop/images/16062025/10/32/image_16062025_10_32_15_9638.jpg
/home/nano/Desktop/images/16062025/10/31/image_16062025_10_32_05_10731.jpg
/home/nano/Desktop/images/16062025/10/31/image_16062025_10_31_54_9702.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366529800","1366529793","1366529787","1366529771","1366529765","1366529780"],"photo_ids_order":["1366529765","1366529771","1366529780","1366529787","1366529793","1366529800"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b7da847b7b57175721f5c2bb8f540755.jpg","text":"TemporaryFile(/tmp/multipartBody84535814988394895asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062830900,"filename":"image_16062025_10_31_54_9702.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/83f79f92df0d4e4c437417a4845b0bd5.jpg","text":"TemporaryFile(/tmp/multipartBody6517395627059342255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062830900,"filename":"image_16062025_10_32_05_10731.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8f4715e6f6c2a210f743f6ac5be18f21.jpg","text":"TemporaryFile(/tmp/multipartBody5155223643048305501asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062830900,"filename":"image_16062025_10_32_15_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bf5689472a069b0437660468aa919baa.jpg","text":"TemporaryFile(/tmp/multipartBody2585925272127977522asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062830900,"filename":"image_16062025_10_32_35_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c1f25db98b826f730cddaf98a0a711e1.jpg","text":"TemporaryFile(/tmp/multipartBody345458273522938665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062830900,"filename":"image_16062025_10_32_45_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ea670b967554f37de3a9f70cd1c37e82.jpg","text":"TemporaryFile(/tmp/multipartBody6686502498516871360asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062830900,"filename":"image_16062025_10_32_24_9682.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366529780","file1":"1366529771","file0":"1366529765","file4":"1366529793","file5":"1366529800","file3":"1366529787"},"map_files_photo_id_array":[{"photo_id":"1366529800","filename":"file5"},{"photo_id":"1366529780","filename":"file2"},{"photo_id":"1366529793","filename":"file4"},{"photo_id":"1366529771","filename":"file1"},{"photo_id":"1366529765","filename":"file0"},{"photo_id":"1366529787","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366529800":["hashtag1","hashtag2"]},{"1366529793":["hashtag1","hashtag2"]},{"1366529787":["hashtag1","hashtag2"]},{"1366529771":["hashtag1","hashtag2"]},{"1366529765":["hashtag1","hashtag2"]},{"1366529780":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366529800, 1366529793, 1366529787, 1366529771, 1366529765, 1366529780)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.77482533454895 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:34:02.653536
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/33/image_16062025_10_33_44_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/10/33/image_16062025_10_33_35_9606.jpg', 2), ('/home/nano/Desktop/images/16062025/10/33/image_16062025_10_33_25_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/10/33/image_16062025_10_33_15_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/10/32/image_16062025_10_33_05_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/10/32/image_16062025_10_32_55_10628.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/33/image_16062025_10_33_44_9597.jpg', '/home/nano/Desktop/images/16062025/10/33/image_16062025_10_33_35_9606.jpg', '/home/nano/Desktop/images/16062025/10/33/image_16062025_10_33_25_10647.jpg', '/home/nano/Desktop/images/16062025/10/33/image_16062025_10_33_15_9658.jpg', '/home/nano/Desktop/images/16062025/10/32/image_16062025_10_33_05_9603.jpg', '/home/nano/Desktop/images/16062025/10/32/image_16062025_10_32_55_10628.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/33/image_16062025_10_33_44_9597.jpg
/home/nano/Desktop/images/16062025/10/33/image_16062025_10_33_35_9606.jpg
/home/nano/Desktop/images/16062025/10/33/image_16062025_10_33_25_10647.jpg
/home/nano/Desktop/images/16062025/10/33/image_16062025_10_33_15_9658.jpg
/home/nano/Desktop/images/16062025/10/32/image_16062025_10_33_05_9603.jpg
/home/nano/Desktop/images/16062025/10/32/image_16062025_10_32_55_10628.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366529819","1366529853","1366529841","1366529835","1366529829","1366529846"],"photo_ids_order":["1366529819","1366529829","1366529835","1366529841","1366529846","1366529853"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fa887fb1535e594cf938030ce026b47a.jpg","text":"TemporaryFile(/tmp/multipartBody8312911762409704275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062920743,"filename":"image_16062025_10_33_44_9597.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/21eff7fe4034177ddebf54a530110187.jpg","text":"TemporaryFile(/tmp/multipartBody7498100737314262714asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062920743,"filename":"image_16062025_10_32_55_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/088e2b76bc36aa79b9f0ae76a79660a0.jpg","text":"TemporaryFile(/tmp/multipartBody8307756255299707054asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062920743,"filename":"image_16062025_10_33_15_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9f7ebef6a9562a8de30f6a9c4e343286.jpg","text":"TemporaryFile(/tmp/multipartBody3375758612968043194asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062920743,"filename":"image_16062025_10_33_25_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/aa4ed9be36762db2f45806be974b8d25.jpg","text":"TemporaryFile(/tmp/multipartBody1764449311155648699asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062920743,"filename":"image_16062025_10_33_35_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f22f6077c424eb379cd39c2d57f3dc25.jpg","text":"TemporaryFile(/tmp/multipartBody2566871820135009155asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062920743,"filename":"image_16062025_10_33_05_9603.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366529835","file1":"1366529829","file0":"1366529819","file4":"1366529846","file5":"1366529853","file3":"1366529841"},"map_files_photo_id_array":[{"photo_id":"1366529853","filename":"file5"},{"photo_id":"1366529835","filename":"file2"},{"photo_id":"1366529846","filename":"file4"},{"photo_id":"1366529829","filename":"file1"},{"photo_id":"1366529819","filename":"file0"},{"photo_id":"1366529841","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366529819":["hashtag1","hashtag2"]},{"1366529853":["hashtag1","hashtag2"]},{"1366529841":["hashtag1","hashtag2"]},{"1366529835":["hashtag1","hashtag2"]},{"1366529829":["hashtag1","hashtag2"]},{"1366529846":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366529819, 1366529853, 1366529841, 1366529835, 1366529829, 1366529846)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 82.86750721931458 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:35:31.998960
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/35/image_16062025_10_35_15_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/10/34/image_16062025_10_35_04_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/10/34/image_16062025_10_34_55_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/10/34/image_16062025_10_34_45_10612.jpg', 2), ('/home/nano/Desktop/images/16062025/10/34/image_16062025_10_34_35_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/10/34/image_16062025_10_34_25_9608.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/35/image_16062025_10_35_15_10666.jpg', '/home/nano/Desktop/images/16062025/10/34/image_16062025_10_35_04_9617.jpg', '/home/nano/Desktop/images/16062025/10/34/image_16062025_10_34_55_9601.jpg', '/home/nano/Desktop/images/16062025/10/34/image_16062025_10_34_45_10612.jpg', '/home/nano/Desktop/images/16062025/10/34/image_16062025_10_34_35_9610.jpg', '/home/nano/Desktop/images/16062025/10/34/image_16062025_10_34_25_9608.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/35/image_16062025_10_35_15_10666.jpg
/home/nano/Desktop/images/16062025/10/34/image_16062025_10_35_04_9617.jpg
/home/nano/Desktop/images/16062025/10/34/image_16062025_10_34_55_9601.jpg
/home/nano/Desktop/images/16062025/10/34/image_16062025_10_34_45_10612.jpg
/home/nano/Desktop/images/16062025/10/34/image_16062025_10_34_35_9610.jpg
/home/nano/Desktop/images/16062025/10/34/image_16062025_10_34_25_9608.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366530009","1366529878","1366529985","1366529868","1366530040","1366529925"],"photo_ids_order":["1366529868","1366529878","1366529925","1366529985","1366530009","1366530040"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/abadcabfceb460adaea45705831fa20f.jpg","text":"TemporaryFile(/tmp/multipartBody6865602425953187687asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062993848,"filename":"image_16062025_10_34_35_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6552038da27dbabde6d12912e7355ce9.jpg","text":"TemporaryFile(/tmp/multipartBody186154273275559032asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062993848,"filename":"image_16062025_10_35_04_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a0b86934e32932492a08144c50acdda6.jpg","text":"TemporaryFile(/tmp/multipartBody4544470714938552699asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062993848,"filename":"image_16062025_10_34_45_10612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/82baa55a0bad807fc83bbdfddf018add.jpg","text":"TemporaryFile(/tmp/multipartBody2809871449838742914asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062993848,"filename":"image_16062025_10_35_15_10666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bd56e8eca63500f05e93d77bb1566ffb.jpg","text":"TemporaryFile(/tmp/multipartBody9013526917254753021asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062993848,"filename":"image_16062025_10_34_25_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7cfcfe5c839d6741be8e6fda3acda6c7.jpg","text":"TemporaryFile(/tmp/multipartBody4659269530833160617asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750062993848,"filename":"image_16062025_10_34_55_9601.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366529925","file1":"1366529878","file0":"1366529868","file4":"1366530009","file5":"1366530040","file3":"1366529985"},"map_files_photo_id_array":[{"photo_id":"1366530040","filename":"file5"},{"photo_id":"1366529925","filename":"file2"},{"photo_id":"1366530009","filename":"file4"},{"photo_id":"1366529878","filename":"file1"},{"photo_id":"1366529868","filename":"file0"},{"photo_id":"1366529985","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366530009":["hashtag1","hashtag2"]},{"1366529878":["hashtag1","hashtag2"]},{"1366529985":["hashtag1","hashtag2"]},{"1366529868":["hashtag1","hashtag2"]},{"1366530040":["hashtag1","hashtag2"]},{"1366529925":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366530009, 1366529878, 1366529985, 1366529868, 1366530040, 1366529925)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 70.49451518058777 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:36:47.132025
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/36/image_16062025_10_36_45_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/10/36/image_16062025_10_36_35_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/10/36/image_16062025_10_36_25_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/10/36/image_16062025_10_36_15_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/10/35/image_16062025_10_36_05_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/10/35/image_16062025_10_35_25_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/36/image_16062025_10_36_45_9603.jpg', '/home/nano/Desktop/images/16062025/10/36/image_16062025_10_36_35_9616.jpg', '/home/nano/Desktop/images/16062025/10/36/image_16062025_10_36_25_10616.jpg', '/home/nano/Desktop/images/16062025/10/36/image_16062025_10_36_15_9604.jpg', '/home/nano/Desktop/images/16062025/10/35/image_16062025_10_36_05_10627.jpg', '/home/nano/Desktop/images/16062025/10/35/image_16062025_10_35_25_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/36/image_16062025_10_36_45_9603.jpg
/home/nano/Desktop/images/16062025/10/36/image_16062025_10_36_35_9616.jpg
/home/nano/Desktop/images/16062025/10/36/image_16062025_10_36_25_10616.jpg
/home/nano/Desktop/images/16062025/10/36/image_16062025_10_36_15_9604.jpg
/home/nano/Desktop/images/16062025/10/35/image_16062025_10_36_05_10627.jpg
/home/nano/Desktop/images/16062025/10/35/image_16062025_10_35_25_9610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366530125","1366530091","1366530085","1366530120","1366530095","1366530080"],"photo_ids_order":["1366530080","1366530085","1366530091","1366530095","1366530120","1366530125"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/760e3a388c969a47b7ab386795d54c8b.jpg","text":"TemporaryFile(/tmp/multipartBody4921097698647734085asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063069589,"filename":"image_16062025_10_35_25_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/71233b7c6808bd9ea68919a6d05611ff.jpg","text":"TemporaryFile(/tmp/multipartBody1439185880980961683asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063069589,"filename":"image_16062025_10_36_25_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/307aa10daa2f85dbb2f7ab2d3c9fcb58.jpg","text":"TemporaryFile(/tmp/multipartBody2878391493835835837asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063069589,"filename":"image_16062025_10_36_35_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4ab1868de1e1d0c0c0adbd0f18ae10f9.jpg","text":"TemporaryFile(/tmp/multipartBody7255207164915613021asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063069589,"filename":"image_16062025_10_36_05_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e6f7688f4be10fe8b6013561c27e8ec8.jpg","text":"TemporaryFile(/tmp/multipartBody5302243632658119220asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063069589,"filename":"image_16062025_10_36_15_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/42868f8321313330cf77650b42c5deeb.jpg","text":"TemporaryFile(/tmp/multipartBody6881484080945243587asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063069589,"filename":"image_16062025_10_36_45_9603.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366530091","file1":"1366530085","file0":"1366530080","file4":"1366530120","file5":"1366530125","file3":"1366530095"},"map_files_photo_id_array":[{"photo_id":"1366530125","filename":"file5"},{"photo_id":"1366530091","filename":"file2"},{"photo_id":"1366530120","filename":"file4"},{"photo_id":"1366530085","filename":"file1"},{"photo_id":"1366530080","filename":"file0"},{"photo_id":"1366530095","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366530125":["hashtag1","hashtag2"]},{"1366530091":["hashtag1","hashtag2"]},{"1366530085":["hashtag1","hashtag2"]},{"1366530120":["hashtag1","hashtag2"]},{"1366530095":["hashtag1","hashtag2"]},{"1366530080":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366530125, 1366530091, 1366530085, 1366530120, 1366530095, 1366530080)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 78.6853506565094 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:38:17.361081
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/38/image_16062025_10_38_45_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/10/38/image_16062025_10_38_35_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/10/38/image_16062025_10_38_25_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/10/38/image_16062025_10_38_15_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/10/37/image_16062025_10_38_04_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/10/37/image_16062025_10_37_55_9596.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/38/image_16062025_10_38_45_9597.jpg', '/home/nano/Desktop/images/16062025/10/38/image_16062025_10_38_35_10619.jpg', '/home/nano/Desktop/images/16062025/10/38/image_16062025_10_38_25_9610.jpg', '/home/nano/Desktop/images/16062025/10/38/image_16062025_10_38_15_10642.jpg', '/home/nano/Desktop/images/16062025/10/37/image_16062025_10_38_04_9611.jpg', '/home/nano/Desktop/images/16062025/10/37/image_16062025_10_37_55_9596.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/38/image_16062025_10_38_45_9597.jpg
/home/nano/Desktop/images/16062025/10/38/image_16062025_10_38_35_10619.jpg
/home/nano/Desktop/images/16062025/10/38/image_16062025_10_38_25_9610.jpg
/home/nano/Desktop/images/16062025/10/38/image_16062025_10_38_15_10642.jpg
/home/nano/Desktop/images/16062025/10/37/image_16062025_10_38_04_9611.jpg
/home/nano/Desktop/images/16062025/10/37/image_16062025_10_37_55_9596.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366530170","1366530158","1366530177","1366530165","1366530153","1366530147"],"photo_ids_order":["1366530147","1366530153","1366530158","1366530165","1366530170","1366530177"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/73a8f5a1835de5061366865c0b2413a3.jpg","text":"TemporaryFile(/tmp/multipartBody1128835111883418972asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063164441,"filename":"image_16062025_10_38_04_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5a7d5c3f34dfe1abfe19076a4259e53f.jpg","text":"TemporaryFile(/tmp/multipartBody3481502398607847443asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063164441,"filename":"image_16062025_10_38_25_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/eba99a3abcbccf1aa277401bab876553.jpg","text":"TemporaryFile(/tmp/multipartBody5918097024041291207asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063164441,"filename":"image_16062025_10_37_55_9596.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/284b28b47ea3f23173b973fdadfb7843.jpg","text":"TemporaryFile(/tmp/multipartBody1624855226667387939asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063164441,"filename":"image_16062025_10_38_15_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/407c616cbb2383090fcc4f8dd71552e7.jpg","text":"TemporaryFile(/tmp/multipartBody6772562199145635704asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063164441,"filename":"image_16062025_10_38_35_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b8009c4bb94b853ecfa3f979a7cb29ee.jpg","text":"TemporaryFile(/tmp/multipartBody5993936471845687988asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063164441,"filename":"image_16062025_10_38_45_9597.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366530158","file1":"1366530153","file0":"1366530147","file4":"1366530170","file5":"1366530177","file3":"1366530165"},"map_files_photo_id_array":[{"photo_id":"1366530177","filename":"file5"},{"photo_id":"1366530158","filename":"file2"},{"photo_id":"1366530170","filename":"file4"},{"photo_id":"1366530153","filename":"file1"},{"photo_id":"1366530147","filename":"file0"},{"photo_id":"1366530165","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366530170":["hashtag1","hashtag2"]},{"1366530158":["hashtag1","hashtag2"]},{"1366530177":["hashtag1","hashtag2"]},{"1366530165":["hashtag1","hashtag2"]},{"1366530153":["hashtag1","hashtag2"]},{"1366530147":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366530170, 1366530158, 1366530177, 1366530165, 1366530153, 1366530147)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 80.21305561065674 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:39:47.460165
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/39/image_16062025_10_39_45_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/10/39/image_16062025_10_39_35_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/10/39/image_16062025_10_39_24_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/10/39/image_16062025_10_39_15_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/10/38/image_16062025_10_39_05_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/10/38/image_16062025_10_38_55_9599.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/39/image_16062025_10_39_45_9613.jpg', '/home/nano/Desktop/images/16062025/10/39/image_16062025_10_39_35_10610.jpg', '/home/nano/Desktop/images/16062025/10/39/image_16062025_10_39_24_9624.jpg', '/home/nano/Desktop/images/16062025/10/39/image_16062025_10_39_15_9624.jpg', '/home/nano/Desktop/images/16062025/10/38/image_16062025_10_39_05_10643.jpg', '/home/nano/Desktop/images/16062025/10/38/image_16062025_10_38_55_9599.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/39/image_16062025_10_39_45_9613.jpg
/home/nano/Desktop/images/16062025/10/39/image_16062025_10_39_35_10610.jpg
/home/nano/Desktop/images/16062025/10/39/image_16062025_10_39_24_9624.jpg
/home/nano/Desktop/images/16062025/10/39/image_16062025_10_39_15_9624.jpg
/home/nano/Desktop/images/16062025/10/38/image_16062025_10_39_05_10643.jpg
/home/nano/Desktop/images/16062025/10/38/image_16062025_10_38_55_9599.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366530206","1366530196","1366530256","1366530220","1366530189","1366530213"],"photo_ids_order":["1366530189","1366530196","1366530206","1366530213","1366530220","1366530256"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/749b16650777db43602df867e280677a.jpg","text":"TemporaryFile(/tmp/multipartBody6473232940692645535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063255302,"filename":"image_16062025_10_39_24_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d075dbafcef8df9a2083c1a07452e1b6.jpg","text":"TemporaryFile(/tmp/multipartBody4217700855258022664asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063255302,"filename":"image_16062025_10_39_35_10610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ecc8c4dc72e26d3be94fdb2838ef404f.jpg","text":"TemporaryFile(/tmp/multipartBody1624903910092024009asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063255302,"filename":"image_16062025_10_38_55_9599.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c4f9a5752839f4bffba19e88b4fd3fc5.jpg","text":"TemporaryFile(/tmp/multipartBody7540021502592827394asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063255302,"filename":"image_16062025_10_39_05_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6c13de9ca0a06d17f3a04a6b8c2b5011.jpg","text":"TemporaryFile(/tmp/multipartBody4860310627083074968asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063255302,"filename":"image_16062025_10_39_45_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b10d7d0aeed7a012be666679de5102ff.jpg","text":"TemporaryFile(/tmp/multipartBody5377646205877051092asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063255302,"filename":"image_16062025_10_39_15_9624.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366530206","file1":"1366530196","file0":"1366530189","file4":"1366530220","file5":"1366530256","file3":"1366530213"},"map_files_photo_id_array":[{"photo_id":"1366530256","filename":"file5"},{"photo_id":"1366530206","filename":"file2"},{"photo_id":"1366530220","filename":"file4"},{"photo_id":"1366530196","filename":"file1"},{"photo_id":"1366530189","filename":"file0"},{"photo_id":"1366530213","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366530206":["hashtag1","hashtag2"]},{"1366530196":["hashtag1","hashtag2"]},{"1366530256":["hashtag1","hashtag2"]},{"1366530220":["hashtag1","hashtag2"]},{"1366530189":["hashtag1","hashtag2"]},{"1366530213":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366530206, 1366530196, 1366530256, 1366530220, 1366530189, 1366530213)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 78.87720656394958 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:41:17.776751
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/41/image_16062025_10_41_45_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/10/41/image_16062025_10_41_35_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/10/41/image_16062025_10_41_25_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/10/41/image_16062025_10_41_15_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/10/40/image_16062025_10_41_05_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/10/40/image_16062025_10_40_55_10616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/41/image_16062025_10_41_45_10621.jpg', '/home/nano/Desktop/images/16062025/10/41/image_16062025_10_41_35_9622.jpg', '/home/nano/Desktop/images/16062025/10/41/image_16062025_10_41_25_9632.jpg', '/home/nano/Desktop/images/16062025/10/41/image_16062025_10_41_15_10637.jpg', '/home/nano/Desktop/images/16062025/10/40/image_16062025_10_41_05_9621.jpg', '/home/nano/Desktop/images/16062025/10/40/image_16062025_10_40_55_10616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/41/image_16062025_10_41_45_10621.jpg
/home/nano/Desktop/images/16062025/10/41/image_16062025_10_41_35_9622.jpg
/home/nano/Desktop/images/16062025/10/41/image_16062025_10_41_25_9632.jpg
/home/nano/Desktop/images/16062025/10/41/image_16062025_10_41_15_10637.jpg
/home/nano/Desktop/images/16062025/10/40/image_16062025_10_41_05_9621.jpg
/home/nano/Desktop/images/16062025/10/40/image_16062025_10_40_55_10616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366530395","1366530416","1366530438","1366530432","1366530426","1366530420"],"photo_ids_order":["1366530395","1366530416","1366530420","1366530426","1366530432","1366530438"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/eba57f34c136ba2db4fd4a26ce0b16ba.jpg","text":"TemporaryFile(/tmp/multipartBody2539329991601877224asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063340476,"filename":"image_16062025_10_41_45_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6e3daeda2882304d2f671ddeab066cca.jpg","text":"TemporaryFile(/tmp/multipartBody1137171589015828872asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063340476,"filename":"image_16062025_10_41_35_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8bece993aae7720e14ffeb7cdba8dacd.jpg","text":"TemporaryFile(/tmp/multipartBody4771065519541917306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063340476,"filename":"image_16062025_10_40_55_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/581dc4de38abb3a610e7b69e09eecee3.jpg","text":"TemporaryFile(/tmp/multipartBody478017366960545070asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063340476,"filename":"image_16062025_10_41_05_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a7dd02876d3c6eb6c29a47be10ee4681.jpg","text":"TemporaryFile(/tmp/multipartBody903977069537002917asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063340476,"filename":"image_16062025_10_41_15_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c8fbdefa0f9ef0573f8f5b5f22c4d21b.jpg","text":"TemporaryFile(/tmp/multipartBody6202775401966941269asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063340476,"filename":"image_16062025_10_41_25_9632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366530420","file1":"1366530416","file0":"1366530395","file4":"1366530432","file5":"1366530438","file3":"1366530426"},"map_files_photo_id_array":[{"photo_id":"1366530438","filename":"file5"},{"photo_id":"1366530420","filename":"file2"},{"photo_id":"1366530432","filename":"file4"},{"photo_id":"1366530416","filename":"file1"},{"photo_id":"1366530395","filename":"file0"},{"photo_id":"1366530426","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366530395":["hashtag1","hashtag2"]},{"1366530416":["hashtag1","hashtag2"]},{"1366530438":["hashtag1","hashtag2"]},{"1366530432":["hashtag1","hashtag2"]},{"1366530426":["hashtag1","hashtag2"]},{"1366530420":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366530395, 1366530416, 1366530438, 1366530432, 1366530426, 1366530420)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 67.43407082557678 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:42:31.874560
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/42/image_16062025_10_42_45_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/10/42/image_16062025_10_42_35_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/10/42/image_16062025_10_42_25_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/10/42/image_16062025_10_42_15_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/10/41/image_16062025_10_42_04_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/10/41/image_16062025_10_41_55_9615.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/42/image_16062025_10_42_45_9607.jpg', '/home/nano/Desktop/images/16062025/10/42/image_16062025_10_42_35_10619.jpg', '/home/nano/Desktop/images/16062025/10/42/image_16062025_10_42_25_9620.jpg', '/home/nano/Desktop/images/16062025/10/42/image_16062025_10_42_15_10635.jpg', '/home/nano/Desktop/images/16062025/10/41/image_16062025_10_42_04_9617.jpg', '/home/nano/Desktop/images/16062025/10/41/image_16062025_10_41_55_9615.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/42/image_16062025_10_42_45_9607.jpg
/home/nano/Desktop/images/16062025/10/42/image_16062025_10_42_35_10619.jpg
/home/nano/Desktop/images/16062025/10/42/image_16062025_10_42_25_9620.jpg
/home/nano/Desktop/images/16062025/10/42/image_16062025_10_42_15_10635.jpg
/home/nano/Desktop/images/16062025/10/41/image_16062025_10_42_04_9617.jpg
/home/nano/Desktop/images/16062025/10/41/image_16062025_10_41_55_9615.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366530467","1366530463","1366530469","1366530456","1366530471","1366530453"],"photo_ids_order":["1366530453","1366530456","1366530463","1366530467","1366530469","1366530471"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0e4de1560ef37d200ee231acba1aaa1a.jpg","text":"TemporaryFile(/tmp/multipartBody8568838250926115752asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063415698,"filename":"image_16062025_10_42_15_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/339e84440c1d948ebfbd6d98fad088c7.jpg","text":"TemporaryFile(/tmp/multipartBody7741401616262933907asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063415698,"filename":"image_16062025_10_42_25_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9bc583cdc890d6323c53ac4971e1cba1.jpg","text":"TemporaryFile(/tmp/multipartBody2728115632064055091asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063415698,"filename":"image_16062025_10_42_04_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fb9d08143659510480405a7b7689872e.jpg","text":"TemporaryFile(/tmp/multipartBody4624952681994357738asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063415698,"filename":"image_16062025_10_42_35_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5ef78233a9bdfefd09ee727c479478a6.jpg","text":"TemporaryFile(/tmp/multipartBody7974497142431369663asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063415698,"filename":"image_16062025_10_41_55_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cf10ac63f4705ef31c1b995483ebda7e.jpg","text":"TemporaryFile(/tmp/multipartBody8100104204614943874asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063415698,"filename":"image_16062025_10_42_45_9607.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366530463","file1":"1366530456","file0":"1366530453","file4":"1366530469","file5":"1366530471","file3":"1366530467"},"map_files_photo_id_array":[{"photo_id":"1366530471","filename":"file5"},{"photo_id":"1366530463","filename":"file2"},{"photo_id":"1366530469","filename":"file4"},{"photo_id":"1366530456","filename":"file1"},{"photo_id":"1366530453","filename":"file0"},{"photo_id":"1366530467","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366530467":["hashtag1","hashtag2"]},{"1366530463":["hashtag1","hashtag2"]},{"1366530469":["hashtag1","hashtag2"]},{"1366530456":["hashtag1","hashtag2"]},{"1366530471":["hashtag1","hashtag2"]},{"1366530453":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366530467, 1366530463, 1366530469, 1366530456, 1366530471, 1366530453)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 66.3433563709259 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:43:46.987400
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/43/image_16062025_10_43_45_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/10/43/image_16062025_10_43_35_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/10/43/image_16062025_10_43_25_10612.jpg', 2), ('/home/nano/Desktop/images/16062025/10/43/image_16062025_10_43_15_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/10/42/image_16062025_10_43_05_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/10/42/image_16062025_10_42_54_9613.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/43/image_16062025_10_43_45_9609.jpg', '/home/nano/Desktop/images/16062025/10/43/image_16062025_10_43_35_9613.jpg', '/home/nano/Desktop/images/16062025/10/43/image_16062025_10_43_25_10612.jpg', '/home/nano/Desktop/images/16062025/10/43/image_16062025_10_43_15_9608.jpg', '/home/nano/Desktop/images/16062025/10/42/image_16062025_10_43_05_10652.jpg', '/home/nano/Desktop/images/16062025/10/42/image_16062025_10_42_54_9613.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/43/image_16062025_10_43_45_9609.jpg
/home/nano/Desktop/images/16062025/10/43/image_16062025_10_43_35_9613.jpg
/home/nano/Desktop/images/16062025/10/43/image_16062025_10_43_25_10612.jpg
/home/nano/Desktop/images/16062025/10/43/image_16062025_10_43_15_9608.jpg
/home/nano/Desktop/images/16062025/10/42/image_16062025_10_43_05_10652.jpg
/home/nano/Desktop/images/16062025/10/42/image_16062025_10_42_54_9613.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366530503","1366530509","1366530500","1366530490","1366530495","1366530507"],"photo_ids_order":["1366530490","1366530495","1366530500","1366530503","1366530507","1366530509"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5da79f86f4bcb55169bb1925b71d7c8d.jpg","text":"TemporaryFile(/tmp/multipartBody5842359828626833825asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063489043,"filename":"image_16062025_10_43_15_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ada669b4d759c85e239d58f4d484a548.jpg","text":"TemporaryFile(/tmp/multipartBody6544952926068400751asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063489043,"filename":"image_16062025_10_42_54_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/178de4906503945de759eb4231333965.jpg","text":"TemporaryFile(/tmp/multipartBody42930389697020951asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063489043,"filename":"image_16062025_10_43_25_10612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4c52ab102920dee4be9419d2ac115010.jpg","text":"TemporaryFile(/tmp/multipartBody7852057294192325438asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063489043,"filename":"image_16062025_10_43_45_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/42ed8886e7638ac47a63df6488a9fcc2.jpg","text":"TemporaryFile(/tmp/multipartBody4657513055241351058asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063489043,"filename":"image_16062025_10_43_35_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/903acb883d6e783d10693226598c848c.jpg","text":"TemporaryFile(/tmp/multipartBody5672970832255896849asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063489043,"filename":"image_16062025_10_43_05_10652.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366530500","file1":"1366530495","file0":"1366530490","file4":"1366530507","file5":"1366530509","file3":"1366530503"},"map_files_photo_id_array":[{"photo_id":"1366530509","filename":"file5"},{"photo_id":"1366530500","filename":"file2"},{"photo_id":"1366530507","filename":"file4"},{"photo_id":"1366530495","filename":"file1"},{"photo_id":"1366530490","filename":"file0"},{"photo_id":"1366530503","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366530503":["hashtag1","hashtag2"]},{"1366530509":["hashtag1","hashtag2"]},{"1366530500":["hashtag1","hashtag2"]},{"1366530490":["hashtag1","hashtag2"]},{"1366530495":["hashtag1","hashtag2"]},{"1366530507":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366530503, 1366530509, 1366530500, 1366530490, 1366530495, 1366530507)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.875383615493774 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:44:47.101978
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/44/image_16062025_10_44_45_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/10/44/image_16062025_10_44_35_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/10/44/image_16062025_10_44_25_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/10/44/image_16062025_10_44_14_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/10/43/image_16062025_10_44_05_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/10/43/image_16062025_10_43_55_10622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/44/image_16062025_10_44_45_10618.jpg', '/home/nano/Desktop/images/16062025/10/44/image_16062025_10_44_35_9628.jpg', '/home/nano/Desktop/images/16062025/10/44/image_16062025_10_44_25_10616.jpg', '/home/nano/Desktop/images/16062025/10/44/image_16062025_10_44_14_9615.jpg', '/home/nano/Desktop/images/16062025/10/43/image_16062025_10_44_05_9631.jpg', '/home/nano/Desktop/images/16062025/10/43/image_16062025_10_43_55_10622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/44/image_16062025_10_44_45_10618.jpg
/home/nano/Desktop/images/16062025/10/44/image_16062025_10_44_35_9628.jpg
/home/nano/Desktop/images/16062025/10/44/image_16062025_10_44_25_10616.jpg
/home/nano/Desktop/images/16062025/10/44/image_16062025_10_44_14_9615.jpg
/home/nano/Desktop/images/16062025/10/43/image_16062025_10_44_05_9631.jpg
/home/nano/Desktop/images/16062025/10/43/image_16062025_10_43_55_10622.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366530563","1366530542","1366530524","1366530549","1366530519","1366530534"],"photo_ids_order":["1366530519","1366530524","1366530534","1366530542","1366530549","1366530563"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2da39ebfb0166d4e712442ce84df2ea7.jpg","text":"TemporaryFile(/tmp/multipartBody3533679016473567553asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063558466,"filename":"image_16062025_10_43_55_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/75b1d98b40cbb0a5c2eed2b71f236f30.jpg","text":"TemporaryFile(/tmp/multipartBody3275419701078960084asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063558466,"filename":"image_16062025_10_44_14_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b0b12f5652a65af19bd7badbdb923e76.jpg","text":"TemporaryFile(/tmp/multipartBody2398100023933698301asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063558466,"filename":"image_16062025_10_44_35_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6b574b41961d13c90a32b372f1320014.jpg","text":"TemporaryFile(/tmp/multipartBody7688897376506937563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063558466,"filename":"image_16062025_10_44_05_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2ae702c988150e29a33c45d416075f76.jpg","text":"TemporaryFile(/tmp/multipartBody5603998647437892125asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063558466,"filename":"image_16062025_10_44_45_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cbb377036e4fd60fab5fd3a46c906022.jpg","text":"TemporaryFile(/tmp/multipartBody8565054961598494146asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063558466,"filename":"image_16062025_10_44_25_10616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366530534","file1":"1366530524","file0":"1366530519","file4":"1366530549","file5":"1366530563","file3":"1366530542"},"map_files_photo_id_array":[{"photo_id":"1366530563","filename":"file5"},{"photo_id":"1366530534","filename":"file2"},{"photo_id":"1366530549","filename":"file4"},{"photo_id":"1366530524","filename":"file1"},{"photo_id":"1366530519","filename":"file0"},{"photo_id":"1366530542","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366530563":["hashtag1","hashtag2"]},{"1366530542":["hashtag1","hashtag2"]},{"1366530524":["hashtag1","hashtag2"]},{"1366530549":["hashtag1","hashtag2"]},{"1366530519":["hashtag1","hashtag2"]},{"1366530534":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366530563, 1366530542, 1366530524, 1366530549, 1366530519, 1366530534)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 95.87112951278687 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:46:32.314401
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/46/image_16062025_10_46_45_9599.jpg', 2), ('/home/nano/Desktop/images/16062025/10/46/image_16062025_10_46_24_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/10/46/image_16062025_10_46_15_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/10/45/image_16062025_10_46_05_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/10/45/image_16062025_10_45_55_9606.jpg', 2), ('/home/nano/Desktop/images/16062025/10/45/image_16062025_10_45_45_10621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/46/image_16062025_10_46_45_9599.jpg', '/home/nano/Desktop/images/16062025/10/46/image_16062025_10_46_24_9603.jpg', '/home/nano/Desktop/images/16062025/10/46/image_16062025_10_46_15_9616.jpg', '/home/nano/Desktop/images/16062025/10/45/image_16062025_10_46_05_10640.jpg', '/home/nano/Desktop/images/16062025/10/45/image_16062025_10_45_55_9606.jpg', '/home/nano/Desktop/images/16062025/10/45/image_16062025_10_45_45_10621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/46/image_16062025_10_46_45_9599.jpg
/home/nano/Desktop/images/16062025/10/46/image_16062025_10_46_24_9603.jpg
/home/nano/Desktop/images/16062025/10/46/image_16062025_10_46_15_9616.jpg
/home/nano/Desktop/images/16062025/10/45/image_16062025_10_46_05_10640.jpg
/home/nano/Desktop/images/16062025/10/45/image_16062025_10_45_55_9606.jpg
/home/nano/Desktop/images/16062025/10/45/image_16062025_10_45_45_10621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366530758","1366530740","1366530713","1366530748","1366530753","1366530744"],"photo_ids_order":["1366530713","1366530740","1366530744","1366530748","1366530753","1366530758"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e5766bcb384d15497f7c2871963a962b.jpg","text":"TemporaryFile(/tmp/multipartBody5159690803275080770asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063658319,"filename":"image_16062025_10_45_45_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b0a3b5d441f88c8ac4b32f6fc44cc175.jpg","text":"TemporaryFile(/tmp/multipartBody8953591611022855240asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063658319,"filename":"image_16062025_10_46_24_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2af4593a6dc8c695f344075badc7f9d2.jpg","text":"TemporaryFile(/tmp/multipartBody5246717623657312181asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063658319,"filename":"image_16062025_10_46_45_9599.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/51b2f29bf2b42518e774c9df33dcc132.jpg","text":"TemporaryFile(/tmp/multipartBody1582599854441364381asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063658319,"filename":"image_16062025_10_46_05_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/52962079370ada600fb0ac4fc3a44713.jpg","text":"TemporaryFile(/tmp/multipartBody6203395105886740868asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063658319,"filename":"image_16062025_10_45_55_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/877ff1ce3b18d956629762e6ba2edd7b.jpg","text":"TemporaryFile(/tmp/multipartBody4310475454553195343asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063658319,"filename":"image_16062025_10_46_15_9616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366530744","file1":"1366530740","file0":"1366530713","file4":"1366530753","file5":"1366530758","file3":"1366530748"},"map_files_photo_id_array":[{"photo_id":"1366530758","filename":"file5"},{"photo_id":"1366530744","filename":"file2"},{"photo_id":"1366530753","filename":"file4"},{"photo_id":"1366530740","filename":"file1"},{"photo_id":"1366530713","filename":"file0"},{"photo_id":"1366530748","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366530758":["hashtag1","hashtag2"]},{"1366530740":["hashtag1","hashtag2"]},{"1366530713":["hashtag1","hashtag2"]},{"1366530748":["hashtag1","hashtag2"]},{"1366530753":["hashtag1","hashtag2"]},{"1366530744":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366530758, 1366530740, 1366530713, 1366530748, 1366530753, 1366530744)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 75.20020484924316 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:48:03.087018
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/47/image_16062025_10_47_44_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/10/47/image_16062025_10_47_35_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/10/47/image_16062025_10_47_25_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/10/47/image_16062025_10_47_15_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/10/46/image_16062025_10_47_05_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/10/46/image_16062025_10_46_35_10623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/47/image_16062025_10_47_44_9609.jpg', '/home/nano/Desktop/images/16062025/10/47/image_16062025_10_47_35_9604.jpg', '/home/nano/Desktop/images/16062025/10/47/image_16062025_10_47_25_10616.jpg', '/home/nano/Desktop/images/16062025/10/47/image_16062025_10_47_15_9618.jpg', '/home/nano/Desktop/images/16062025/10/46/image_16062025_10_47_05_9605.jpg', '/home/nano/Desktop/images/16062025/10/46/image_16062025_10_46_35_10623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/47/image_16062025_10_47_44_9609.jpg
/home/nano/Desktop/images/16062025/10/47/image_16062025_10_47_35_9604.jpg
/home/nano/Desktop/images/16062025/10/47/image_16062025_10_47_25_10616.jpg
/home/nano/Desktop/images/16062025/10/47/image_16062025_10_47_15_9618.jpg
/home/nano/Desktop/images/16062025/10/46/image_16062025_10_47_05_9605.jpg
/home/nano/Desktop/images/16062025/10/46/image_16062025_10_46_35_10623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366530806","1366530817","1366530814","1366530786","1366530795","1366530780"],"photo_ids_order":["1366530780","1366530786","1366530795","1366530806","1366530814","1366530817"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5cd1245d8350624835271c8e978c4eee.jpg","text":"TemporaryFile(/tmp/multipartBody227563915844288604asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063748411,"filename":"image_16062025_10_47_15_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/860a0bf19aa78ab7364ea57cf8a3f3d3.jpg","text":"TemporaryFile(/tmp/multipartBody7010530871926462420asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063748411,"filename":"image_16062025_10_46_35_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/319897dafca83d665d28af601cdefd63.jpg","text":"TemporaryFile(/tmp/multipartBody7587608110064858600asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063748411,"filename":"image_16062025_10_47_05_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3914d9849d823b8f5064cc58f2cbcd81.jpg","text":"TemporaryFile(/tmp/multipartBody4998583601716119548asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063748411,"filename":"image_16062025_10_47_35_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cb21bf27d154dbf60d7ccdc07ba097b6.jpg","text":"TemporaryFile(/tmp/multipartBody7990815924592625837asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063748411,"filename":"image_16062025_10_47_25_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a2bfdd3f7f048ed0666071d757e779c9.jpg","text":"TemporaryFile(/tmp/multipartBody6879066736156203388asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063748411,"filename":"image_16062025_10_47_44_9609.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366530795","file1":"1366530786","file0":"1366530780","file4":"1366530814","file5":"1366530817","file3":"1366530806"},"map_files_photo_id_array":[{"photo_id":"1366530817","filename":"file5"},{"photo_id":"1366530795","filename":"file2"},{"photo_id":"1366530814","filename":"file4"},{"photo_id":"1366530786","filename":"file1"},{"photo_id":"1366530780","filename":"file0"},{"photo_id":"1366530806","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366530806":["hashtag1","hashtag2"]},{"1366530817":["hashtag1","hashtag2"]},{"1366530814":["hashtag1","hashtag2"]},{"1366530786":["hashtag1","hashtag2"]},{"1366530795":["hashtag1","hashtag2"]},{"1366530780":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366530806, 1366530817, 1366530814, 1366530786, 1366530795, 1366530780)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 101.50130558013916 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:49:47.588828
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/49/image_16062025_10_49_45_9599.jpg', 2), ('/home/nano/Desktop/images/16062025/10/49/image_16062025_10_49_35_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/10/49/image_16062025_10_49_25_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/10/49/image_16062025_10_49_15_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/10/48/image_16062025_10_49_05_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/10/48/image_16062025_10_48_55_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/49/image_16062025_10_49_45_9599.jpg', '/home/nano/Desktop/images/16062025/10/49/image_16062025_10_49_35_10633.jpg', '/home/nano/Desktop/images/16062025/10/49/image_16062025_10_49_25_9620.jpg', '/home/nano/Desktop/images/16062025/10/49/image_16062025_10_49_15_9621.jpg', '/home/nano/Desktop/images/16062025/10/48/image_16062025_10_49_05_10613.jpg', '/home/nano/Desktop/images/16062025/10/48/image_16062025_10_48_55_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/49/image_16062025_10_49_45_9599.jpg
/home/nano/Desktop/images/16062025/10/49/image_16062025_10_49_35_10633.jpg
/home/nano/Desktop/images/16062025/10/49/image_16062025_10_49_25_9620.jpg
/home/nano/Desktop/images/16062025/10/49/image_16062025_10_49_15_9621.jpg
/home/nano/Desktop/images/16062025/10/48/image_16062025_10_49_05_10613.jpg
/home/nano/Desktop/images/16062025/10/48/image_16062025_10_48_55_9612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366530856","1366530850","1366530844","1366530876","1366530861","1366530869"],"photo_ids_order":["1366530844","1366530850","1366530856","1366530861","1366530869","1366530876"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e9505852f5af8b49fd2951d3956695be.jpg","text":"TemporaryFile(/tmp/multipartBody5369441574389569359asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063851125,"filename":"image_16062025_10_49_25_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e16f23d6423651ee3891fc8521e67425.jpg","text":"TemporaryFile(/tmp/multipartBody6853793098965174455asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063851125,"filename":"image_16062025_10_49_35_10633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6d28f005bd88a1b7ad7618d2805b1aa3.jpg","text":"TemporaryFile(/tmp/multipartBody858611393528269433asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063851125,"filename":"image_16062025_10_49_45_9599.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6c4c302fe71c4e88613b29dc6ff1e471.jpg","text":"TemporaryFile(/tmp/multipartBody8838894651239222920asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063851125,"filename":"image_16062025_10_48_55_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3aa6a0a7953d869fcdf80ccd1a466d40.jpg","text":"TemporaryFile(/tmp/multipartBody6006925687037917890asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063851125,"filename":"image_16062025_10_49_15_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/628d6ed148786b0e90985016ea45bfee.jpg","text":"TemporaryFile(/tmp/multipartBody5805154712453731328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063851125,"filename":"image_16062025_10_49_05_10613.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366530856","file1":"1366530850","file0":"1366530844","file4":"1366530869","file5":"1366530876","file3":"1366530861"},"map_files_photo_id_array":[{"photo_id":"1366530876","filename":"file5"},{"photo_id":"1366530856","filename":"file2"},{"photo_id":"1366530869","filename":"file4"},{"photo_id":"1366530850","filename":"file1"},{"photo_id":"1366530844","filename":"file0"},{"photo_id":"1366530861","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366530856":["hashtag1","hashtag2"]},{"1366530850":["hashtag1","hashtag2"]},{"1366530844":["hashtag1","hashtag2"]},{"1366530876":["hashtag1","hashtag2"]},{"1366530861":["hashtag1","hashtag2"]},{"1366530869":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366530856, 1366530850, 1366530844, 1366530876, 1366530861, 1366530869)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 71.5691990852356 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:51:02.405882
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/50/image_16062025_10_50_45_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/10/50/image_16062025_10_50_25_10617.jpg', 2), ('/home/nano/Desktop/images/16062025/10/50/image_16062025_10_50_15_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/10/49/image_16062025_10_50_05_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/10/49/image_16062025_10_49_54_9606.jpg', 2), ('/home/nano/Desktop/images/16062025/10/48/image_16062025_10_48_45_10627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/50/image_16062025_10_50_45_9600.jpg', '/home/nano/Desktop/images/16062025/10/50/image_16062025_10_50_25_10617.jpg', '/home/nano/Desktop/images/16062025/10/50/image_16062025_10_50_15_9625.jpg', '/home/nano/Desktop/images/16062025/10/49/image_16062025_10_50_05_10618.jpg', '/home/nano/Desktop/images/16062025/10/49/image_16062025_10_49_54_9606.jpg', '/home/nano/Desktop/images/16062025/10/48/image_16062025_10_48_45_10627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/50/image_16062025_10_50_45_9600.jpg
/home/nano/Desktop/images/16062025/10/50/image_16062025_10_50_25_10617.jpg
/home/nano/Desktop/images/16062025/10/50/image_16062025_10_50_15_9625.jpg
/home/nano/Desktop/images/16062025/10/49/image_16062025_10_50_05_10618.jpg
/home/nano/Desktop/images/16062025/10/49/image_16062025_10_49_54_9606.jpg
/home/nano/Desktop/images/16062025/10/48/image_16062025_10_48_45_10627.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366531078","1366531001","1366531072","1366531069","1366530996","1366531023"],"photo_ids_order":["1366530996","1366531001","1366531023","1366531069","1366531072","1366531078"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b39882b972e6a56c29d4bcd1902bb944.jpg","text":"TemporaryFile(/tmp/multipartBody8396325650872871701asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063925858,"filename":"image_16062025_10_48_45_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bc535ac3e85e902c5832b227fb1097fd.jpg","text":"TemporaryFile(/tmp/multipartBody581971750335647343asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063925858,"filename":"image_16062025_10_50_25_10617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/43fcf34af3e7766a8e6d487643c18355.jpg","text":"TemporaryFile(/tmp/multipartBody7130997620235963306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063925858,"filename":"image_16062025_10_49_54_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/555a985c6073ab0eece4c2968347829a.jpg","text":"TemporaryFile(/tmp/multipartBody398301445949342896asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063925858,"filename":"image_16062025_10_50_05_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c0cf613c76eba7590ab8536c0a889e0a.jpg","text":"TemporaryFile(/tmp/multipartBody554038411917918318asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063925858,"filename":"image_16062025_10_50_45_9600.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e62b76cb60746a7fadfdab8cb144820d.jpg","text":"TemporaryFile(/tmp/multipartBody3433062994157504372asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750063925858,"filename":"image_16062025_10_50_15_9625.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366531023","file1":"1366531001","file0":"1366530996","file4":"1366531072","file5":"1366531078","file3":"1366531069"},"map_files_photo_id_array":[{"photo_id":"1366531078","filename":"file5"},{"photo_id":"1366531023","filename":"file2"},{"photo_id":"1366531072","filename":"file4"},{"photo_id":"1366531001","filename":"file1"},{"photo_id":"1366530996","filename":"file0"},{"photo_id":"1366531069","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366531078":["hashtag1","hashtag2"]},{"1366531001":["hashtag1","hashtag2"]},{"1366531072":["hashtag1","hashtag2"]},{"1366531069":["hashtag1","hashtag2"]},{"1366530996":["hashtag1","hashtag2"]},{"1366531023":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366531078, 1366531001, 1366531072, 1366531069, 1366530996, 1366531023)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 63.47317934036255 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:52:16.915651
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/52/image_16062025_10_52_45_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/10/52/image_16062025_10_52_35_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/10/52/image_16062025_10_52_25_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/10/52/image_16062025_10_52_15_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/10/51/image_16062025_10_52_04_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/10/51/image_16062025_10_51_55_9609.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/52/image_16062025_10_52_45_9609.jpg', '/home/nano/Desktop/images/16062025/10/52/image_16062025_10_52_35_10616.jpg', '/home/nano/Desktop/images/16062025/10/52/image_16062025_10_52_25_9605.jpg', '/home/nano/Desktop/images/16062025/10/52/image_16062025_10_52_15_10652.jpg', '/home/nano/Desktop/images/16062025/10/51/image_16062025_10_52_04_9617.jpg', '/home/nano/Desktop/images/16062025/10/51/image_16062025_10_51_55_9609.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/52/image_16062025_10_52_45_9609.jpg
/home/nano/Desktop/images/16062025/10/52/image_16062025_10_52_35_10616.jpg
/home/nano/Desktop/images/16062025/10/52/image_16062025_10_52_25_9605.jpg
/home/nano/Desktop/images/16062025/10/52/image_16062025_10_52_15_10652.jpg
/home/nano/Desktop/images/16062025/10/51/image_16062025_10_52_04_9617.jpg
/home/nano/Desktop/images/16062025/10/51/image_16062025_10_51_55_9609.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366531120","1366531114","1366531095","1366531108","1366531122","1366531101"],"photo_ids_order":["1366531095","1366531101","1366531108","1366531114","1366531120","1366531122"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2c1acd16c8bdefb75510d9c2bee888a0.jpg","text":"TemporaryFile(/tmp/multipartBody935333783466707999asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064000494,"filename":"image_16062025_10_52_04_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8110f2d617f2f60213cbf5618e2c13d5.jpg","text":"TemporaryFile(/tmp/multipartBody6331754830903723809asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064000494,"filename":"image_16062025_10_52_15_10652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/19e461b85b4810dbb90c306c3968305c.jpg","text":"TemporaryFile(/tmp/multipartBody7502391577392877550asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064000494,"filename":"image_16062025_10_52_45_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1becc229a15e26235aeaf7f2c2fe18ee.jpg","text":"TemporaryFile(/tmp/multipartBody3842549443715856405asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064000494,"filename":"image_16062025_10_52_25_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/abd68aa84fa64fe2d111471f08830c15.jpg","text":"TemporaryFile(/tmp/multipartBody7154144174140531925asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064000494,"filename":"image_16062025_10_51_55_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bfa8a70e9cca6e33b5344e4fca996432.jpg","text":"TemporaryFile(/tmp/multipartBody1435477722245791858asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064000494,"filename":"image_16062025_10_52_35_10616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366531108","file1":"1366531101","file0":"1366531095","file4":"1366531120","file5":"1366531122","file3":"1366531114"},"map_files_photo_id_array":[{"photo_id":"1366531122","filename":"file5"},{"photo_id":"1366531108","filename":"file2"},{"photo_id":"1366531120","filename":"file4"},{"photo_id":"1366531101","filename":"file1"},{"photo_id":"1366531095","filename":"file0"},{"photo_id":"1366531114","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366531120":["hashtag1","hashtag2"]},{"1366531114":["hashtag1","hashtag2"]},{"1366531095":["hashtag1","hashtag2"]},{"1366531108":["hashtag1","hashtag2"]},{"1366531122":["hashtag1","hashtag2"]},{"1366531101":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366531120, 1366531114, 1366531095, 1366531108, 1366531122, 1366531101)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 67.79858469963074 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:53:32.041712
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/53/image_16062025_10_53_45_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/10/53/image_16062025_10_53_35_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/10/53/image_16062025_10_53_24_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/10/53/image_16062025_10_53_15_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/10/52/image_16062025_10_53_05_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/10/52/image_16062025_10_52_55_9599.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/53/image_16062025_10_53_45_9619.jpg', '/home/nano/Desktop/images/16062025/10/53/image_16062025_10_53_35_10616.jpg', '/home/nano/Desktop/images/16062025/10/53/image_16062025_10_53_24_9609.jpg', '/home/nano/Desktop/images/16062025/10/53/image_16062025_10_53_15_9613.jpg', '/home/nano/Desktop/images/16062025/10/52/image_16062025_10_53_05_10624.jpg', '/home/nano/Desktop/images/16062025/10/52/image_16062025_10_52_55_9599.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/53/image_16062025_10_53_45_9619.jpg
/home/nano/Desktop/images/16062025/10/53/image_16062025_10_53_35_10616.jpg
/home/nano/Desktop/images/16062025/10/53/image_16062025_10_53_24_9609.jpg
/home/nano/Desktop/images/16062025/10/53/image_16062025_10_53_15_9613.jpg
/home/nano/Desktop/images/16062025/10/52/image_16062025_10_53_05_10624.jpg
/home/nano/Desktop/images/16062025/10/52/image_16062025_10_52_55_9599.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366531145","1366531139","1366531159","1366531150","1366531156","1366531163"],"photo_ids_order":["1366531139","1366531145","1366531150","1366531156","1366531159","1366531163"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7d9a73ae08049fa68120c43381f823fd.jpg","text":"TemporaryFile(/tmp/multipartBody6396903760062912570asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064074731,"filename":"image_16062025_10_53_35_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6e5a527af8c0a4dca3460a4e8fb31904.jpg","text":"TemporaryFile(/tmp/multipartBody4174338544634137427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064074731,"filename":"image_16062025_10_53_45_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e0dd44763156b0e04f0de72d21501538.jpg","text":"TemporaryFile(/tmp/multipartBody5026172383184843883asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064074731,"filename":"image_16062025_10_53_05_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/48d12a556bbc19a3a7ea9c717883098e.jpg","text":"TemporaryFile(/tmp/multipartBody4783217465350173788asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064074731,"filename":"image_16062025_10_53_24_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/68ccefb807ebf511956d14c02fdb62f2.jpg","text":"TemporaryFile(/tmp/multipartBody6117334467073288287asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064074731,"filename":"image_16062025_10_53_15_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7f06825bed354aafcf0a94e35d321461.jpg","text":"TemporaryFile(/tmp/multipartBody1146523699126553685asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064074731,"filename":"image_16062025_10_52_55_9599.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366531150","file1":"1366531145","file0":"1366531139","file4":"1366531159","file5":"1366531163","file3":"1366531156"},"map_files_photo_id_array":[{"photo_id":"1366531163","filename":"file5"},{"photo_id":"1366531150","filename":"file2"},{"photo_id":"1366531159","filename":"file4"},{"photo_id":"1366531145","filename":"file1"},{"photo_id":"1366531139","filename":"file0"},{"photo_id":"1366531156","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366531145":["hashtag1","hashtag2"]},{"1366531139":["hashtag1","hashtag2"]},{"1366531159":["hashtag1","hashtag2"]},{"1366531150":["hashtag1","hashtag2"]},{"1366531156":["hashtag1","hashtag2"]},{"1366531163":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366531145, 1366531139, 1366531159, 1366531150, 1366531156, 1366531163)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 52.85434532165527 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:54:32.122135
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/54/image_16062025_10_54_45_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/10/54/image_16062025_10_54_35_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/10/54/image_16062025_10_54_25_10615.jpg', 2), ('/home/nano/Desktop/images/16062025/10/54/image_16062025_10_54_14_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/10/53/image_16062025_10_54_05_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/10/53/image_16062025_10_53_55_10622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/54/image_16062025_10_54_45_10609.jpg', '/home/nano/Desktop/images/16062025/10/54/image_16062025_10_54_35_9612.jpg', '/home/nano/Desktop/images/16062025/10/54/image_16062025_10_54_25_10615.jpg', '/home/nano/Desktop/images/16062025/10/54/image_16062025_10_54_14_9628.jpg', '/home/nano/Desktop/images/16062025/10/53/image_16062025_10_54_05_9613.jpg', '/home/nano/Desktop/images/16062025/10/53/image_16062025_10_53_55_10622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/54/image_16062025_10_54_45_10609.jpg
/home/nano/Desktop/images/16062025/10/54/image_16062025_10_54_35_9612.jpg
/home/nano/Desktop/images/16062025/10/54/image_16062025_10_54_25_10615.jpg
/home/nano/Desktop/images/16062025/10/54/image_16062025_10_54_14_9628.jpg
/home/nano/Desktop/images/16062025/10/53/image_16062025_10_54_05_9613.jpg
/home/nano/Desktop/images/16062025/10/53/image_16062025_10_53_55_10622.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366531177","1366531173","1366531182","1366531199","1366531193","1366531187"],"photo_ids_order":["1366531173","1366531177","1366531182","1366531187","1366531193","1366531199"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/24144500e7d05b02273afaedaded08a6.jpg","text":"TemporaryFile(/tmp/multipartBody4801204127241776946asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064135107,"filename":"image_16062025_10_54_35_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e219a76f73e313117e3e96aa0cf6ad2e.jpg","text":"TemporaryFile(/tmp/multipartBody2088543953117855390asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064135107,"filename":"image_16062025_10_54_45_10609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cf879e1d56be4a6a5eb06af0797cba24.jpg","text":"TemporaryFile(/tmp/multipartBody7251436663979613059asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064135107,"filename":"image_16062025_10_54_25_10615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3ab904a53fadcd2603c39a9824384997.jpg","text":"TemporaryFile(/tmp/multipartBody6990171384801536011asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064135107,"filename":"image_16062025_10_53_55_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ce0af166de99776752a10ed58b0422ca.jpg","text":"TemporaryFile(/tmp/multipartBody1605544543766768560asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064135107,"filename":"image_16062025_10_54_05_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3b43fbf04e7226ceb2859d9ce438a3f0.jpg","text":"TemporaryFile(/tmp/multipartBody7086597321708098404asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064135107,"filename":"image_16062025_10_54_14_9628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366531182","file1":"1366531177","file0":"1366531173","file4":"1366531193","file5":"1366531199","file3":"1366531187"},"map_files_photo_id_array":[{"photo_id":"1366531199","filename":"file5"},{"photo_id":"1366531182","filename":"file2"},{"photo_id":"1366531193","filename":"file4"},{"photo_id":"1366531177","filename":"file1"},{"photo_id":"1366531173","filename":"file0"},{"photo_id":"1366531187","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366531177":["hashtag1","hashtag2"]},{"1366531173":["hashtag1","hashtag2"]},{"1366531182":["hashtag1","hashtag2"]},{"1366531199":["hashtag1","hashtag2"]},{"1366531193":["hashtag1","hashtag2"]},{"1366531187":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366531177, 1366531173, 1366531182, 1366531199, 1366531193, 1366531187)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 65.0033495426178 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:55:47.223686
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/55/image_16062025_10_55_55_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/10/55/image_16062025_10_55_34_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/10/55/image_16062025_10_55_25_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/10/54/image_16062025_10_54_55_9606.jpg', 2), ('/home/nano/Desktop/images/16062025/10/51/image_16062025_10_51_45_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/10/51/image_16062025_10_51_35_9613.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/55/image_16062025_10_55_55_9609.jpg', '/home/nano/Desktop/images/16062025/10/55/image_16062025_10_55_34_9614.jpg', '/home/nano/Desktop/images/16062025/10/55/image_16062025_10_55_25_9613.jpg', '/home/nano/Desktop/images/16062025/10/54/image_16062025_10_54_55_9606.jpg', '/home/nano/Desktop/images/16062025/10/51/image_16062025_10_51_45_10616.jpg', '/home/nano/Desktop/images/16062025/10/51/image_16062025_10_51_35_9613.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/55/image_16062025_10_55_55_9609.jpg
/home/nano/Desktop/images/16062025/10/55/image_16062025_10_55_34_9614.jpg
/home/nano/Desktop/images/16062025/10/55/image_16062025_10_55_25_9613.jpg
/home/nano/Desktop/images/16062025/10/54/image_16062025_10_54_55_9606.jpg
/home/nano/Desktop/images/16062025/10/51/image_16062025_10_51_45_10616.jpg
/home/nano/Desktop/images/16062025/10/51/image_16062025_10_51_35_9613.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366531238","1366531217","1366531304","1366531214","1366531422","1366531358"],"photo_ids_order":["1366531214","1366531217","1366531238","1366531304","1366531358","1366531422"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b6b195fb5bb336975103131906187e63.jpg","text":"TemporaryFile(/tmp/multipartBody4167071870541446143asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064211178,"filename":"image_16062025_10_55_25_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9e397c6ede19526377df5265f29ce3aa.jpg","text":"TemporaryFile(/tmp/multipartBody101675891253021802asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064211178,"filename":"image_16062025_10_55_34_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a5a86b2853c1173c9845d7cc832178fe.jpg","text":"TemporaryFile(/tmp/multipartBody5200625709244577733asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064211178,"filename":"image_16062025_10_54_55_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/09d6327e62da2673af96a6778393ab9a.jpg","text":"TemporaryFile(/tmp/multipartBody2348996362780586323asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064211178,"filename":"image_16062025_10_55_55_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f0c470e695970f3601743ba203b65f29.jpg","text":"TemporaryFile(/tmp/multipartBody7264029784153374599asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064211178,"filename":"image_16062025_10_51_35_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/312bc67481ada77b674e163a99cac1c5.jpg","text":"TemporaryFile(/tmp/multipartBody3490222417209352414asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064211178,"filename":"image_16062025_10_51_45_10616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366531238","file1":"1366531217","file0":"1366531214","file4":"1366531358","file5":"1366531422","file3":"1366531304"},"map_files_photo_id_array":[{"photo_id":"1366531422","filename":"file5"},{"photo_id":"1366531238","filename":"file2"},{"photo_id":"1366531358","filename":"file4"},{"photo_id":"1366531217","filename":"file1"},{"photo_id":"1366531214","filename":"file0"},{"photo_id":"1366531304","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366531238":["hashtag1","hashtag2"]},{"1366531217":["hashtag1","hashtag2"]},{"1366531304":["hashtag1","hashtag2"]},{"1366531214":["hashtag1","hashtag2"]},{"1366531422":["hashtag1","hashtag2"]},{"1366531358":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366531238, 1366531217, 1366531304, 1366531214, 1366531422, 1366531358)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 74.47190141677856 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:57:02.919333
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/56/image_16062025_10_56_45_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/10/56/image_16062025_10_56_35_10615.jpg', 2), ('/home/nano/Desktop/images/16062025/10/56/image_16062025_10_56_25_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/10/56/image_16062025_10_56_15_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/10/55/image_16062025_10_56_05_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/10/55/image_16062025_10_55_45_10640.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/56/image_16062025_10_56_45_9601.jpg', '/home/nano/Desktop/images/16062025/10/56/image_16062025_10_56_35_10615.jpg', '/home/nano/Desktop/images/16062025/10/56/image_16062025_10_56_25_9607.jpg', '/home/nano/Desktop/images/16062025/10/56/image_16062025_10_56_15_9613.jpg', '/home/nano/Desktop/images/16062025/10/55/image_16062025_10_56_05_10631.jpg', '/home/nano/Desktop/images/16062025/10/55/image_16062025_10_55_45_10640.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/56/image_16062025_10_56_45_9601.jpg
/home/nano/Desktop/images/16062025/10/56/image_16062025_10_56_35_10615.jpg
/home/nano/Desktop/images/16062025/10/56/image_16062025_10_56_25_9607.jpg
/home/nano/Desktop/images/16062025/10/56/image_16062025_10_56_15_9613.jpg
/home/nano/Desktop/images/16062025/10/55/image_16062025_10_56_05_10631.jpg
/home/nano/Desktop/images/16062025/10/55/image_16062025_10_55_45_10640.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:58:03.168905
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/57/image_16062025_10_57_45_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/10/57/image_16062025_10_57_35_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/10/57/image_16062025_10_57_24_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/10/57/image_16062025_10_57_15_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/10/56/image_16062025_10_57_05_10712.jpg', 2), ('/home/nano/Desktop/images/16062025/10/56/image_16062025_10_56_54_9690.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/57/image_16062025_10_57_45_9602.jpg', '/home/nano/Desktop/images/16062025/10/57/image_16062025_10_57_35_10626.jpg', '/home/nano/Desktop/images/16062025/10/57/image_16062025_10_57_24_9607.jpg', '/home/nano/Desktop/images/16062025/10/57/image_16062025_10_57_15_9617.jpg', '/home/nano/Desktop/images/16062025/10/56/image_16062025_10_57_05_10712.jpg', '/home/nano/Desktop/images/16062025/10/56/image_16062025_10_56_54_9690.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/57/image_16062025_10_57_45_9602.jpg
/home/nano/Desktop/images/16062025/10/57/image_16062025_10_57_35_10626.jpg
/home/nano/Desktop/images/16062025/10/57/image_16062025_10_57_24_9607.jpg
/home/nano/Desktop/images/16062025/10/57/image_16062025_10_57_15_9617.jpg
/home/nano/Desktop/images/16062025/10/56/image_16062025_10_57_05_10712.jpg
/home/nano/Desktop/images/16062025/10/56/image_16062025_10_56_54_9690.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366531597","1366531603","1366531606","1366531609","1366531599","1366531610"],"photo_ids_order":["1366531597","1366531599","1366531603","1366531606","1366531609","1366531610"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/03730e48cf40f1bd3a4f797e0519ccc2.jpg","text":"TemporaryFile(/tmp/multipartBody1587127752507315083asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064345853,"filename":"image_16062025_10_57_45_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/df6376d0ded21ddf7b52e68c63822c62.jpg","text":"TemporaryFile(/tmp/multipartBody8116097492952268719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064345853,"filename":"image_16062025_10_57_24_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/82829fb72857ae76dbcfad11af7ab961.jpg","text":"TemporaryFile(/tmp/multipartBody4486196542601706693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064345853,"filename":"image_16062025_10_57_15_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2920e706b230cc8b86424e968287c5bf.jpg","text":"TemporaryFile(/tmp/multipartBody851798103021275405asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064345853,"filename":"image_16062025_10_57_05_10712.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6dfbb89b8b7965b7672aefae6ff7e3eb.jpg","text":"TemporaryFile(/tmp/multipartBody2632904712719920550asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064345853,"filename":"image_16062025_10_57_35_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/50c766d8a424bdf880b5d8e89e30cfbd.jpg","text":"TemporaryFile(/tmp/multipartBody3763566620515522348asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064345853,"filename":"image_16062025_10_56_54_9690.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366531603","file1":"1366531599","file0":"1366531597","file4":"1366531609","file5":"1366531610","file3":"1366531606"},"map_files_photo_id_array":[{"photo_id":"1366531610","filename":"file5"},{"photo_id":"1366531603","filename":"file2"},{"photo_id":"1366531609","filename":"file4"},{"photo_id":"1366531599","filename":"file1"},{"photo_id":"1366531597","filename":"file0"},{"photo_id":"1366531606","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366531597":["hashtag1","hashtag2"]},{"1366531603":["hashtag1","hashtag2"]},{"1366531606":["hashtag1","hashtag2"]},{"1366531609":["hashtag1","hashtag2"]},{"1366531599":["hashtag1","hashtag2"]},{"1366531610":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366531597, 1366531603, 1366531606, 1366531609, 1366531599, 1366531610)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 54.04457902908325 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 10:59:03.548178
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/10/58/image_16062025_10_58_44_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/10/58/image_16062025_10_58_35_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/10/58/image_16062025_10_58_25_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/10/58/image_16062025_10_58_15_9689.jpg', 2), ('/home/nano/Desktop/images/16062025/10/57/image_16062025_10_58_05_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/10/57/image_16062025_10_57_55_10627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/10/58/image_16062025_10_58_44_9647.jpg', '/home/nano/Desktop/images/16062025/10/58/image_16062025_10_58_35_9624.jpg', '/home/nano/Desktop/images/16062025/10/58/image_16062025_10_58_25_10635.jpg', '/home/nano/Desktop/images/16062025/10/58/image_16062025_10_58_15_9689.jpg', '/home/nano/Desktop/images/16062025/10/57/image_16062025_10_58_05_9616.jpg', '/home/nano/Desktop/images/16062025/10/57/image_16062025_10_57_55_10627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/10/58/image_16062025_10_58_44_9647.jpg
/home/nano/Desktop/images/16062025/10/58/image_16062025_10_58_35_9624.jpg
/home/nano/Desktop/images/16062025/10/58/image_16062025_10_58_25_10635.jpg
/home/nano/Desktop/images/16062025/10/58/image_16062025_10_58_15_9689.jpg
/home/nano/Desktop/images/16062025/10/57/image_16062025_10_58_05_9616.jpg
/home/nano/Desktop/images/16062025/10/57/image_16062025_10_57_55_10627.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366531700","1366531765","1366531612","1366531635","1366531655","1366531670"],"photo_ids_order":["1366531612","1366531635","1366531655","1366531670","1366531700","1366531765"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/55c0c312b7a4994da7524eaef2489360.jpg","text":"TemporaryFile(/tmp/multipartBody5693750439274839576asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064422118,"filename":"image_16062025_10_58_05_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/093b175f850c7fbe3b9ed1cdad4d8f79.jpg","text":"TemporaryFile(/tmp/multipartBody1691358730397279654asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064422118,"filename":"image_16062025_10_57_55_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/781a7b8d3ef769f2ee25fb98e3224569.jpg","text":"TemporaryFile(/tmp/multipartBody6077611111741129800asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064422118,"filename":"image_16062025_10_58_44_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8b93c5dd89095df5502ae0cf523e507f.jpg","text":"TemporaryFile(/tmp/multipartBody7727938069041719013asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064422118,"filename":"image_16062025_10_58_35_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0e9f635e21166a3a98794efb85431974.jpg","text":"TemporaryFile(/tmp/multipartBody4948182864296625964asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064422118,"filename":"image_16062025_10_58_25_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/784a04d8586f9be3e5e68e6e1902a9a7.jpg","text":"TemporaryFile(/tmp/multipartBody4939043915449773683asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064422118,"filename":"image_16062025_10_58_15_9689.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366531655","file1":"1366531635","file0":"1366531612","file4":"1366531700","file5":"1366531765","file3":"1366531670"},"map_files_photo_id_array":[{"photo_id":"1366531765","filename":"file5"},{"photo_id":"1366531655","filename":"file2"},{"photo_id":"1366531700","filename":"file4"},{"photo_id":"1366531635","filename":"file1"},{"photo_id":"1366531612","filename":"file0"},{"photo_id":"1366531670","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366531700":["hashtag1","hashtag2"]},{"1366531765":["hashtag1","hashtag2"]},{"1366531612":["hashtag1","hashtag2"]},{"1366531635":["hashtag1","hashtag2"]},{"1366531655":["hashtag1","hashtag2"]},{"1366531670":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366531700, 1366531765, 1366531612, 1366531635, 1366531655, 1366531670)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 132.06651163101196 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:01:16.756869
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/01/image_16062025_11_01_45_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/11/01/image_16062025_11_01_35_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/11/01/image_16062025_11_01_24_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/11/01/image_16062025_11_01_15_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/11/00/image_16062025_11_01_05_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/11/00/image_16062025_11_00_55_9617.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/01/image_16062025_11_01_45_9610.jpg', '/home/nano/Desktop/images/16062025/11/01/image_16062025_11_01_35_10636.jpg', '/home/nano/Desktop/images/16062025/11/01/image_16062025_11_01_24_9609.jpg', '/home/nano/Desktop/images/16062025/11/01/image_16062025_11_01_15_9630.jpg', '/home/nano/Desktop/images/16062025/11/00/image_16062025_11_01_05_10640.jpg', '/home/nano/Desktop/images/16062025/11/00/image_16062025_11_00_55_9617.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/01/image_16062025_11_01_45_9610.jpg
/home/nano/Desktop/images/16062025/11/01/image_16062025_11_01_35_10636.jpg
/home/nano/Desktop/images/16062025/11/01/image_16062025_11_01_24_9609.jpg
/home/nano/Desktop/images/16062025/11/01/image_16062025_11_01_15_9630.jpg
/home/nano/Desktop/images/16062025/11/00/image_16062025_11_01_05_10640.jpg
/home/nano/Desktop/images/16062025/11/00/image_16062025_11_00_55_9617.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366531907","1366531901","1366531837","1366531896","1366531857","1366531914"],"photo_ids_order":["1366531837","1366531857","1366531896","1366531901","1366531907","1366531914"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1a071510eb79fa208aa1498f2db9cc6c.jpg","text":"TemporaryFile(/tmp/multipartBody1302774036862927894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064539285,"filename":"image_16062025_11_01_05_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ba7cdb8bda38c5e37c2e1cc51058d38d.jpg","text":"TemporaryFile(/tmp/multipartBody4978299349987963378asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064539285,"filename":"image_16062025_11_01_15_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2b135d3026440f41f29de9beb60a617a.jpg","text":"TemporaryFile(/tmp/multipartBody6023607811796282187asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064539285,"filename":"image_16062025_11_01_45_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8e75a5604b072e806adb9cf75de64b85.jpg","text":"TemporaryFile(/tmp/multipartBody1843888803208098281asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064539285,"filename":"image_16062025_11_01_24_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/126714f1dce6d12561f0b60250760b96.jpg","text":"TemporaryFile(/tmp/multipartBody4468194561614797679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064539285,"filename":"image_16062025_11_01_35_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/05d659f81d35049a8233c6ade8382b89.jpg","text":"TemporaryFile(/tmp/multipartBody7567661647287729888asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064539285,"filename":"image_16062025_11_00_55_9617.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366531896","file1":"1366531857","file0":"1366531837","file4":"1366531907","file5":"1366531914","file3":"1366531901"},"map_files_photo_id_array":[{"photo_id":"1366531914","filename":"file5"},{"photo_id":"1366531896","filename":"file2"},{"photo_id":"1366531907","filename":"file4"},{"photo_id":"1366531857","filename":"file1"},{"photo_id":"1366531837","filename":"file0"},{"photo_id":"1366531901","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366531907":["hashtag1","hashtag2"]},{"1366531901":["hashtag1","hashtag2"]},{"1366531837":["hashtag1","hashtag2"]},{"1366531896":["hashtag1","hashtag2"]},{"1366531857":["hashtag1","hashtag2"]},{"1366531914":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366531907, 1366531901, 1366531837, 1366531896, 1366531857, 1366531914)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 68.79481363296509 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:02:32.043724
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/02/image_16062025_11_02_44_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/11/02/image_16062025_11_02_35_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/11/02/image_16062025_11_02_25_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/11/02/image_16062025_11_02_15_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/11/01/image_16062025_11_02_05_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/11/01/image_16062025_11_01_55_10623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/02/image_16062025_11_02_44_9613.jpg', '/home/nano/Desktop/images/16062025/11/02/image_16062025_11_02_35_9616.jpg', '/home/nano/Desktop/images/16062025/11/02/image_16062025_11_02_25_10624.jpg', '/home/nano/Desktop/images/16062025/11/02/image_16062025_11_02_15_9630.jpg', '/home/nano/Desktop/images/16062025/11/01/image_16062025_11_02_05_9651.jpg', '/home/nano/Desktop/images/16062025/11/01/image_16062025_11_01_55_10623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/02/image_16062025_11_02_44_9613.jpg
/home/nano/Desktop/images/16062025/11/02/image_16062025_11_02_35_9616.jpg
/home/nano/Desktop/images/16062025/11/02/image_16062025_11_02_25_10624.jpg
/home/nano/Desktop/images/16062025/11/02/image_16062025_11_02_15_9630.jpg
/home/nano/Desktop/images/16062025/11/01/image_16062025_11_02_05_9651.jpg
/home/nano/Desktop/images/16062025/11/01/image_16062025_11_01_55_10623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366531931","1366531939","1366531942","1366531959","1366531949","1366531934"],"photo_ids_order":["1366531931","1366531934","1366531939","1366531942","1366531949","1366531959"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6186b6136e84f1612b1fbd97a03a1512.jpg","text":"TemporaryFile(/tmp/multipartBody848108028823743856asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064614516,"filename":"image_16062025_11_02_44_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dcd1136952f81561d7a2a66bdae98cc0.jpg","text":"TemporaryFile(/tmp/multipartBody3524780875478320460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064614516,"filename":"image_16062025_11_02_25_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4f53815f6e66d221f1a29284df19bfcc.jpg","text":"TemporaryFile(/tmp/multipartBody1355202548500639405asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064614516,"filename":"image_16062025_11_02_15_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5006376e1cc083dce9f9cbb21bb87755.jpg","text":"TemporaryFile(/tmp/multipartBody8020111219321194276asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064614516,"filename":"image_16062025_11_01_55_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8a90c4909fa17ebbfb9d84f42fea0ce3.jpg","text":"TemporaryFile(/tmp/multipartBody2954093222636816779asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064614516,"filename":"image_16062025_11_02_05_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/aae6ee909fb53d00ff83caabbd129893.jpg","text":"TemporaryFile(/tmp/multipartBody4964050001212923512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064614516,"filename":"image_16062025_11_02_35_9616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366531939","file1":"1366531934","file0":"1366531931","file4":"1366531949","file5":"1366531959","file3":"1366531942"},"map_files_photo_id_array":[{"photo_id":"1366531959","filename":"file5"},{"photo_id":"1366531939","filename":"file2"},{"photo_id":"1366531949","filename":"file4"},{"photo_id":"1366531934","filename":"file1"},{"photo_id":"1366531931","filename":"file0"},{"photo_id":"1366531942","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366531931":["hashtag1","hashtag2"]},{"1366531939":["hashtag1","hashtag2"]},{"1366531942":["hashtag1","hashtag2"]},{"1366531959":["hashtag1","hashtag2"]},{"1366531949":["hashtag1","hashtag2"]},{"1366531934":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366531931, 1366531939, 1366531942, 1366531959, 1366531949, 1366531934)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 59.70532989501953 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:03:47.022987
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/03/image_16062025_11_03_45_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/11/03/image_16062025_11_03_35_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/11/03/image_16062025_11_03_25_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/11/03/image_16062025_11_03_15_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/11/02/image_16062025_11_03_05_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/11/02/image_16062025_11_02_55_10619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/03/image_16062025_11_03_45_10621.jpg', '/home/nano/Desktop/images/16062025/11/03/image_16062025_11_03_35_9630.jpg', '/home/nano/Desktop/images/16062025/11/03/image_16062025_11_03_25_9616.jpg', '/home/nano/Desktop/images/16062025/11/03/image_16062025_11_03_15_10627.jpg', '/home/nano/Desktop/images/16062025/11/02/image_16062025_11_03_05_9647.jpg', '/home/nano/Desktop/images/16062025/11/02/image_16062025_11_02_55_10619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/03/image_16062025_11_03_45_10621.jpg
/home/nano/Desktop/images/16062025/11/03/image_16062025_11_03_35_9630.jpg
/home/nano/Desktop/images/16062025/11/03/image_16062025_11_03_25_9616.jpg
/home/nano/Desktop/images/16062025/11/03/image_16062025_11_03_15_10627.jpg
/home/nano/Desktop/images/16062025/11/02/image_16062025_11_03_05_9647.jpg
/home/nano/Desktop/images/16062025/11/02/image_16062025_11_02_55_10619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366531993","1366531978","1366531987","1366532002","1366531983","1366531997"],"photo_ids_order":["1366531978","1366531983","1366531987","1366531993","1366531997","1366532002"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6dde0abfec56c66a23ac163b7f13afa5.jpg","text":"TemporaryFile(/tmp/multipartBody335399321032644530asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064689511,"filename":"image_16062025_11_03_15_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/be3a44c98e2335754ef107fbb892778b.jpg","text":"TemporaryFile(/tmp/multipartBody7872442181259539207asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064689511,"filename":"image_16062025_11_03_45_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7ba9f4158466083973474e8c014d6f43.jpg","text":"TemporaryFile(/tmp/multipartBody2337275891521470132asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064689511,"filename":"image_16062025_11_03_25_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7830d4eb2afdeaf45cfad659ef0c5f31.jpg","text":"TemporaryFile(/tmp/multipartBody1777252847121448155asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064689511,"filename":"image_16062025_11_02_55_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3897ed4ec3966f40fea834350d654d59.jpg","text":"TemporaryFile(/tmp/multipartBody7673134136246914983asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064689511,"filename":"image_16062025_11_03_35_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dc43b2b20dd0c9850df3ff96511ba6b6.jpg","text":"TemporaryFile(/tmp/multipartBody7771758196765933077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064689511,"filename":"image_16062025_11_03_05_9647.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366531987","file1":"1366531983","file0":"1366531978","file4":"1366531997","file5":"1366532002","file3":"1366531993"},"map_files_photo_id_array":[{"photo_id":"1366532002","filename":"file5"},{"photo_id":"1366531987","filename":"file2"},{"photo_id":"1366531997","filename":"file4"},{"photo_id":"1366531983","filename":"file1"},{"photo_id":"1366531978","filename":"file0"},{"photo_id":"1366531993","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366531993":["hashtag1","hashtag2"]},{"1366531978":["hashtag1","hashtag2"]},{"1366531987":["hashtag1","hashtag2"]},{"1366532002":["hashtag1","hashtag2"]},{"1366531983":["hashtag1","hashtag2"]},{"1366531997":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366531993, 1366531978, 1366531987, 1366532002, 1366531983, 1366531997)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 74.34779191017151 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:05:02.806418
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/04/image_16062025_11_04_45_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/11/04/image_16062025_11_04_35_10620.jpg', 2), ('/home/nano/Desktop/images/16062025/11/04/image_16062025_11_04_25_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/11/04/image_16062025_11_04_15_10663.jpg', 2), ('/home/nano/Desktop/images/16062025/11/03/image_16062025_11_04_04_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/11/03/image_16062025_11_03_55_9613.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/04/image_16062025_11_04_45_9626.jpg', '/home/nano/Desktop/images/16062025/11/04/image_16062025_11_04_35_10620.jpg', '/home/nano/Desktop/images/16062025/11/04/image_16062025_11_04_25_9613.jpg', '/home/nano/Desktop/images/16062025/11/04/image_16062025_11_04_15_10663.jpg', '/home/nano/Desktop/images/16062025/11/03/image_16062025_11_04_04_9602.jpg', '/home/nano/Desktop/images/16062025/11/03/image_16062025_11_03_55_9613.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/04/image_16062025_11_04_45_9626.jpg
/home/nano/Desktop/images/16062025/11/04/image_16062025_11_04_35_10620.jpg
/home/nano/Desktop/images/16062025/11/04/image_16062025_11_04_25_9613.jpg
/home/nano/Desktop/images/16062025/11/04/image_16062025_11_04_15_10663.jpg
/home/nano/Desktop/images/16062025/11/03/image_16062025_11_04_04_9602.jpg
/home/nano/Desktop/images/16062025/11/03/image_16062025_11_03_55_9613.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366532134","1366532023","1366532017","1366532034","1366532030","1366532012"],"photo_ids_order":["1366532012","1366532017","1366532023","1366532030","1366532034","1366532134"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1297075bf04efa1445677a75fc99d425.jpg","text":"TemporaryFile(/tmp/multipartBody1623370229311169958asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064768643,"filename":"image_16062025_11_03_55_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7350bb12ea765366405ec55489d3fab5.jpg","text":"TemporaryFile(/tmp/multipartBody5319024043209056281asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064768643,"filename":"image_16062025_11_04_25_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/06d071d0c95623dd772b4154f2a3bcea.jpg","text":"TemporaryFile(/tmp/multipartBody173067026639496726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064768643,"filename":"image_16062025_11_04_35_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/63b2debd9b864189a88bee75d243ca23.jpg","text":"TemporaryFile(/tmp/multipartBody1105255112360565608asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064768643,"filename":"image_16062025_11_04_04_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a34558b743743619bf0ce72a8523a483.jpg","text":"TemporaryFile(/tmp/multipartBody7167162859718571064asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064768643,"filename":"image_16062025_11_04_15_10663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c8cb8019a6c99186ebef2285a3ca55ea.jpg","text":"TemporaryFile(/tmp/multipartBody2634288503051010552asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064768643,"filename":"image_16062025_11_04_45_9626.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366532023","file1":"1366532017","file0":"1366532012","file4":"1366532034","file5":"1366532134","file3":"1366532030"},"map_files_photo_id_array":[{"photo_id":"1366532134","filename":"file5"},{"photo_id":"1366532023","filename":"file2"},{"photo_id":"1366532034","filename":"file4"},{"photo_id":"1366532017","filename":"file1"},{"photo_id":"1366532012","filename":"file0"},{"photo_id":"1366532030","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366532134":["hashtag1","hashtag2"]},{"1366532023":["hashtag1","hashtag2"]},{"1366532017":["hashtag1","hashtag2"]},{"1366532034":["hashtag1","hashtag2"]},{"1366532030":["hashtag1","hashtag2"]},{"1366532012":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366532134, 1366532023, 1366532017, 1366532034, 1366532030, 1366532012)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 75.713858127594 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:06:32.395435
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/06/image_16062025_11_06_45_10603.jpg', 2), ('/home/nano/Desktop/images/16062025/11/06/image_16062025_11_06_35_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/11/06/image_16062025_11_06_25_10614.jpg', 2), ('/home/nano/Desktop/images/16062025/11/06/image_16062025_11_06_14_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/11/05/image_16062025_11_06_05_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/11/05/image_16062025_11_05_55_10610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/06/image_16062025_11_06_45_10603.jpg', '/home/nano/Desktop/images/16062025/11/06/image_16062025_11_06_35_9603.jpg', '/home/nano/Desktop/images/16062025/11/06/image_16062025_11_06_25_10614.jpg', '/home/nano/Desktop/images/16062025/11/06/image_16062025_11_06_14_9636.jpg', '/home/nano/Desktop/images/16062025/11/05/image_16062025_11_06_05_9617.jpg', '/home/nano/Desktop/images/16062025/11/05/image_16062025_11_05_55_10610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/06/image_16062025_11_06_45_10603.jpg
/home/nano/Desktop/images/16062025/11/06/image_16062025_11_06_35_9603.jpg
/home/nano/Desktop/images/16062025/11/06/image_16062025_11_06_25_10614.jpg
/home/nano/Desktop/images/16062025/11/06/image_16062025_11_06_14_9636.jpg
/home/nano/Desktop/images/16062025/11/05/image_16062025_11_06_05_9617.jpg
/home/nano/Desktop/images/16062025/11/05/image_16062025_11_05_55_10610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366532281","1366532275","1366532286","1366532265","1366532289","1366532231"],"photo_ids_order":["1366532231","1366532265","1366532275","1366532281","1366532286","1366532289"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f1d2e7fef7045a445ae447e5a37a8c10.jpg","text":"TemporaryFile(/tmp/multipartBody340630728365805632asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064855466,"filename":"image_16062025_11_06_14_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/50ce0296e0655cb669f4b5c422a7389e.jpg","text":"TemporaryFile(/tmp/multipartBody3017206470452724625asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064855466,"filename":"image_16062025_11_06_25_10614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ba53a0a9d811f38256da0079250df797.jpg","text":"TemporaryFile(/tmp/multipartBody9046812133808402813asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064855466,"filename":"image_16062025_11_06_05_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fd5022618e451d85b53253dda6742629.jpg","text":"TemporaryFile(/tmp/multipartBody1744549978713281556asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064855466,"filename":"image_16062025_11_06_35_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4f13133a3e0c49fe97add047c194ff26.jpg","text":"TemporaryFile(/tmp/multipartBody1113386241190743884asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064855466,"filename":"image_16062025_11_05_55_10610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/63a3545bdec067ed1971d68e4fc73ca6.jpg","text":"TemporaryFile(/tmp/multipartBody1385366301459376050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064855466,"filename":"image_16062025_11_06_45_10603.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366532275","file1":"1366532265","file0":"1366532231","file4":"1366532286","file5":"1366532289","file3":"1366532281"},"map_files_photo_id_array":[{"photo_id":"1366532289","filename":"file5"},{"photo_id":"1366532275","filename":"file2"},{"photo_id":"1366532286","filename":"file4"},{"photo_id":"1366532265","filename":"file1"},{"photo_id":"1366532231","filename":"file0"},{"photo_id":"1366532281","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366532281":["hashtag1","hashtag2"]},{"1366532275":["hashtag1","hashtag2"]},{"1366532286":["hashtag1","hashtag2"]},{"1366532265":["hashtag1","hashtag2"]},{"1366532289":["hashtag1","hashtag2"]},{"1366532231":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366532281, 1366532275, 1366532286, 1366532265, 1366532289, 1366532231)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 96.9083001613617 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:08:17.557237
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/08/image_16062025_11_08_45_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/11/08/image_16062025_11_08_35_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/11/08/image_16062025_11_08_24_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/11/08/image_16062025_11_08_15_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/11/07/image_16062025_11_08_05_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/11/07/image_16062025_11_07_55_9594.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/08/image_16062025_11_08_45_9601.jpg', '/home/nano/Desktop/images/16062025/11/08/image_16062025_11_08_35_10613.jpg', '/home/nano/Desktop/images/16062025/11/08/image_16062025_11_08_24_9600.jpg', '/home/nano/Desktop/images/16062025/11/08/image_16062025_11_08_15_9612.jpg', '/home/nano/Desktop/images/16062025/11/07/image_16062025_11_08_05_10621.jpg', '/home/nano/Desktop/images/16062025/11/07/image_16062025_11_07_55_9594.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/08/image_16062025_11_08_45_9601.jpg
/home/nano/Desktop/images/16062025/11/08/image_16062025_11_08_35_10613.jpg
/home/nano/Desktop/images/16062025/11/08/image_16062025_11_08_24_9600.jpg
/home/nano/Desktop/images/16062025/11/08/image_16062025_11_08_15_9612.jpg
/home/nano/Desktop/images/16062025/11/07/image_16062025_11_08_05_10621.jpg
/home/nano/Desktop/images/16062025/11/07/image_16062025_11_07_55_9594.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366532332","1366532326","1366532311","1366532319","1366532307","1366532315"],"photo_ids_order":["1366532307","1366532311","1366532315","1366532319","1366532326","1366532332"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3a78b4476bf083185436b47ebb0fe8ff.jpg","text":"TemporaryFile(/tmp/multipartBody1116819732297536116asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064960959,"filename":"image_16062025_11_07_55_9594.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/38ae01d6788f7abc33668e178b38082c.jpg","text":"TemporaryFile(/tmp/multipartBody1048696311702375693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064960959,"filename":"image_16062025_11_08_05_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ea556992178fd9f95508a3360e6b64b1.jpg","text":"TemporaryFile(/tmp/multipartBody1243295397846324076asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064960959,"filename":"image_16062025_11_08_35_10613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9bda7d137e4a966dab36bb2d83c95a85.jpg","text":"TemporaryFile(/tmp/multipartBody3804107493580831129asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064960959,"filename":"image_16062025_11_08_15_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6c38174523381b3a99d557fc34bf4a58.jpg","text":"TemporaryFile(/tmp/multipartBody8872023272233137339asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064960959,"filename":"image_16062025_11_08_45_9601.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5bb738c2014afad046d6a441dc87f621.jpg","text":"TemporaryFile(/tmp/multipartBody5313252270618680829asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750064960959,"filename":"image_16062025_11_08_24_9600.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366532315","file1":"1366532311","file0":"1366532307","file4":"1366532326","file5":"1366532332","file3":"1366532319"},"map_files_photo_id_array":[{"photo_id":"1366532332","filename":"file5"},{"photo_id":"1366532315","filename":"file2"},{"photo_id":"1366532326","filename":"file4"},{"photo_id":"1366532311","filename":"file1"},{"photo_id":"1366532307","filename":"file0"},{"photo_id":"1366532319","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366532332":["hashtag1","hashtag2"]},{"1366532326":["hashtag1","hashtag2"]},{"1366532311":["hashtag1","hashtag2"]},{"1366532319":["hashtag1","hashtag2"]},{"1366532307":["hashtag1","hashtag2"]},{"1366532315":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366532332, 1366532326, 1366532311, 1366532319, 1366532307, 1366532315)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 71.77538657188416 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:09:32.674305
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/09/image_16062025_11_09_45_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/11/09/image_16062025_11_09_35_9598.jpg', 2), ('/home/nano/Desktop/images/16062025/11/09/image_16062025_11_09_25_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/11/09/image_16062025_11_09_14_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/11/08/image_16062025_11_09_05_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/11/08/image_16062025_11_08_55_10613.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/09/image_16062025_11_09_45_10609.jpg', '/home/nano/Desktop/images/16062025/11/09/image_16062025_11_09_35_9598.jpg', '/home/nano/Desktop/images/16062025/11/09/image_16062025_11_09_25_10618.jpg', '/home/nano/Desktop/images/16062025/11/09/image_16062025_11_09_14_9641.jpg', '/home/nano/Desktop/images/16062025/11/08/image_16062025_11_09_05_9607.jpg', '/home/nano/Desktop/images/16062025/11/08/image_16062025_11_08_55_10613.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/09/image_16062025_11_09_45_10609.jpg
/home/nano/Desktop/images/16062025/11/09/image_16062025_11_09_35_9598.jpg
/home/nano/Desktop/images/16062025/11/09/image_16062025_11_09_25_10618.jpg
/home/nano/Desktop/images/16062025/11/09/image_16062025_11_09_14_9641.jpg
/home/nano/Desktop/images/16062025/11/08/image_16062025_11_09_05_9607.jpg
/home/nano/Desktop/images/16062025/11/08/image_16062025_11_08_55_10613.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366532356","1366532359","1366532344","1366532352","1366532361","1366532348"],"photo_ids_order":["1366532344","1366532348","1366532352","1366532356","1366532359","1366532361"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/365600241a589203905e717b18e9670b.jpg","text":"TemporaryFile(/tmp/multipartBody6890488756709833428asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065035963,"filename":"image_16062025_11_09_14_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a1e032d02add21f23749d2586e094b49.jpg","text":"TemporaryFile(/tmp/multipartBody1821806923184113130asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065035963,"filename":"image_16062025_11_09_05_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/eef9e42d170ae5faf2ce4781f32c1654.jpg","text":"TemporaryFile(/tmp/multipartBody4029772723305277845asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065035963,"filename":"image_16062025_11_09_45_10609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a6d904213913dc072a1602134881d3a7.jpg","text":"TemporaryFile(/tmp/multipartBody7815333072871428953asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065035963,"filename":"image_16062025_11_09_25_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/430472d96162a3dd7d5f1611a625737d.jpg","text":"TemporaryFile(/tmp/multipartBody5211240017027334238asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065035963,"filename":"image_16062025_11_08_55_10613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e3ec333617d288f109bef74127db9bb6.jpg","text":"TemporaryFile(/tmp/multipartBody4109598267374415716asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065035963,"filename":"image_16062025_11_09_35_9598.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366532352","file1":"1366532348","file0":"1366532344","file4":"1366532359","file5":"1366532361","file3":"1366532356"},"map_files_photo_id_array":[{"photo_id":"1366532361","filename":"file5"},{"photo_id":"1366532352","filename":"file2"},{"photo_id":"1366532359","filename":"file4"},{"photo_id":"1366532348","filename":"file1"},{"photo_id":"1366532344","filename":"file0"},{"photo_id":"1366532356","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366532356":["hashtag1","hashtag2"]},{"1366532359":["hashtag1","hashtag2"]},{"1366532344":["hashtag1","hashtag2"]},{"1366532352":["hashtag1","hashtag2"]},{"1366532361":["hashtag1","hashtag2"]},{"1366532348":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366532356, 1366532359, 1366532344, 1366532352, 1366532361, 1366532348)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 58.61863350868225 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:10:46.782359
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/10/image_16062025_11_10_45_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/11/10/image_16062025_11_10_34_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/11/10/image_16062025_11_10_25_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/11/10/image_16062025_11_10_15_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/11/09/image_16062025_11_10_05_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/11/09/image_16062025_11_09_55_9609.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/10/image_16062025_11_10_45_10626.jpg', '/home/nano/Desktop/images/16062025/11/10/image_16062025_11_10_34_9623.jpg', '/home/nano/Desktop/images/16062025/11/10/image_16062025_11_10_25_9608.jpg', '/home/nano/Desktop/images/16062025/11/10/image_16062025_11_10_15_10653.jpg', '/home/nano/Desktop/images/16062025/11/09/image_16062025_11_10_05_9621.jpg', '/home/nano/Desktop/images/16062025/11/09/image_16062025_11_09_55_9609.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/10/image_16062025_11_10_45_10626.jpg
/home/nano/Desktop/images/16062025/11/10/image_16062025_11_10_34_9623.jpg
/home/nano/Desktop/images/16062025/11/10/image_16062025_11_10_25_9608.jpg
/home/nano/Desktop/images/16062025/11/10/image_16062025_11_10_15_10653.jpg
/home/nano/Desktop/images/16062025/11/09/image_16062025_11_10_05_9621.jpg
/home/nano/Desktop/images/16062025/11/09/image_16062025_11_09_55_9609.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366532380","1366532575","1366532538","1366532613","1366532396","1366532450"],"photo_ids_order":["1366532380","1366532396","1366532450","1366532538","1366532575","1366532613"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0b81b347d7684b641616c793c9a9dc4e.jpg","text":"TemporaryFile(/tmp/multipartBody2112539062786775091asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065111110,"filename":"image_16062025_11_10_45_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/11d96ba8f612421bdfe9df438c69e62d.jpg","text":"TemporaryFile(/tmp/multipartBody1302731394622227894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065111110,"filename":"image_16062025_11_10_05_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fed5071aba962a0027a2fb0206ebc187.jpg","text":"TemporaryFile(/tmp/multipartBody1625041842265372837asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065111110,"filename":"image_16062025_11_10_15_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b24bfdd16c3a9eca87364224aff7d74d.jpg","text":"TemporaryFile(/tmp/multipartBody3675165840687379261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065111110,"filename":"image_16062025_11_09_55_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c9264f376ae97873235def96da6b2649.jpg","text":"TemporaryFile(/tmp/multipartBody3966566591831883094asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065111110,"filename":"image_16062025_11_10_34_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/64a10d6901f96b1a17c59cc1eed43e2f.jpg","text":"TemporaryFile(/tmp/multipartBody2743021991001680410asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065111110,"filename":"image_16062025_11_10_25_9608.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366532450","file1":"1366532396","file0":"1366532380","file4":"1366532575","file5":"1366532613","file3":"1366532538"},"map_files_photo_id_array":[{"photo_id":"1366532613","filename":"file5"},{"photo_id":"1366532450","filename":"file2"},{"photo_id":"1366532575","filename":"file4"},{"photo_id":"1366532396","filename":"file1"},{"photo_id":"1366532380","filename":"file0"},{"photo_id":"1366532538","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366532380":["hashtag1","hashtag2"]},{"1366532575":["hashtag1","hashtag2"]},{"1366532538":["hashtag1","hashtag2"]},{"1366532613":["hashtag1","hashtag2"]},{"1366532396":["hashtag1","hashtag2"]},{"1366532450":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366532380, 1366532575, 1366532538, 1366532613, 1366532396, 1366532450)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 62.2760124206543 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:12:02.560530
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/11/image_16062025_11_11_45_9648.jpg', 2), ('/home/nano/Desktop/images/16062025/11/11/image_16062025_11_11_35_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/11/11/image_16062025_11_11_25_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/11/11/image_16062025_11_11_15_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/11/10/image_16062025_11_11_05_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/11/10/image_16062025_11_10_55_9653.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/11/image_16062025_11_11_45_9648.jpg', '/home/nano/Desktop/images/16062025/11/11/image_16062025_11_11_35_10652.jpg', '/home/nano/Desktop/images/16062025/11/11/image_16062025_11_11_25_9643.jpg', '/home/nano/Desktop/images/16062025/11/11/image_16062025_11_11_15_9631.jpg', '/home/nano/Desktop/images/16062025/11/10/image_16062025_11_11_05_10645.jpg', '/home/nano/Desktop/images/16062025/11/10/image_16062025_11_10_55_9653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/11/image_16062025_11_11_45_9648.jpg
/home/nano/Desktop/images/16062025/11/11/image_16062025_11_11_35_10652.jpg
/home/nano/Desktop/images/16062025/11/11/image_16062025_11_11_25_9643.jpg
/home/nano/Desktop/images/16062025/11/11/image_16062025_11_11_15_9631.jpg
/home/nano/Desktop/images/16062025/11/10/image_16062025_11_11_05_10645.jpg
/home/nano/Desktop/images/16062025/11/10/image_16062025_11_10_55_9653.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366532815","1366532798","1366532792","1366532819","1366532804","1366532807"],"photo_ids_order":["1366532792","1366532798","1366532804","1366532807","1366532815","1366532819"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e12fa983bcbd6e14f8814612f4ce7c92.jpg","text":"TemporaryFile(/tmp/multipartBody1185143523074261575asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065195207,"filename":"image_16062025_11_11_05_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b3502d2f161a329642c434403c267468.jpg","text":"TemporaryFile(/tmp/multipartBody511248633931607027asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065195207,"filename":"image_16062025_11_11_35_10652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8dd0773c8b8cd617d80091887a6fd3b3.jpg","text":"TemporaryFile(/tmp/multipartBody4543825025152943362asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065195207,"filename":"image_16062025_11_11_45_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/554b4773486b30aa926fed5faab00847.jpg","text":"TemporaryFile(/tmp/multipartBody4931059069573386914asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065195207,"filename":"image_16062025_11_10_55_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4f37a631af6d8632373af3164eb01766.jpg","text":"TemporaryFile(/tmp/multipartBody1462237741455999899asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065195207,"filename":"image_16062025_11_11_25_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8a7b9a664a7f12fce09fbb1dedb9682a.jpg","text":"TemporaryFile(/tmp/multipartBody5775208002997815928asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065195207,"filename":"image_16062025_11_11_15_9631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366532804","file1":"1366532798","file0":"1366532792","file4":"1366532815","file5":"1366532819","file3":"1366532807"},"map_files_photo_id_array":[{"photo_id":"1366532819","filename":"file5"},{"photo_id":"1366532804","filename":"file2"},{"photo_id":"1366532815","filename":"file4"},{"photo_id":"1366532798","filename":"file1"},{"photo_id":"1366532792","filename":"file0"},{"photo_id":"1366532807","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366532815":["hashtag1","hashtag2"]},{"1366532798":["hashtag1","hashtag2"]},{"1366532792":["hashtag1","hashtag2"]},{"1366532819":["hashtag1","hashtag2"]},{"1366532804":["hashtag1","hashtag2"]},{"1366532807":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366532815, 1366532798, 1366532792, 1366532819, 1366532804, 1366532807)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 71.92897772789001 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:13:17.204652
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/13/image_16062025_11_13_45_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/11/13/image_16062025_11_13_35_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/11/13/image_16062025_11_13_24_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/11/13/image_16062025_11_13_15_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/11/12/image_16062025_11_13_05_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/11/12/image_16062025_11_12_54_9649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/13/image_16062025_11_13_45_9620.jpg', '/home/nano/Desktop/images/16062025/11/13/image_16062025_11_13_35_10652.jpg', '/home/nano/Desktop/images/16062025/11/13/image_16062025_11_13_24_9631.jpg', '/home/nano/Desktop/images/16062025/11/13/image_16062025_11_13_15_9654.jpg', '/home/nano/Desktop/images/16062025/11/12/image_16062025_11_13_05_10641.jpg', '/home/nano/Desktop/images/16062025/11/12/image_16062025_11_12_54_9649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/13/image_16062025_11_13_45_9620.jpg
/home/nano/Desktop/images/16062025/11/13/image_16062025_11_13_35_10652.jpg
/home/nano/Desktop/images/16062025/11/13/image_16062025_11_13_24_9631.jpg
/home/nano/Desktop/images/16062025/11/13/image_16062025_11_13_15_9654.jpg
/home/nano/Desktop/images/16062025/11/12/image_16062025_11_13_05_10641.jpg
/home/nano/Desktop/images/16062025/11/12/image_16062025_11_12_54_9649.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366532835","1366532829","1366532850","1366532844","1366532838","1366532831"],"photo_ids_order":["1366532829","1366532831","1366532835","1366532838","1366532844","1366532850"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6b309bad62597714248c76fb9ba87829.jpg","text":"TemporaryFile(/tmp/multipartBody4093941506959540718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065261170,"filename":"image_16062025_11_13_24_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/579af1d6858c9d28cb0ea5c22f7a7084.jpg","text":"TemporaryFile(/tmp/multipartBody679897963947817826asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065261170,"filename":"image_16062025_11_13_45_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d28d23acd5f04eba0f8d8bb80e941117.jpg","text":"TemporaryFile(/tmp/multipartBody4792899296743488823asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065261170,"filename":"image_16062025_11_12_54_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fbc1c2602fe2d5b3836dc03646283fc1.jpg","text":"TemporaryFile(/tmp/multipartBody9140368519524311631asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065261170,"filename":"image_16062025_11_13_05_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/24a6dab5187296d3bb0dc7ed74b2e3d5.jpg","text":"TemporaryFile(/tmp/multipartBody2518356239953474743asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065261170,"filename":"image_16062025_11_13_15_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bb7db44d5f66a3806a12d9becc6deee2.jpg","text":"TemporaryFile(/tmp/multipartBody4103030861399228412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065261170,"filename":"image_16062025_11_13_35_10652.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366532835","file1":"1366532831","file0":"1366532829","file4":"1366532844","file5":"1366532850","file3":"1366532838"},"map_files_photo_id_array":[{"photo_id":"1366532850","filename":"file5"},{"photo_id":"1366532835","filename":"file2"},{"photo_id":"1366532844","filename":"file4"},{"photo_id":"1366532831","filename":"file1"},{"photo_id":"1366532829","filename":"file0"},{"photo_id":"1366532838","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366532835":["hashtag1","hashtag2"]},{"1366532829":["hashtag1","hashtag2"]},{"1366532850":["hashtag1","hashtag2"]},{"1366532844":["hashtag1","hashtag2"]},{"1366532838":["hashtag1","hashtag2"]},{"1366532831":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366532835, 1366532829, 1366532850, 1366532844, 1366532838, 1366532831)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 70.88251543045044 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:14:32.326196
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/14/image_16062025_11_14_45_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/11/14/image_16062025_11_14_35_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/11/14/image_16062025_11_14_25_10655.jpg', 2), ('/home/nano/Desktop/images/16062025/11/14/image_16062025_11_14_15_9662.jpg', 2), ('/home/nano/Desktop/images/16062025/11/13/image_16062025_11_14_05_9653.jpg', 2), ('/home/nano/Desktop/images/16062025/11/13/image_16062025_11_13_55_10649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/14/image_16062025_11_14_45_9642.jpg', '/home/nano/Desktop/images/16062025/11/14/image_16062025_11_14_35_9626.jpg', '/home/nano/Desktop/images/16062025/11/14/image_16062025_11_14_25_10655.jpg', '/home/nano/Desktop/images/16062025/11/14/image_16062025_11_14_15_9662.jpg', '/home/nano/Desktop/images/16062025/11/13/image_16062025_11_14_05_9653.jpg', '/home/nano/Desktop/images/16062025/11/13/image_16062025_11_13_55_10649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/14/image_16062025_11_14_45_9642.jpg
/home/nano/Desktop/images/16062025/11/14/image_16062025_11_14_35_9626.jpg
/home/nano/Desktop/images/16062025/11/14/image_16062025_11_14_25_10655.jpg
/home/nano/Desktop/images/16062025/11/14/image_16062025_11_14_15_9662.jpg
/home/nano/Desktop/images/16062025/11/13/image_16062025_11_14_05_9653.jpg
/home/nano/Desktop/images/16062025/11/13/image_16062025_11_13_55_10649.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366532895","1366532901","1366532888","1366532867","1366532881","1366532875"],"photo_ids_order":["1366532867","1366532875","1366532881","1366532888","1366532895","1366532901"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/14e134787bd1cd2f7cf29126ec7aedd2.jpg","text":"TemporaryFile(/tmp/multipartBody7952301532376507362asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065335822,"filename":"image_16062025_11_14_05_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cc49884da9d467ac80c05c02b218f65e.jpg","text":"TemporaryFile(/tmp/multipartBody2990279243070071935asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065335822,"filename":"image_16062025_11_13_55_10649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9ae21ec30b05f79700dead0952920309.jpg","text":"TemporaryFile(/tmp/multipartBody6378173742798841271asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065335822,"filename":"image_16062025_11_14_15_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/91e8eb746d043afdf7df88a7c7fb3b5c.jpg","text":"TemporaryFile(/tmp/multipartBody3693544432646132152asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065335822,"filename":"image_16062025_11_14_45_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6dcbf7ff0ec391770ff62a91987f9e74.jpg","text":"TemporaryFile(/tmp/multipartBody247269168301496429asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065335822,"filename":"image_16062025_11_14_25_10655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b08e106610004bd82ac93c6b850b2b29.jpg","text":"TemporaryFile(/tmp/multipartBody1165513727040668426asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065335822,"filename":"image_16062025_11_14_35_9626.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366532881","file1":"1366532875","file0":"1366532867","file4":"1366532895","file5":"1366532901","file3":"1366532888"},"map_files_photo_id_array":[{"photo_id":"1366532901","filename":"file5"},{"photo_id":"1366532881","filename":"file2"},{"photo_id":"1366532895","filename":"file4"},{"photo_id":"1366532875","filename":"file1"},{"photo_id":"1366532867","filename":"file0"},{"photo_id":"1366532888","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366532895":["hashtag1","hashtag2"]},{"1366532901":["hashtag1","hashtag2"]},{"1366532888":["hashtag1","hashtag2"]},{"1366532867":["hashtag1","hashtag2"]},{"1366532881":["hashtag1","hashtag2"]},{"1366532875":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366532895, 1366532901, 1366532888, 1366532867, 1366532881, 1366532875)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 118.95882821083069 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:16:32.579061
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/16/image_16062025_11_16_45_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/11/16/image_16062025_11_16_35_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/11/16/image_16062025_11_16_25_10682.jpg', 2), ('/home/nano/Desktop/images/16062025/11/16/image_16062025_11_16_15_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/11/15/image_16062025_11_16_05_9741.jpg', 2), ('/home/nano/Desktop/images/16062025/11/15/image_16062025_11_15_55_10642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/16/image_16062025_11_16_45_9649.jpg', '/home/nano/Desktop/images/16062025/11/16/image_16062025_11_16_35_9628.jpg', '/home/nano/Desktop/images/16062025/11/16/image_16062025_11_16_25_10682.jpg', '/home/nano/Desktop/images/16062025/11/16/image_16062025_11_16_15_9667.jpg', '/home/nano/Desktop/images/16062025/11/15/image_16062025_11_16_05_9741.jpg', '/home/nano/Desktop/images/16062025/11/15/image_16062025_11_15_55_10642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/16/image_16062025_11_16_45_9649.jpg
/home/nano/Desktop/images/16062025/11/16/image_16062025_11_16_35_9628.jpg
/home/nano/Desktop/images/16062025/11/16/image_16062025_11_16_25_10682.jpg
/home/nano/Desktop/images/16062025/11/16/image_16062025_11_16_15_9667.jpg
/home/nano/Desktop/images/16062025/11/15/image_16062025_11_16_05_9741.jpg
/home/nano/Desktop/images/16062025/11/15/image_16062025_11_15_55_10642.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366532962","1366532967","1366532958","1366532943","1366532954","1366532948"],"photo_ids_order":["1366532943","1366532948","1366532954","1366532958","1366532962","1366532967"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5941b85842ec1d861e64926ea0f6336c.jpg","text":"TemporaryFile(/tmp/multipartBody5549504341473835222asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065456685,"filename":"image_16062025_11_16_05_9741.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0c1195441b66e07d73ccc6415ec09a1c.jpg","text":"TemporaryFile(/tmp/multipartBody7068715433851212374asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065456685,"filename":"image_16062025_11_15_55_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/27239f4d2391033fa10e8967f761c0a4.jpg","text":"TemporaryFile(/tmp/multipartBody5125986601089579913asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065456685,"filename":"image_16062025_11_16_15_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/54f93a32b4d6e51a036306ca2b3630f4.jpg","text":"TemporaryFile(/tmp/multipartBody6960378045581667943asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065456685,"filename":"image_16062025_11_16_45_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/316d875c371e2411236df886f6147beb.jpg","text":"TemporaryFile(/tmp/multipartBody3425905601394553083asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065456685,"filename":"image_16062025_11_16_25_10682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d41ba17e9593f153df4a5c91bcbcdc12.jpg","text":"TemporaryFile(/tmp/multipartBody996113198069058040asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065456685,"filename":"image_16062025_11_16_35_9628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366532954","file1":"1366532948","file0":"1366532943","file4":"1366532962","file5":"1366532967","file3":"1366532958"},"map_files_photo_id_array":[{"photo_id":"1366532967","filename":"file5"},{"photo_id":"1366532954","filename":"file2"},{"photo_id":"1366532962","filename":"file4"},{"photo_id":"1366532948","filename":"file1"},{"photo_id":"1366532943","filename":"file0"},{"photo_id":"1366532958","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366532962":["hashtag1","hashtag2"]},{"1366532967":["hashtag1","hashtag2"]},{"1366532958":["hashtag1","hashtag2"]},{"1366532943":["hashtag1","hashtag2"]},{"1366532954":["hashtag1","hashtag2"]},{"1366532948":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366532962, 1366532967, 1366532958, 1366532943, 1366532954, 1366532948)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 86.53230023384094 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:18:03.402597
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/17/image_16062025_11_17_44_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/11/17/image_16062025_11_17_35_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/11/17/image_16062025_11_17_25_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/11/17/image_16062025_11_17_15_9688.jpg', 2), ('/home/nano/Desktop/images/16062025/11/16/image_16062025_11_17_05_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/11/16/image_16062025_11_16_55_10664.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/17/image_16062025_11_17_44_9640.jpg', '/home/nano/Desktop/images/16062025/11/17/image_16062025_11_17_35_9658.jpg', '/home/nano/Desktop/images/16062025/11/17/image_16062025_11_17_25_10641.jpg', '/home/nano/Desktop/images/16062025/11/17/image_16062025_11_17_15_9688.jpg', '/home/nano/Desktop/images/16062025/11/16/image_16062025_11_17_05_9657.jpg', '/home/nano/Desktop/images/16062025/11/16/image_16062025_11_16_55_10664.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/17/image_16062025_11_17_44_9640.jpg
/home/nano/Desktop/images/16062025/11/17/image_16062025_11_17_35_9658.jpg
/home/nano/Desktop/images/16062025/11/17/image_16062025_11_17_25_10641.jpg
/home/nano/Desktop/images/16062025/11/17/image_16062025_11_17_15_9688.jpg
/home/nano/Desktop/images/16062025/11/16/image_16062025_11_17_05_9657.jpg
/home/nano/Desktop/images/16062025/11/16/image_16062025_11_16_55_10664.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366532991","1366533003","1366533000","1366532996","1366532986","1366532980"],"photo_ids_order":["1366532980","1366532986","1366532991","1366532996","1366533000","1366533003"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ee02892fc266459fad208759631277a8.jpg","text":"TemporaryFile(/tmp/multipartBody5035552576854538645asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065551095,"filename":"image_16062025_11_17_25_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0e295b66aa463cc02eb1e5414e939b73.jpg","text":"TemporaryFile(/tmp/multipartBody3649047480106835788asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065551095,"filename":"image_16062025_11_16_55_10664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1c30c50d8a9f0302d043d79931fad2c3.jpg","text":"TemporaryFile(/tmp/multipartBody2069347278011570731asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065551095,"filename":"image_16062025_11_17_05_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7b2568be7fd39b2ed304c826fea1062e.jpg","text":"TemporaryFile(/tmp/multipartBody5630765559403560397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065551095,"filename":"image_16062025_11_17_15_9688.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7fba9fd75ad9ac55de0ca9b23d3a6617.jpg","text":"TemporaryFile(/tmp/multipartBody5653334469069456719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065551095,"filename":"image_16062025_11_17_35_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d0b972bce2c2f3c46caeadb68e091ebc.jpg","text":"TemporaryFile(/tmp/multipartBody6620226926897157935asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065551095,"filename":"image_16062025_11_17_44_9640.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366532991","file1":"1366532986","file0":"1366532980","file4":"1366533000","file5":"1366533003","file3":"1366532996"},"map_files_photo_id_array":[{"photo_id":"1366533003","filename":"file5"},{"photo_id":"1366532991","filename":"file2"},{"photo_id":"1366533000","filename":"file4"},{"photo_id":"1366532986","filename":"file1"},{"photo_id":"1366532980","filename":"file0"},{"photo_id":"1366532996","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366532991":["hashtag1","hashtag2"]},{"1366533003":["hashtag1","hashtag2"]},{"1366533000":["hashtag1","hashtag2"]},{"1366532996":["hashtag1","hashtag2"]},{"1366532986":["hashtag1","hashtag2"]},{"1366532980":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366532991, 1366533003, 1366533000, 1366532996, 1366532986, 1366532980)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.91914224624634 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:19:16.825632
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/19/image_16062025_11_19_45_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/11/19/image_16062025_11_19_35_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/11/19/image_16062025_11_19_25_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/11/19/image_16062025_11_19_15_10655.jpg', 2), ('/home/nano/Desktop/images/16062025/11/18/image_16062025_11_19_05_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/11/18/image_16062025_11_18_55_10639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/19/image_16062025_11_19_45_10626.jpg', '/home/nano/Desktop/images/16062025/11/19/image_16062025_11_19_35_9654.jpg', '/home/nano/Desktop/images/16062025/11/19/image_16062025_11_19_25_9633.jpg', '/home/nano/Desktop/images/16062025/11/19/image_16062025_11_19_15_10655.jpg', '/home/nano/Desktop/images/16062025/11/18/image_16062025_11_19_05_9664.jpg', '/home/nano/Desktop/images/16062025/11/18/image_16062025_11_18_55_10639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/19/image_16062025_11_19_45_10626.jpg
/home/nano/Desktop/images/16062025/11/19/image_16062025_11_19_35_9654.jpg
/home/nano/Desktop/images/16062025/11/19/image_16062025_11_19_25_9633.jpg
/home/nano/Desktop/images/16062025/11/19/image_16062025_11_19_15_10655.jpg
/home/nano/Desktop/images/16062025/11/18/image_16062025_11_19_05_9664.jpg
/home/nano/Desktop/images/16062025/11/18/image_16062025_11_18_55_10639.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366533025","1366533016","1366533057","1366533032","1366533041","1366533049"],"photo_ids_order":["1366533016","1366533025","1366533032","1366533041","1366533049","1366533057"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c3f8aca471dcef2c577f58268f9fd08a.jpg","text":"TemporaryFile(/tmp/multipartBody4500416972158854161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065620667,"filename":"image_16062025_11_19_35_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a7762d6dff3b047b2b3841b2cd13bbc6.jpg","text":"TemporaryFile(/tmp/multipartBody6500940079775241836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065620667,"filename":"image_16062025_11_19_45_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f041ef99110e35bd2b9e66ca1c6e8e33.jpg","text":"TemporaryFile(/tmp/multipartBody3268398964327949284asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065620667,"filename":"image_16062025_11_18_55_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c0b6793fb4caff9ac81a93725123312f.jpg","text":"TemporaryFile(/tmp/multipartBody1517589290445878480asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065620667,"filename":"image_16062025_11_19_25_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/96b84e45190a9069e4e6de3206390fa5.jpg","text":"TemporaryFile(/tmp/multipartBody4520251508697223010asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065620667,"filename":"image_16062025_11_19_15_10655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1344955062ba645bc10ead2b4d622b41.jpg","text":"TemporaryFile(/tmp/multipartBody2752009533913612927asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065620667,"filename":"image_16062025_11_19_05_9664.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366533032","file1":"1366533025","file0":"1366533016","file4":"1366533049","file5":"1366533057","file3":"1366533041"},"map_files_photo_id_array":[{"photo_id":"1366533057","filename":"file5"},{"photo_id":"1366533032","filename":"file2"},{"photo_id":"1366533049","filename":"file4"},{"photo_id":"1366533025","filename":"file1"},{"photo_id":"1366533016","filename":"file0"},{"photo_id":"1366533041","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366533025":["hashtag1","hashtag2"]},{"1366533016":["hashtag1","hashtag2"]},{"1366533057":["hashtag1","hashtag2"]},{"1366533032":["hashtag1","hashtag2"]},{"1366533041":["hashtag1","hashtag2"]},{"1366533049":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366533025, 1366533016, 1366533057, 1366533032, 1366533041, 1366533049)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 149.7881441116333 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:22:02.646059
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/21/image_16062025_11_21_45_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/11/21/image_16062025_11_21_34_9727.jpg', 2), ('/home/nano/Desktop/images/16062025/11/21/image_16062025_11_21_25_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/11/21/image_16062025_11_21_15_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/11/20/image_16062025_11_21_04_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/11/20/image_16062025_11_20_55_9602.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/21/image_16062025_11_21_45_10645.jpg', '/home/nano/Desktop/images/16062025/11/21/image_16062025_11_21_34_9727.jpg', '/home/nano/Desktop/images/16062025/11/21/image_16062025_11_21_25_9621.jpg', '/home/nano/Desktop/images/16062025/11/21/image_16062025_11_21_15_10638.jpg', '/home/nano/Desktop/images/16062025/11/20/image_16062025_11_21_04_9632.jpg', '/home/nano/Desktop/images/16062025/11/20/image_16062025_11_20_55_9602.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/21/image_16062025_11_21_45_10645.jpg
/home/nano/Desktop/images/16062025/11/21/image_16062025_11_21_34_9727.jpg
/home/nano/Desktop/images/16062025/11/21/image_16062025_11_21_25_9621.jpg
/home/nano/Desktop/images/16062025/11/21/image_16062025_11_21_15_10638.jpg
/home/nano/Desktop/images/16062025/11/20/image_16062025_11_21_04_9632.jpg
/home/nano/Desktop/images/16062025/11/20/image_16062025_11_20_55_9602.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366533133","1366533096","1366533083","1366533110","1366533122","1366533073"],"photo_ids_order":["1366533073","1366533083","1366533096","1366533110","1366533122","1366533133"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b10befbcc7425b13834f4150212d8de6.jpg","text":"TemporaryFile(/tmp/multipartBody3316751901847361139asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065817827,"filename":"image_16062025_11_20_55_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/40a1d785ab1836e2841b4d36bbd35cb1.jpg","text":"TemporaryFile(/tmp/multipartBody7570380555994564587asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065817827,"filename":"image_16062025_11_21_25_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7cdb8d5a63784390547f0ff60a3dcbe8.jpg","text":"TemporaryFile(/tmp/multipartBody3792093683496528650asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065817827,"filename":"image_16062025_11_21_34_9727.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4d10081e56ab245a1974ddeb35a3f621.jpg","text":"TemporaryFile(/tmp/multipartBody9093075396915752944asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065817827,"filename":"image_16062025_11_21_15_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ca7f139d98d4432aff6593d39bbcd8cf.jpg","text":"TemporaryFile(/tmp/multipartBody300902453365591424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065817827,"filename":"image_16062025_11_21_04_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8edae3693f5656a295e23c98d02cf9e8.jpg","text":"TemporaryFile(/tmp/multipartBody1632257366279557980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750065817827,"filename":"image_16062025_11_21_45_10645.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366533096","file1":"1366533083","file0":"1366533073","file4":"1366533122","file5":"1366533133","file3":"1366533110"},"map_files_photo_id_array":[{"photo_id":"1366533133","filename":"file5"},{"photo_id":"1366533096","filename":"file2"},{"photo_id":"1366533122","filename":"file4"},{"photo_id":"1366533083","filename":"file1"},{"photo_id":"1366533073","filename":"file0"},{"photo_id":"1366533110","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366533133":["hashtag1","hashtag2"]},{"1366533096":["hashtag1","hashtag2"]},{"1366533083":["hashtag1","hashtag2"]},{"1366533110":["hashtag1","hashtag2"]},{"1366533122":["hashtag1","hashtag2"]},{"1366533073":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366533133, 1366533096, 1366533083, 1366533110, 1366533122, 1366533073)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 267.7554111480713 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:26:32.566354
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/26/image_16062025_11_26_45_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/11/26/image_16062025_11_26_34_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/11/26/image_16062025_11_26_25_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/11/26/image_16062025_11_26_15_10680.jpg', 2), ('/home/nano/Desktop/images/16062025/11/25/image_16062025_11_26_05_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/11/25/image_16062025_11_25_55_9678.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/26/image_16062025_11_26_45_10643.jpg', '/home/nano/Desktop/images/16062025/11/26/image_16062025_11_26_34_9604.jpg', '/home/nano/Desktop/images/16062025/11/26/image_16062025_11_26_25_9621.jpg', '/home/nano/Desktop/images/16062025/11/26/image_16062025_11_26_15_10680.jpg', '/home/nano/Desktop/images/16062025/11/25/image_16062025_11_26_05_9667.jpg', '/home/nano/Desktop/images/16062025/11/25/image_16062025_11_25_55_9678.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/26/image_16062025_11_26_45_10643.jpg
/home/nano/Desktop/images/16062025/11/26/image_16062025_11_26_34_9604.jpg
/home/nano/Desktop/images/16062025/11/26/image_16062025_11_26_25_9621.jpg
/home/nano/Desktop/images/16062025/11/26/image_16062025_11_26_15_10680.jpg
/home/nano/Desktop/images/16062025/11/25/image_16062025_11_26_05_9667.jpg
/home/nano/Desktop/images/16062025/11/25/image_16062025_11_25_55_9678.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366533145","1366533240","1366533204","1366533173","1366533152","1366533181"],"photo_ids_order":["1366533145","1366533152","1366533173","1366533181","1366533204","1366533240"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0dbc4dbdf3db89447b2faeb736e280a3.jpg","text":"TemporaryFile(/tmp/multipartBody8753669626854952605asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066057289,"filename":"image_16062025_11_26_45_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e22a47b8d5a7ec96008a08b0851e9800.jpg","text":"TemporaryFile(/tmp/multipartBody661775803792784930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066057289,"filename":"image_16062025_11_25_55_9678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d6b57971bab20912a45de80689ecdf45.jpg","text":"TemporaryFile(/tmp/multipartBody586107332222458633asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066057289,"filename":"image_16062025_11_26_05_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b2be4ee0744b1b3d70a4e71f65fe8cf7.jpg","text":"TemporaryFile(/tmp/multipartBody723813871718907385asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066057289,"filename":"image_16062025_11_26_25_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9a7860ddf27e5e9f441646169a6d822c.jpg","text":"TemporaryFile(/tmp/multipartBody2755200719447696641asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066057289,"filename":"image_16062025_11_26_34_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5164e9a273b62e715bfff21aa361a894.jpg","text":"TemporaryFile(/tmp/multipartBody8310855217424701153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066057289,"filename":"image_16062025_11_26_15_10680.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366533173","file1":"1366533152","file0":"1366533145","file4":"1366533204","file5":"1366533240","file3":"1366533181"},"map_files_photo_id_array":[{"photo_id":"1366533240","filename":"file5"},{"photo_id":"1366533173","filename":"file2"},{"photo_id":"1366533204","filename":"file4"},{"photo_id":"1366533152","filename":"file1"},{"photo_id":"1366533145","filename":"file0"},{"photo_id":"1366533181","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366533145":["hashtag1","hashtag2"]},{"1366533240":["hashtag1","hashtag2"]},{"1366533204":["hashtag1","hashtag2"]},{"1366533173":["hashtag1","hashtag2"]},{"1366533152":["hashtag1","hashtag2"]},{"1366533181":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366533145, 1366533240, 1366533204, 1366533173, 1366533152, 1366533181)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 124.16509461402893 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:28:46.801747
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_45_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_35_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_25_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_15_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/11/27/image_16062025_11_28_05_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/11/27/image_16062025_11_27_54_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_45_9637.jpg', '/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_35_9620.jpg', '/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_25_10638.jpg', '/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_15_9669.jpg', '/home/nano/Desktop/images/16062025/11/27/image_16062025_11_28_05_10637.jpg', '/home/nano/Desktop/images/16062025/11/27/image_16062025_11_27_54_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_45_9637.jpg
/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_35_9620.jpg
/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_25_10638.jpg
/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_15_9669.jpg
/home/nano/Desktop/images/16062025/11/27/image_16062025_11_28_05_10637.jpg
/home/nano/Desktop/images/16062025/11/27/image_16062025_11_27_54_9612.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 6.787827014923096 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:29:02.880915
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_45_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_35_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_25_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_15_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/11/27/image_16062025_11_28_05_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/11/27/image_16062025_11_27_54_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_45_9637.jpg', '/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_35_9620.jpg', '/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_25_10638.jpg', '/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_15_9669.jpg', '/home/nano/Desktop/images/16062025/11/27/image_16062025_11_28_05_10637.jpg', '/home/nano/Desktop/images/16062025/11/27/image_16062025_11_27_54_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_45_9637.jpg
/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_35_9620.jpg
/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_25_10638.jpg
/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_15_9669.jpg
/home/nano/Desktop/images/16062025/11/27/image_16062025_11_28_05_10637.jpg
/home/nano/Desktop/images/16062025/11/27/image_16062025_11_27_54_9612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366533310","1366533369","1366533300","1366533407","1366533283","1366533292"],"photo_ids_order":["1366533283","1366533292","1366533300","1366533310","1366533369","1366533407"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/88a34baf8161ade350f0e79ac124aa1b.jpg","text":"TemporaryFile(/tmp/multipartBody6629916195489320534asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066207417,"filename":"image_16062025_11_28_15_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a5eb0f1e2c1c50f565f693545dcc82ba.jpg","text":"TemporaryFile(/tmp/multipartBody8906935222021612926asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066207417,"filename":"image_16062025_11_28_05_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a9cf8977470e90f86659e18bae921520.jpg","text":"TemporaryFile(/tmp/multipartBody9148683291108667648asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066207417,"filename":"image_16062025_11_28_25_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fb99d1528e925c279c3d6a994e5437f3.jpg","text":"TemporaryFile(/tmp/multipartBody3120778141966424135asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066207417,"filename":"image_16062025_11_27_54_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1ac367d3b3f2340b22f92d805fa6223b.jpg","text":"TemporaryFile(/tmp/multipartBody5695080678487409655asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066207417,"filename":"image_16062025_11_28_45_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9700ee24d4f9cc5f6c7f37d4292ec296.jpg","text":"TemporaryFile(/tmp/multipartBody7249526141675553232asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066207417,"filename":"image_16062025_11_28_35_9620.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366533300","file1":"1366533292","file0":"1366533283","file4":"1366533369","file5":"1366533407","file3":"1366533310"},"map_files_photo_id_array":[{"photo_id":"1366533407","filename":"file5"},{"photo_id":"1366533300","filename":"file2"},{"photo_id":"1366533369","filename":"file4"},{"photo_id":"1366533292","filename":"file1"},{"photo_id":"1366533283","filename":"file0"},{"photo_id":"1366533310","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366533310":["hashtag1","hashtag2"]},{"1366533369":["hashtag1","hashtag2"]},{"1366533300":["hashtag1","hashtag2"]},{"1366533407":["hashtag1","hashtag2"]},{"1366533283":["hashtag1","hashtag2"]},{"1366533292":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366533310, 1366533369, 1366533300, 1366533407, 1366533283, 1366533292)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 57.43040609359741 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:30:02.531383
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/29/image_16062025_11_29_44_9593.jpg', 2), ('/home/nano/Desktop/images/16062025/11/29/image_16062025_11_29_35_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/11/29/image_16062025_11_29_25_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/11/29/image_16062025_11_29_15_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/11/28/image_16062025_11_29_05_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_55_10648.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/29/image_16062025_11_29_44_9593.jpg', '/home/nano/Desktop/images/16062025/11/29/image_16062025_11_29_35_9613.jpg', '/home/nano/Desktop/images/16062025/11/29/image_16062025_11_29_25_10652.jpg', '/home/nano/Desktop/images/16062025/11/29/image_16062025_11_29_15_9623.jpg', '/home/nano/Desktop/images/16062025/11/28/image_16062025_11_29_05_9631.jpg', '/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_55_10648.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/29/image_16062025_11_29_44_9593.jpg
/home/nano/Desktop/images/16062025/11/29/image_16062025_11_29_35_9613.jpg
/home/nano/Desktop/images/16062025/11/29/image_16062025_11_29_25_10652.jpg
/home/nano/Desktop/images/16062025/11/29/image_16062025_11_29_15_9623.jpg
/home/nano/Desktop/images/16062025/11/28/image_16062025_11_29_05_9631.jpg
/home/nano/Desktop/images/16062025/11/28/image_16062025_11_28_55_10648.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366533492","1366533482","1366533414","1366533521","1366533499","1366533511"],"photo_ids_order":["1366533414","1366533482","1366533492","1366533499","1366533511","1366533521"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8d569997b05cccf30b40af09642b0ce6.jpg","text":"TemporaryFile(/tmp/multipartBody6519532175761039242asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066270371,"filename":"image_16062025_11_29_25_10652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c69348d01f6d5a9779de9b1361730114.jpg","text":"TemporaryFile(/tmp/multipartBody3566061503233568369asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066270371,"filename":"image_16062025_11_29_35_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a88d7f69d9ab60b4d8e7a4671726f26e.jpg","text":"TemporaryFile(/tmp/multipartBody8922448234072066488asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066270371,"filename":"image_16062025_11_29_44_9593.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ecedacc6afd432dc8fdd1858ee4f66de.jpg","text":"TemporaryFile(/tmp/multipartBody2708828114153126461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066270371,"filename":"image_16062025_11_28_55_10648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e30457d44fdbdc4a4d45132a922f5bf6.jpg","text":"TemporaryFile(/tmp/multipartBody2499361619298260136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066270371,"filename":"image_16062025_11_29_15_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f6e26d1af0e7d33af8f1360a6213f413.jpg","text":"TemporaryFile(/tmp/multipartBody7712021877273722248asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066270371,"filename":"image_16062025_11_29_05_9631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366533492","file1":"1366533482","file0":"1366533414","file4":"1366533511","file5":"1366533521","file3":"1366533499"},"map_files_photo_id_array":[{"photo_id":"1366533521","filename":"file5"},{"photo_id":"1366533492","filename":"file2"},{"photo_id":"1366533511","filename":"file4"},{"photo_id":"1366533482","filename":"file1"},{"photo_id":"1366533414","filename":"file0"},{"photo_id":"1366533499","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366533492":["hashtag1","hashtag2"]},{"1366533482":["hashtag1","hashtag2"]},{"1366533414":["hashtag1","hashtag2"]},{"1366533521":["hashtag1","hashtag2"]},{"1366533499":["hashtag1","hashtag2"]},{"1366533511":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366533492, 1366533482, 1366533414, 1366533521, 1366533499, 1366533511)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 69.71154928207397 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:31:17.108946
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/31/image_16062025_11_31_45_10676.jpg', 2), ('/home/nano/Desktop/images/16062025/11/31/image_16062025_11_31_35_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/11/31/image_16062025_11_31_25_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/11/31/image_16062025_11_31_15_10688.jpg', 2), ('/home/nano/Desktop/images/16062025/11/30/image_16062025_11_31_05_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/11/30/image_16062025_11_30_55_9641.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/31/image_16062025_11_31_45_10676.jpg', '/home/nano/Desktop/images/16062025/11/31/image_16062025_11_31_35_9651.jpg', '/home/nano/Desktop/images/16062025/11/31/image_16062025_11_31_25_9660.jpg', '/home/nano/Desktop/images/16062025/11/31/image_16062025_11_31_15_10688.jpg', '/home/nano/Desktop/images/16062025/11/30/image_16062025_11_31_05_9640.jpg', '/home/nano/Desktop/images/16062025/11/30/image_16062025_11_30_55_9641.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/31/image_16062025_11_31_45_10676.jpg
/home/nano/Desktop/images/16062025/11/31/image_16062025_11_31_35_9651.jpg
/home/nano/Desktop/images/16062025/11/31/image_16062025_11_31_25_9660.jpg
/home/nano/Desktop/images/16062025/11/31/image_16062025_11_31_15_10688.jpg
/home/nano/Desktop/images/16062025/11/30/image_16062025_11_31_05_9640.jpg
/home/nano/Desktop/images/16062025/11/30/image_16062025_11_30_55_9641.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366533604","1366533609","1366533656","1366533602","1366533649","1366533598"],"photo_ids_order":["1366533598","1366533602","1366533604","1366533609","1366533649","1366533656"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a4da9b1f4f503af7d662156353bbe05c.jpg","text":"TemporaryFile(/tmp/multipartBody3204155967058941304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066339571,"filename":"image_16062025_11_31_25_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4df36979dcac8af9f9c49dc7630f5c41.jpg","text":"TemporaryFile(/tmp/multipartBody1915208990003037408asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066339571,"filename":"image_16062025_11_31_15_10688.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/153dde7bceb1adf71ee50409f071dd40.jpg","text":"TemporaryFile(/tmp/multipartBody7061816363038273453asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066339571,"filename":"image_16062025_11_30_55_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8011ef8b0218f76f3e15f7b7ed615fd1.jpg","text":"TemporaryFile(/tmp/multipartBody9091495208414526587asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066339571,"filename":"image_16062025_11_31_35_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8879dd20b5ff5338914c8bd9e7c013ee.jpg","text":"TemporaryFile(/tmp/multipartBody2156195970847854678asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066339571,"filename":"image_16062025_11_31_05_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/430801c4af86e71651aab98924e4737c.jpg","text":"TemporaryFile(/tmp/multipartBody7782143753274836588asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066339571,"filename":"image_16062025_11_31_45_10676.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366533604","file1":"1366533602","file0":"1366533598","file4":"1366533649","file5":"1366533656","file3":"1366533609"},"map_files_photo_id_array":[{"photo_id":"1366533656","filename":"file5"},{"photo_id":"1366533604","filename":"file2"},{"photo_id":"1366533649","filename":"file4"},{"photo_id":"1366533602","filename":"file1"},{"photo_id":"1366533598","filename":"file0"},{"photo_id":"1366533609","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366533604":["hashtag1","hashtag2"]},{"1366533609":["hashtag1","hashtag2"]},{"1366533656":["hashtag1","hashtag2"]},{"1366533602":["hashtag1","hashtag2"]},{"1366533649":["hashtag1","hashtag2"]},{"1366533598":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366533604, 1366533609, 1366533656, 1366533602, 1366533649, 1366533598)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 64.2651014328003 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:32:32.241597
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/32/image_16062025_11_32_45_10674.jpg', 2), ('/home/nano/Desktop/images/16062025/11/32/image_16062025_11_32_35_9688.jpg', 2), ('/home/nano/Desktop/images/16062025/11/32/image_16062025_11_32_15_10716.jpg', 2), ('/home/nano/Desktop/images/16062025/11/31/image_16062025_11_32_05_9678.jpg', 2), ('/home/nano/Desktop/images/16062025/11/31/image_16062025_11_31_55_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/11/30/image_16062025_11_30_45_10675.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/32/image_16062025_11_32_45_10674.jpg', '/home/nano/Desktop/images/16062025/11/32/image_16062025_11_32_35_9688.jpg', '/home/nano/Desktop/images/16062025/11/32/image_16062025_11_32_15_10716.jpg', '/home/nano/Desktop/images/16062025/11/31/image_16062025_11_32_05_9678.jpg', '/home/nano/Desktop/images/16062025/11/31/image_16062025_11_31_55_9651.jpg', '/home/nano/Desktop/images/16062025/11/30/image_16062025_11_30_45_10675.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/32/image_16062025_11_32_45_10674.jpg
/home/nano/Desktop/images/16062025/11/32/image_16062025_11_32_35_9688.jpg
/home/nano/Desktop/images/16062025/11/32/image_16062025_11_32_15_10716.jpg
/home/nano/Desktop/images/16062025/11/31/image_16062025_11_32_05_9678.jpg
/home/nano/Desktop/images/16062025/11/31/image_16062025_11_31_55_9651.jpg
/home/nano/Desktop/images/16062025/11/30/image_16062025_11_30_45_10675.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366533696","1366533690","1366533672","1366533681","1366533683","1366533676"],"photo_ids_order":["1366533672","1366533676","1366533681","1366533683","1366533690","1366533696"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0639c34fa16201ab9b1be22d0910c554.jpg","text":"TemporaryFile(/tmp/multipartBody7655414601717089526asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066417716,"filename":"image_16062025_11_30_45_10675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9a76c939b8768cca15b070ef26d5feed.jpg","text":"TemporaryFile(/tmp/multipartBody7078988979135309170asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066417716,"filename":"image_16062025_11_31_55_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dac14b00b82949b1b38786a9c64edd80.jpg","text":"TemporaryFile(/tmp/multipartBody2721684505187740822asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066417716,"filename":"image_16062025_11_32_45_10674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/93161660896f76990902d3c78552c26c.jpg","text":"TemporaryFile(/tmp/multipartBody6530009939120905835asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066417716,"filename":"image_16062025_11_32_15_10716.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cf6373a8df33289eaaf8b31313d59865.jpg","text":"TemporaryFile(/tmp/multipartBody7452982465976944826asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066417716,"filename":"image_16062025_11_32_05_9678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/94f5229512d9beea825207b105a5d98b.jpg","text":"TemporaryFile(/tmp/multipartBody8990641173844272846asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066417716,"filename":"image_16062025_11_32_35_9688.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366533681","file1":"1366533676","file0":"1366533672","file4":"1366533690","file5":"1366533696","file3":"1366533683"},"map_files_photo_id_array":[{"photo_id":"1366533696","filename":"file5"},{"photo_id":"1366533681","filename":"file2"},{"photo_id":"1366533690","filename":"file4"},{"photo_id":"1366533676","filename":"file1"},{"photo_id":"1366533672","filename":"file0"},{"photo_id":"1366533683","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366533696":["hashtag1","hashtag2"]},{"1366533690":["hashtag1","hashtag2"]},{"1366533672":["hashtag1","hashtag2"]},{"1366533681":["hashtag1","hashtag2"]},{"1366533683":["hashtag1","hashtag2"]},{"1366533676":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366533696, 1366533690, 1366533672, 1366533681, 1366533683, 1366533676)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 97.16379499435425 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:34:17.444581
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/34/image_16062025_11_34_35_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/11/34/image_16062025_11_34_14_9706.jpg', 2), ('/home/nano/Desktop/images/16062025/11/33/image_16062025_11_34_05_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/11/33/image_16062025_11_33_55_9672.jpg', 2), ('/home/nano/Desktop/images/16062025/11/33/image_16062025_11_33_45_10673.jpg', 2), ('/home/nano/Desktop/images/16062025/11/33/image_16062025_11_33_35_9672.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/34/image_16062025_11_34_35_9671.jpg', '/home/nano/Desktop/images/16062025/11/34/image_16062025_11_34_14_9706.jpg', '/home/nano/Desktop/images/16062025/11/33/image_16062025_11_34_05_9673.jpg', '/home/nano/Desktop/images/16062025/11/33/image_16062025_11_33_55_9672.jpg', '/home/nano/Desktop/images/16062025/11/33/image_16062025_11_33_45_10673.jpg', '/home/nano/Desktop/images/16062025/11/33/image_16062025_11_33_35_9672.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/34/image_16062025_11_34_35_9671.jpg
/home/nano/Desktop/images/16062025/11/34/image_16062025_11_34_14_9706.jpg
/home/nano/Desktop/images/16062025/11/33/image_16062025_11_34_05_9673.jpg
/home/nano/Desktop/images/16062025/11/33/image_16062025_11_33_55_9672.jpg
/home/nano/Desktop/images/16062025/11/33/image_16062025_11_33_45_10673.jpg
/home/nano/Desktop/images/16062025/11/33/image_16062025_11_33_35_9672.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366533727","1366533715","1366533747","1366533741","1366533723","1366533736"],"photo_ids_order":["1366533715","1366533723","1366533727","1366533736","1366533741","1366533747"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a99b27a2d60b0a6d3c72a42e4c1aaa32.jpg","text":"TemporaryFile(/tmp/multipartBody8951175367824488144asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066520198,"filename":"image_16062025_11_34_05_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cd487172ad01f9e61a4b6dbd5932b5d5.jpg","text":"TemporaryFile(/tmp/multipartBody5345758675446928101asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066520198,"filename":"image_16062025_11_34_35_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/74bede8619c9e7f783607f826c5f9140.jpg","text":"TemporaryFile(/tmp/multipartBody4213870419523453894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066520198,"filename":"image_16062025_11_33_35_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0e13cef72f6b53d9b9b51d77c95ae41c.jpg","text":"TemporaryFile(/tmp/multipartBody8172780866366707714asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066520198,"filename":"image_16062025_11_33_45_10673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fd9659a15b12c3e0d7457f8aa86869fa.jpg","text":"TemporaryFile(/tmp/multipartBody930317272414396659asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066520198,"filename":"image_16062025_11_34_14_9706.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f6b5c61ecd7429ea4ee8aef5f00980e6.jpg","text":"TemporaryFile(/tmp/multipartBody7494979130552531192asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066520198,"filename":"image_16062025_11_33_55_9672.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366533727","file1":"1366533723","file0":"1366533715","file4":"1366533741","file5":"1366533747","file3":"1366533736"},"map_files_photo_id_array":[{"photo_id":"1366533747","filename":"file5"},{"photo_id":"1366533727","filename":"file2"},{"photo_id":"1366533741","filename":"file4"},{"photo_id":"1366533723","filename":"file1"},{"photo_id":"1366533715","filename":"file0"},{"photo_id":"1366533736","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366533727":["hashtag1","hashtag2"]},{"1366533715":["hashtag1","hashtag2"]},{"1366533747":["hashtag1","hashtag2"]},{"1366533741":["hashtag1","hashtag2"]},{"1366533723":["hashtag1","hashtag2"]},{"1366533736":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366533727, 1366533715, 1366533747, 1366533741, 1366533723, 1366533736)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 108.99695539474487 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:36:17.685600
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/36/image_16062025_11_36_45_9690.jpg', 2), ('/home/nano/Desktop/images/16062025/11/36/image_16062025_11_36_35_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/11/35/image_16062025_11_36_05_9670.jpg', 2), ('/home/nano/Desktop/images/16062025/11/35/image_16062025_11_35_44_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/11/35/image_16062025_11_35_14_9699.jpg', 2), ('/home/nano/Desktop/images/16062025/11/34/image_16062025_11_35_05_9670.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/36/image_16062025_11_36_45_9690.jpg', '/home/nano/Desktop/images/16062025/11/36/image_16062025_11_36_35_9671.jpg', '/home/nano/Desktop/images/16062025/11/35/image_16062025_11_36_05_9670.jpg', '/home/nano/Desktop/images/16062025/11/35/image_16062025_11_35_44_9664.jpg', '/home/nano/Desktop/images/16062025/11/35/image_16062025_11_35_14_9699.jpg', '/home/nano/Desktop/images/16062025/11/34/image_16062025_11_35_05_9670.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/36/image_16062025_11_36_45_9690.jpg
/home/nano/Desktop/images/16062025/11/36/image_16062025_11_36_35_9671.jpg
/home/nano/Desktop/images/16062025/11/35/image_16062025_11_36_05_9670.jpg
/home/nano/Desktop/images/16062025/11/35/image_16062025_11_35_44_9664.jpg
/home/nano/Desktop/images/16062025/11/35/image_16062025_11_35_14_9699.jpg
/home/nano/Desktop/images/16062025/11/34/image_16062025_11_35_05_9670.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366533782","1366533773","1366533815","1366533766","1366533796","1366533823"],"photo_ids_order":["1366533766","1366533773","1366533782","1366533796","1366533815","1366533823"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6887306b54508b034f1ea73cd19206c3.jpg","text":"TemporaryFile(/tmp/multipartBody3235041119344416969asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066641022,"filename":"image_16062025_11_36_05_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/063627529889dd3063df842d3eb2e3de.jpg","text":"TemporaryFile(/tmp/multipartBody1770297469726865770asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066641022,"filename":"image_16062025_11_36_35_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/30a937686de7db7480e550713fe02cb9.jpg","text":"TemporaryFile(/tmp/multipartBody7862035541369700968asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066641022,"filename":"image_16062025_11_35_14_9699.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/536ce0b47152907621e402827f9f9006.jpg","text":"TemporaryFile(/tmp/multipartBody8110902068665611097asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066641022,"filename":"image_16062025_11_36_45_9690.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3c47c4e11a9fe841cad28fbba9135810.jpg","text":"TemporaryFile(/tmp/multipartBody7007024656368747186asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066641022,"filename":"image_16062025_11_35_44_9664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c49705e1249b2cc769340b881f30365f.jpg","text":"TemporaryFile(/tmp/multipartBody1968991438908760175asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750066641022,"filename":"image_16062025_11_35_05_9670.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366533782","file1":"1366533773","file0":"1366533766","file4":"1366533815","file5":"1366533823","file3":"1366533796"},"map_files_photo_id_array":[{"photo_id":"1366533823","filename":"file5"},{"photo_id":"1366533782","filename":"file2"},{"photo_id":"1366533815","filename":"file4"},{"photo_id":"1366533773","filename":"file1"},{"photo_id":"1366533766","filename":"file0"},{"photo_id":"1366533796","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366533782":["hashtag1","hashtag2"]},{"1366533773":["hashtag1","hashtag2"]},{"1366533815":["hashtag1","hashtag2"]},{"1366533766":["hashtag1","hashtag2"]},{"1366533796":["hashtag1","hashtag2"]},{"1366533823":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366533782, 1366533773, 1366533815, 1366533766, 1366533796, 1366533823)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 133.69871997833252 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:38:46.952369
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/38/image_16062025_11_38_35_9666.jpg', 2), ('/home/nano/Desktop/images/16062025/11/38/image_16062025_11_38_15_9666.jpg', 2), ('/home/nano/Desktop/images/16062025/11/37/image_16062025_11_38_05_9691.jpg', 2), ('/home/nano/Desktop/images/16062025/11/37/image_16062025_11_37_45_9665.jpg', 2), ('/home/nano/Desktop/images/16062025/11/37/image_16062025_11_37_35_9670.jpg', 2), ('/home/nano/Desktop/images/16062025/11/37/image_16062025_11_37_25_10677.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/38/image_16062025_11_38_35_9666.jpg', '/home/nano/Desktop/images/16062025/11/38/image_16062025_11_38_15_9666.jpg', '/home/nano/Desktop/images/16062025/11/37/image_16062025_11_38_05_9691.jpg', '/home/nano/Desktop/images/16062025/11/37/image_16062025_11_37_45_9665.jpg', '/home/nano/Desktop/images/16062025/11/37/image_16062025_11_37_35_9670.jpg', '/home/nano/Desktop/images/16062025/11/37/image_16062025_11_37_25_10677.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/38/image_16062025_11_38_35_9666.jpg
/home/nano/Desktop/images/16062025/11/38/image_16062025_11_38_15_9666.jpg
/home/nano/Desktop/images/16062025/11/37/image_16062025_11_38_05_9691.jpg
/home/nano/Desktop/images/16062025/11/37/image_16062025_11_37_45_9665.jpg
/home/nano/Desktop/images/16062025/11/37/image_16062025_11_37_35_9670.jpg
/home/nano/Desktop/images/16062025/11/37/image_16062025_11_37_25_10677.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 318.62537479400635 secondes ---
<Response [502]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>502 Proxy Error</title>\n</head><body>\n<h1>Proxy Error</h1>\n<p>The proxy server received an invalid\r\nresponse from an upstream server.<br />\r\nThe proxy server could not handle the request<p>Reason: <strong>Error reading from remote server</strong></p></p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
502
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:44:17.612427
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/44/image_16062025_11_44_45_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/11/44/image_16062025_11_44_35_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/11/44/image_16062025_11_44_25_10655.jpg', 2), ('/home/nano/Desktop/images/16062025/11/44/image_16062025_11_44_14_9691.jpg', 2), ('/home/nano/Desktop/images/16062025/11/43/image_16062025_11_44_05_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/11/43/image_16062025_11_43_55_10675.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/44/image_16062025_11_44_45_10630.jpg', '/home/nano/Desktop/images/16062025/11/44/image_16062025_11_44_35_9615.jpg', '/home/nano/Desktop/images/16062025/11/44/image_16062025_11_44_25_10655.jpg', '/home/nano/Desktop/images/16062025/11/44/image_16062025_11_44_14_9691.jpg', '/home/nano/Desktop/images/16062025/11/43/image_16062025_11_44_05_9639.jpg', '/home/nano/Desktop/images/16062025/11/43/image_16062025_11_43_55_10675.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/44/image_16062025_11_44_45_10630.jpg
/home/nano/Desktop/images/16062025/11/44/image_16062025_11_44_35_9615.jpg
/home/nano/Desktop/images/16062025/11/44/image_16062025_11_44_25_10655.jpg
/home/nano/Desktop/images/16062025/11/44/image_16062025_11_44_14_9691.jpg
/home/nano/Desktop/images/16062025/11/43/image_16062025_11_44_05_9639.jpg
/home/nano/Desktop/images/16062025/11/43/image_16062025_11_43_55_10675.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366533951","1366533989","1366533968","1366533906","1366533935","1366533979"],"photo_ids_order":["1366533906","1366533935","1366533951","1366533968","1366533979","1366533989"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b45f138d04ad633057af9d1458944de5.jpg","text":"TemporaryFile(/tmp/multipartBody6474646939976357003asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750067152754,"filename":"image_16062025_11_44_25_10655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e456995b6f8135a47e3e10c9bdbadd52.jpg","text":"TemporaryFile(/tmp/multipartBody3017289110381256158asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750067152754,"filename":"image_16062025_11_43_55_10675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8e4c797bb97d18cbca0fdf6ce5d828e9.jpg","text":"TemporaryFile(/tmp/multipartBody1376467437640087665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750067152754,"filename":"image_16062025_11_44_14_9691.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/454f12d650d91f7411721819c2e1c493.jpg","text":"TemporaryFile(/tmp/multipartBody3076314926741999648asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750067152754,"filename":"image_16062025_11_44_45_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/36e3fcd7ffa0959f5e231079e53eaa53.jpg","text":"TemporaryFile(/tmp/multipartBody19325549837402080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750067152754,"filename":"image_16062025_11_44_35_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c48da7d0a3f8dc3e031d96a5a24c1ab7.jpg","text":"TemporaryFile(/tmp/multipartBody5348769266054608164asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750067152754,"filename":"image_16062025_11_44_05_9639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366533951","file1":"1366533935","file0":"1366533906","file4":"1366533979","file5":"1366533989","file3":"1366533968"},"map_files_photo_id_array":[{"photo_id":"1366533989","filename":"file5"},{"photo_id":"1366533951","filename":"file2"},{"photo_id":"1366533979","filename":"file4"},{"photo_id":"1366533935","filename":"file1"},{"photo_id":"1366533906","filename":"file0"},{"photo_id":"1366533968","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366533951":["hashtag1","hashtag2"]},{"1366533989":["hashtag1","hashtag2"]},{"1366533968":["hashtag1","hashtag2"]},{"1366533906":["hashtag1","hashtag2"]},{"1366533935":["hashtag1","hashtag2"]},{"1366533979":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366533951, 1366533989, 1366533968, 1366533906, 1366533935, 1366533979)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 227.8835473060608 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:48:16.977816
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/48/image_16062025_11_48_45_9723.jpg', 2), ('/home/nano/Desktop/images/16062025/11/48/image_16062025_11_48_35_9721.jpg', 2), ('/home/nano/Desktop/images/16062025/11/48/image_16062025_11_48_25_10677.jpg', 2), ('/home/nano/Desktop/images/16062025/11/48/image_16062025_11_48_14_9743.jpg', 2), ('/home/nano/Desktop/images/16062025/11/47/image_16062025_11_47_45_10741.jpg', 2), ('/home/nano/Desktop/images/16062025/11/47/image_16062025_11_47_34_9732.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/48/image_16062025_11_48_45_9723.jpg', '/home/nano/Desktop/images/16062025/11/48/image_16062025_11_48_35_9721.jpg', '/home/nano/Desktop/images/16062025/11/48/image_16062025_11_48_25_10677.jpg', '/home/nano/Desktop/images/16062025/11/48/image_16062025_11_48_14_9743.jpg', '/home/nano/Desktop/images/16062025/11/47/image_16062025_11_47_45_10741.jpg', '/home/nano/Desktop/images/16062025/11/47/image_16062025_11_47_34_9732.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/48/image_16062025_11_48_45_9723.jpg
/home/nano/Desktop/images/16062025/11/48/image_16062025_11_48_35_9721.jpg
/home/nano/Desktop/images/16062025/11/48/image_16062025_11_48_25_10677.jpg
/home/nano/Desktop/images/16062025/11/48/image_16062025_11_48_14_9743.jpg
/home/nano/Desktop/images/16062025/11/47/image_16062025_11_47_45_10741.jpg
/home/nano/Desktop/images/16062025/11/47/image_16062025_11_47_34_9732.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366534110","1366534085","1366534094","1366534028","1366534036","1366534074"],"photo_ids_order":["1366534028","1366534036","1366534074","1366534085","1366534094","1366534110"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/112ff5432e115b307ed02cb138e33f45.jpg","text":"TemporaryFile(/tmp/multipartBody8568338951610174497asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750067378155,"filename":"image_16062025_11_47_34_9732.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6894d9a2af9dc50655da90870b2cdf62.jpg","text":"TemporaryFile(/tmp/multipartBody6736623238323106805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750067378155,"filename":"image_16062025_11_48_14_9743.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c9815d022673f7b43dd2c4fb9440b2ae.jpg","text":"TemporaryFile(/tmp/multipartBody4228987047055665862asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750067378155,"filename":"image_16062025_11_47_45_10741.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e9550d85a980d33283a468c79bdecf52.jpg","text":"TemporaryFile(/tmp/multipartBody8407471784825316825asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750067378155,"filename":"image_16062025_11_48_45_9723.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c2541f232a33673b15d370e6d513a692.jpg","text":"TemporaryFile(/tmp/multipartBody1683895070567346129asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750067378155,"filename":"image_16062025_11_48_35_9721.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1beb229d4561e930d520ba768247ad3f.jpg","text":"TemporaryFile(/tmp/multipartBody2118740397079248349asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750067378155,"filename":"image_16062025_11_48_25_10677.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366534074","file1":"1366534036","file0":"1366534028","file4":"1366534094","file5":"1366534110","file3":"1366534085"},"map_files_photo_id_array":[{"photo_id":"1366534110","filename":"file5"},{"photo_id":"1366534074","filename":"file2"},{"photo_id":"1366534094","filename":"file4"},{"photo_id":"1366534036","filename":"file1"},{"photo_id":"1366534028","filename":"file0"},{"photo_id":"1366534085","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366534110":["hashtag1","hashtag2"]},{"1366534085":["hashtag1","hashtag2"]},{"1366534094":["hashtag1","hashtag2"]},{"1366534028":["hashtag1","hashtag2"]},{"1366534036":["hashtag1","hashtag2"]},{"1366534074":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366534110, 1366534085, 1366534094, 1366534028, 1366534036, 1366534074)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 180.06940507888794 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:51:32.416195
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/51/image_16062025_11_51_45_10606.jpg', 2), ('/home/nano/Desktop/images/16062025/11/51/image_16062025_11_51_35_9588.jpg', 2), ('/home/nano/Desktop/images/16062025/11/51/image_16062025_11_51_25_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/11/51/image_16062025_11_51_14_9589.jpg', 2), ('/home/nano/Desktop/images/16062025/11/50/image_16062025_11_51_05_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/11/50/image_16062025_11_50_55_10684.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/51/image_16062025_11_51_45_10606.jpg', '/home/nano/Desktop/images/16062025/11/51/image_16062025_11_51_35_9588.jpg', '/home/nano/Desktop/images/16062025/11/51/image_16062025_11_51_25_10609.jpg', '/home/nano/Desktop/images/16062025/11/51/image_16062025_11_51_14_9589.jpg', '/home/nano/Desktop/images/16062025/11/50/image_16062025_11_51_05_9634.jpg', '/home/nano/Desktop/images/16062025/11/50/image_16062025_11_50_55_10684.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/51/image_16062025_11_51_45_10606.jpg
/home/nano/Desktop/images/16062025/11/51/image_16062025_11_51_35_9588.jpg
/home/nano/Desktop/images/16062025/11/51/image_16062025_11_51_25_10609.jpg
/home/nano/Desktop/images/16062025/11/51/image_16062025_11_51_14_9589.jpg
/home/nano/Desktop/images/16062025/11/50/image_16062025_11_51_05_9634.jpg
/home/nano/Desktop/images/16062025/11/50/image_16062025_11_50_55_10684.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366534149","1366534131","1366534140","1366534157","1366534165","1366534173"],"photo_ids_order":["1366534131","1366534140","1366534149","1366534157","1366534165","1366534173"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0d34857f0d050b8b547500cbf6d06f5c.jpg","text":"TemporaryFile(/tmp/multipartBody2448041486352206203asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750067558139,"filename":"image_16062025_11_51_25_10609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/23e204665daccf5d7a54a3e2d7baeff1.jpg","text":"TemporaryFile(/tmp/multipartBody8603067670325577343asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750067558139,"filename":"image_16062025_11_51_45_10606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3da107990889e8a359a325821939a012.jpg","text":"TemporaryFile(/tmp/multipartBody6862779921590340694asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750067558139,"filename":"image_16062025_11_51_35_9588.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a3f8941aa179d69da603f47f10ee2a2e.jpg","text":"TemporaryFile(/tmp/multipartBody3893331861345999830asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750067558139,"filename":"image_16062025_11_51_14_9589.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f01142711a13d875e93cb6f0344ba6ad.jpg","text":"TemporaryFile(/tmp/multipartBody4383817460467761206asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750067558139,"filename":"image_16062025_11_51_05_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c15edc9739bb058aa12cb18b28253500.jpg","text":"TemporaryFile(/tmp/multipartBody8556923673571113669asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750067558139,"filename":"image_16062025_11_50_55_10684.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366534149","file1":"1366534140","file0":"1366534131","file4":"1366534165","file5":"1366534173","file3":"1366534157"},"map_files_photo_id_array":[{"photo_id":"1366534173","filename":"file5"},{"photo_id":"1366534149","filename":"file2"},{"photo_id":"1366534165","filename":"file4"},{"photo_id":"1366534140","filename":"file1"},{"photo_id":"1366534131","filename":"file0"},{"photo_id":"1366534157","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366534149":["hashtag1","hashtag2"]},{"1366534131":["hashtag1","hashtag2"]},{"1366534140":["hashtag1","hashtag2"]},{"1366534157":["hashtag1","hashtag2"]},{"1366534165":["hashtag1","hashtag2"]},{"1366534173":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366534149, 1366534131, 1366534140, 1366534157, 1366534165, 1366534173)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 177.88448524475098 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:54:32.800697
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/54/image_16062025_11_54_45_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/11/54/image_16062025_11_54_35_9598.jpg', 2), ('/home/nano/Desktop/images/16062025/11/54/image_16062025_11_54_25_10612.jpg', 2), ('/home/nano/Desktop/images/16062025/11/54/image_16062025_11_54_14_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/11/53/image_16062025_11_54_05_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/11/53/image_16062025_11_53_55_10627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/54/image_16062025_11_54_45_10624.jpg', '/home/nano/Desktop/images/16062025/11/54/image_16062025_11_54_35_9598.jpg', '/home/nano/Desktop/images/16062025/11/54/image_16062025_11_54_25_10612.jpg', '/home/nano/Desktop/images/16062025/11/54/image_16062025_11_54_14_9626.jpg', '/home/nano/Desktop/images/16062025/11/53/image_16062025_11_54_05_9603.jpg', '/home/nano/Desktop/images/16062025/11/53/image_16062025_11_53_55_10627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/54/image_16062025_11_54_45_10624.jpg
/home/nano/Desktop/images/16062025/11/54/image_16062025_11_54_35_9598.jpg
/home/nano/Desktop/images/16062025/11/54/image_16062025_11_54_25_10612.jpg
/home/nano/Desktop/images/16062025/11/54/image_16062025_11_54_14_9626.jpg
/home/nano/Desktop/images/16062025/11/53/image_16062025_11_54_05_9603.jpg
/home/nano/Desktop/images/16062025/11/53/image_16062025_11_53_55_10627.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366534203","1366534187","1366534256","1366534217","1366534195","1366534210"],"photo_ids_order":["1366534187","1366534195","1366534203","1366534210","1366534217","1366534256"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7cac83e97ac51933b84d93a68bebd5be.jpg","text":"TemporaryFile(/tmp/multipartBody6661874575033171905asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750067744799,"filename":"image_16062025_11_54_25_10612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/230d788af9c72faeb51cd373405cea8e.jpg","text":"TemporaryFile(/tmp/multipartBody8372191238901433688asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750067744799,"filename":"image_16062025_11_54_45_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9d01091734a99451fe1fa2a571a99481.jpg","text":"TemporaryFile(/tmp/multipartBody5214586435405504413asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750067744799,"filename":"image_16062025_11_53_55_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/595dff2fcd57cc1ad1d7ae049d2a1aec.jpg","text":"TemporaryFile(/tmp/multipartBody1624664301111990271asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750067744799,"filename":"image_16062025_11_54_05_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fc08c8eb513dd2b26095819f080cfe12.jpg","text":"TemporaryFile(/tmp/multipartBody4859039216632876555asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750067744799,"filename":"image_16062025_11_54_35_9598.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7c5a697edc5f11cb8888dddddb57a46d.jpg","text":"TemporaryFile(/tmp/multipartBody7905715104082852971asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750067744799,"filename":"image_16062025_11_54_14_9626.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366534203","file1":"1366534195","file0":"1366534187","file4":"1366534217","file5":"1366534256","file3":"1366534210"},"map_files_photo_id_array":[{"photo_id":"1366534256","filename":"file5"},{"photo_id":"1366534203","filename":"file2"},{"photo_id":"1366534217","filename":"file4"},{"photo_id":"1366534195","filename":"file1"},{"photo_id":"1366534187","filename":"file0"},{"photo_id":"1366534210","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366534203":["hashtag1","hashtag2"]},{"1366534187":["hashtag1","hashtag2"]},{"1366534256":["hashtag1","hashtag2"]},{"1366534217":["hashtag1","hashtag2"]},{"1366534195":["hashtag1","hashtag2"]},{"1366534210":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366534203, 1366534187, 1366534256, 1366534217, 1366534195, 1366534210)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 137.79951119422913 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:57:02.654636
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/56/image_16062025_11_56_45_9599.jpg', 2), ('/home/nano/Desktop/images/16062025/11/56/image_16062025_11_56_35_10605.jpg', 2), ('/home/nano/Desktop/images/16062025/11/56/image_16062025_11_56_24_9598.jpg', 2), ('/home/nano/Desktop/images/16062025/11/56/image_16062025_11_56_15_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/11/55/image_16062025_11_56_05_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/11/55/image_16062025_11_55_55_9605.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/56/image_16062025_11_56_45_9599.jpg', '/home/nano/Desktop/images/16062025/11/56/image_16062025_11_56_35_10605.jpg', '/home/nano/Desktop/images/16062025/11/56/image_16062025_11_56_24_9598.jpg', '/home/nano/Desktop/images/16062025/11/56/image_16062025_11_56_15_9603.jpg', '/home/nano/Desktop/images/16062025/11/55/image_16062025_11_56_05_10625.jpg', '/home/nano/Desktop/images/16062025/11/55/image_16062025_11_55_55_9605.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/56/image_16062025_11_56_45_9599.jpg
/home/nano/Desktop/images/16062025/11/56/image_16062025_11_56_35_10605.jpg
/home/nano/Desktop/images/16062025/11/56/image_16062025_11_56_24_9598.jpg
/home/nano/Desktop/images/16062025/11/56/image_16062025_11_56_15_9603.jpg
/home/nano/Desktop/images/16062025/11/55/image_16062025_11_56_05_10625.jpg
/home/nano/Desktop/images/16062025/11/55/image_16062025_11_55_55_9605.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 11:59:03.046210
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/11/57/image_16062025_11_57_45_10660.jpg', 2), ('/home/nano/Desktop/images/16062025/11/57/image_16062025_11_57_35_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/11/57/image_16062025_11_57_25_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/11/57/image_16062025_11_57_14_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/11/56/image_16062025_11_57_05_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/11/56/image_16062025_11_56_55_10615.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/11/57/image_16062025_11_57_45_10660.jpg', '/home/nano/Desktop/images/16062025/11/57/image_16062025_11_57_35_9615.jpg', '/home/nano/Desktop/images/16062025/11/57/image_16062025_11_57_25_10625.jpg', '/home/nano/Desktop/images/16062025/11/57/image_16062025_11_57_14_9610.jpg', '/home/nano/Desktop/images/16062025/11/56/image_16062025_11_57_05_9613.jpg', '/home/nano/Desktop/images/16062025/11/56/image_16062025_11_56_55_10615.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/11/57/image_16062025_11_57_45_10660.jpg
/home/nano/Desktop/images/16062025/11/57/image_16062025_11_57_35_9615.jpg
/home/nano/Desktop/images/16062025/11/57/image_16062025_11_57_25_10625.jpg
/home/nano/Desktop/images/16062025/11/57/image_16062025_11_57_14_9610.jpg
/home/nano/Desktop/images/16062025/11/56/image_16062025_11_57_05_9613.jpg
/home/nano/Desktop/images/16062025/11/56/image_16062025_11_56_55_10615.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366534731","1366534784","1366534704","1366534739","1366534768","1366534695"],"photo_ids_order":["1366534695","1366534704","1366534731","1366534739","1366534768","1366534784"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/067076b77c43fc156cce66b1362af568.jpg","text":"TemporaryFile(/tmp/multipartBody8160959894275787151asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068021308,"filename":"image_16062025_11_57_25_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4632a46b7b858a092ea59327c733359a.jpg","text":"TemporaryFile(/tmp/multipartBody1606367737326884057asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068021308,"filename":"image_16062025_11_56_55_10615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8bf7ff26b3cfc384c4e5c96f765f2b77.jpg","text":"TemporaryFile(/tmp/multipartBody3762249759836199271asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068021308,"filename":"image_16062025_11_57_35_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/aa5d8556a6e9df056ef25c01debdfe3a.jpg","text":"TemporaryFile(/tmp/multipartBody1913582754769231272asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068021308,"filename":"image_16062025_11_57_14_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/165240928e3c8adeb90181f1c18f8ef2.jpg","text":"TemporaryFile(/tmp/multipartBody9023808253922875584asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068021308,"filename":"image_16062025_11_57_05_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/74259de6b8363f25c0adb1ca09427bbb.jpg","text":"TemporaryFile(/tmp/multipartBody1906030526907009507asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068021308,"filename":"image_16062025_11_57_45_10660.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366534731","file1":"1366534704","file0":"1366534695","file4":"1366534768","file5":"1366534784","file3":"1366534739"},"map_files_photo_id_array":[{"photo_id":"1366534784","filename":"file5"},{"photo_id":"1366534731","filename":"file2"},{"photo_id":"1366534768","filename":"file4"},{"photo_id":"1366534704","filename":"file1"},{"photo_id":"1366534695","filename":"file0"},{"photo_id":"1366534739","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366534731":["hashtag1","hashtag2"]},{"1366534784":["hashtag1","hashtag2"]},{"1366534704":["hashtag1","hashtag2"]},{"1366534739":["hashtag1","hashtag2"]},{"1366534768":["hashtag1","hashtag2"]},{"1366534695":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366534731, 1366534784, 1366534704, 1366534739, 1366534768, 1366534695)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 117.05646991729736 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:01:03.253441
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/00/image_16062025_12_00_45_10734.jpg', 2), ('/home/nano/Desktop/images/16062025/12/00/image_16062025_12_00_34_9724.jpg', 2), ('/home/nano/Desktop/images/16062025/12/00/image_16062025_12_00_25_9726.jpg', 2), ('/home/nano/Desktop/images/16062025/12/00/image_16062025_12_00_15_9746.jpg', 2), ('/home/nano/Desktop/images/16062025/11/59/image_16062025_12_00_05_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/11/59/image_16062025_11_59_55_9616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/00/image_16062025_12_00_45_10734.jpg', '/home/nano/Desktop/images/16062025/12/00/image_16062025_12_00_34_9724.jpg', '/home/nano/Desktop/images/16062025/12/00/image_16062025_12_00_25_9726.jpg', '/home/nano/Desktop/images/16062025/12/00/image_16062025_12_00_15_9746.jpg', '/home/nano/Desktop/images/16062025/11/59/image_16062025_12_00_05_10642.jpg', '/home/nano/Desktop/images/16062025/11/59/image_16062025_11_59_55_9616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/00/image_16062025_12_00_45_10734.jpg
/home/nano/Desktop/images/16062025/12/00/image_16062025_12_00_34_9724.jpg
/home/nano/Desktop/images/16062025/12/00/image_16062025_12_00_25_9726.jpg
/home/nano/Desktop/images/16062025/12/00/image_16062025_12_00_15_9746.jpg
/home/nano/Desktop/images/16062025/11/59/image_16062025_12_00_05_10642.jpg
/home/nano/Desktop/images/16062025/11/59/image_16062025_11_59_55_9616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366534818","1366534848","1366534823","1366534861","1366534840","1366534810"],"photo_ids_order":["1366534810","1366534818","1366534823","1366534840","1366534848","1366534861"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3b9115f36d47be4eada7aceb404a59b7.jpg","text":"TemporaryFile(/tmp/multipartBody8531820821361593372asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068125952,"filename":"image_16062025_12_00_34_9724.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/871baf09fa20514bff4aad691e653d60.jpg","text":"TemporaryFile(/tmp/multipartBody785920212898341334asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068125952,"filename":"image_16062025_12_00_05_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d83a29b44ddae1ad088242ffb5a972e8.jpg","text":"TemporaryFile(/tmp/multipartBody2938149876247602364asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068125952,"filename":"image_16062025_12_00_25_9726.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ee3aae30a934c736133ad6cef5a81912.jpg","text":"TemporaryFile(/tmp/multipartBody6915403776295860214asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068125952,"filename":"image_16062025_11_59_55_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/11047084230c0661ed80361f6ae5ac51.jpg","text":"TemporaryFile(/tmp/multipartBody2363377998406568371asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068125952,"filename":"image_16062025_12_00_15_9746.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8c011b3a62e83dccad793d5e32bac12c.jpg","text":"TemporaryFile(/tmp/multipartBody3426578421898033677asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068125952,"filename":"image_16062025_12_00_45_10734.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366534823","file1":"1366534818","file0":"1366534810","file4":"1366534848","file5":"1366534861","file3":"1366534840"},"map_files_photo_id_array":[{"photo_id":"1366534861","filename":"file5"},{"photo_id":"1366534823","filename":"file2"},{"photo_id":"1366534848","filename":"file4"},{"photo_id":"1366534818","filename":"file1"},{"photo_id":"1366534810","filename":"file0"},{"photo_id":"1366534840","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366534818":["hashtag1","hashtag2"]},{"1366534848":["hashtag1","hashtag2"]},{"1366534823":["hashtag1","hashtag2"]},{"1366534861":["hashtag1","hashtag2"]},{"1366534840":["hashtag1","hashtag2"]},{"1366534810":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366534818, 1366534848, 1366534823, 1366534861, 1366534840, 1366534810)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 88.3735499382019 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:02:32.627486
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/02/image_16062025_12_02_45_10736.jpg', 2), ('/home/nano/Desktop/images/16062025/12/02/image_16062025_12_02_34_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/12/02/image_16062025_12_02_25_9771.jpg', 2), ('/home/nano/Desktop/images/16062025/12/02/image_16062025_12_02_15_9782.jpg', 2), ('/home/nano/Desktop/images/16062025/12/01/image_16062025_12_02_05_10767.jpg', 2), ('/home/nano/Desktop/images/16062025/12/01/image_16062025_12_01_54_9732.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/02/image_16062025_12_02_45_10736.jpg', '/home/nano/Desktop/images/16062025/12/02/image_16062025_12_02_34_9647.jpg', '/home/nano/Desktop/images/16062025/12/02/image_16062025_12_02_25_9771.jpg', '/home/nano/Desktop/images/16062025/12/02/image_16062025_12_02_15_9782.jpg', '/home/nano/Desktop/images/16062025/12/01/image_16062025_12_02_05_10767.jpg', '/home/nano/Desktop/images/16062025/12/01/image_16062025_12_01_54_9732.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/02/image_16062025_12_02_45_10736.jpg
/home/nano/Desktop/images/16062025/12/02/image_16062025_12_02_34_9647.jpg
/home/nano/Desktop/images/16062025/12/02/image_16062025_12_02_25_9771.jpg
/home/nano/Desktop/images/16062025/12/02/image_16062025_12_02_15_9782.jpg
/home/nano/Desktop/images/16062025/12/01/image_16062025_12_02_05_10767.jpg
/home/nano/Desktop/images/16062025/12/01/image_16062025_12_01_54_9732.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366534884","1366534905","1366534895","1366534889","1366534876","1366534900"],"photo_ids_order":["1366534876","1366534884","1366534889","1366534895","1366534900","1366534905"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3e3acc5b832f90537819c4b0f85dc65e.jpg","text":"TemporaryFile(/tmp/multipartBody2781548155125827843asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068218736,"filename":"image_16062025_12_02_34_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0ff4018449124e5eddf3f470a4cfc0e0.jpg","text":"TemporaryFile(/tmp/multipartBody1335101521634174066asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068218736,"filename":"image_16062025_12_01_54_9732.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3bce87e42ea6e11c85ad21cd9dd780d0.jpg","text":"TemporaryFile(/tmp/multipartBody7941406758584429440asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068218736,"filename":"image_16062025_12_02_15_9782.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b4edc7279022fa4717313d9adf9a8b3c.jpg","text":"TemporaryFile(/tmp/multipartBody1826840742073752675asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068218736,"filename":"image_16062025_12_02_25_9771.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6bca2c7613dc827299b9cad620c8f17c.jpg","text":"TemporaryFile(/tmp/multipartBody8576637559408553070asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068218736,"filename":"image_16062025_12_02_45_10736.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c23ba0e049ddc69fec45f9154c7f4f28.jpg","text":"TemporaryFile(/tmp/multipartBody5235452681207456960asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068218736,"filename":"image_16062025_12_02_05_10767.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366534889","file1":"1366534884","file0":"1366534876","file4":"1366534900","file5":"1366534905","file3":"1366534895"},"map_files_photo_id_array":[{"photo_id":"1366534905","filename":"file5"},{"photo_id":"1366534889","filename":"file2"},{"photo_id":"1366534900","filename":"file4"},{"photo_id":"1366534884","filename":"file1"},{"photo_id":"1366534876","filename":"file0"},{"photo_id":"1366534895","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366534884":["hashtag1","hashtag2"]},{"1366534905":["hashtag1","hashtag2"]},{"1366534895":["hashtag1","hashtag2"]},{"1366534889":["hashtag1","hashtag2"]},{"1366534876":["hashtag1","hashtag2"]},{"1366534900":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366534884, 1366534905, 1366534895, 1366534889, 1366534876, 1366534900)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 72.7710771560669 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:03:47.721767
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/03/image_16062025_12_03_45_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/12/03/image_16062025_12_03_35_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/12/03/image_16062025_12_03_25_9688.jpg', 2), ('/home/nano/Desktop/images/16062025/12/03/image_16062025_12_03_15_10723.jpg', 2), ('/home/nano/Desktop/images/16062025/12/02/image_16062025_12_03_05_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/12/02/image_16062025_12_02_55_9709.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/03/image_16062025_12_03_45_10638.jpg', '/home/nano/Desktop/images/16062025/12/03/image_16062025_12_03_35_9622.jpg', '/home/nano/Desktop/images/16062025/12/03/image_16062025_12_03_25_9688.jpg', '/home/nano/Desktop/images/16062025/12/03/image_16062025_12_03_15_10723.jpg', '/home/nano/Desktop/images/16062025/12/02/image_16062025_12_03_05_9652.jpg', '/home/nano/Desktop/images/16062025/12/02/image_16062025_12_02_55_9709.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/03/image_16062025_12_03_45_10638.jpg
/home/nano/Desktop/images/16062025/12/03/image_16062025_12_03_35_9622.jpg
/home/nano/Desktop/images/16062025/12/03/image_16062025_12_03_25_9688.jpg
/home/nano/Desktop/images/16062025/12/03/image_16062025_12_03_15_10723.jpg
/home/nano/Desktop/images/16062025/12/02/image_16062025_12_03_05_9652.jpg
/home/nano/Desktop/images/16062025/12/02/image_16062025_12_02_55_9709.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366534962","1366534950","1366534944","1366534967","1366534958","1366534972"],"photo_ids_order":["1366534944","1366534950","1366534958","1366534962","1366534967","1366534972"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9250532a21f7ed6b17692430b602b57f.jpg","text":"TemporaryFile(/tmp/multipartBody4357183956420653384asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068290803,"filename":"image_16062025_12_03_15_10723.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dbdb808806bb1376b73d43e02f57dd5c.jpg","text":"TemporaryFile(/tmp/multipartBody8590430160995286803asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068290803,"filename":"image_16062025_12_03_35_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/877218d01f3fc89dbf5a62c77cd15a0d.jpg","text":"TemporaryFile(/tmp/multipartBody6955343083395156332asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068290803,"filename":"image_16062025_12_03_45_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/21e5c78794fe00c04055aaa4829beb60.jpg","text":"TemporaryFile(/tmp/multipartBody4489909784763477999asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068290803,"filename":"image_16062025_12_03_05_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ded9c70e567078062e575a463b07cefc.jpg","text":"TemporaryFile(/tmp/multipartBody1463030869883627723asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068290803,"filename":"image_16062025_12_03_25_9688.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6e472c7e2f3e7a7843517973e41c3532.jpg","text":"TemporaryFile(/tmp/multipartBody5907748724083425608asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068290803,"filename":"image_16062025_12_02_55_9709.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366534958","file1":"1366534950","file0":"1366534944","file4":"1366534967","file5":"1366534972","file3":"1366534962"},"map_files_photo_id_array":[{"photo_id":"1366534972","filename":"file5"},{"photo_id":"1366534958","filename":"file2"},{"photo_id":"1366534967","filename":"file4"},{"photo_id":"1366534950","filename":"file1"},{"photo_id":"1366534944","filename":"file0"},{"photo_id":"1366534962","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366534962":["hashtag1","hashtag2"]},{"1366534950":["hashtag1","hashtag2"]},{"1366534944":["hashtag1","hashtag2"]},{"1366534967":["hashtag1","hashtag2"]},{"1366534958":["hashtag1","hashtag2"]},{"1366534972":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366534962, 1366534950, 1366534944, 1366534967, 1366534958, 1366534972)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 71.95669150352478 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:05:02.682688
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/04/image_16062025_12_04_45_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/12/04/image_16062025_12_04_35_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/12/04/image_16062025_12_04_25_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/12/04/image_16062025_12_04_15_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/12/03/image_16062025_12_04_04_9648.jpg', 2), ('/home/nano/Desktop/images/16062025/12/03/image_16062025_12_03_55_9619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/04/image_16062025_12_04_45_9627.jpg', '/home/nano/Desktop/images/16062025/12/04/image_16062025_12_04_35_10647.jpg', '/home/nano/Desktop/images/16062025/12/04/image_16062025_12_04_25_9625.jpg', '/home/nano/Desktop/images/16062025/12/04/image_16062025_12_04_15_10653.jpg', '/home/nano/Desktop/images/16062025/12/03/image_16062025_12_04_04_9648.jpg', '/home/nano/Desktop/images/16062025/12/03/image_16062025_12_03_55_9619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/04/image_16062025_12_04_45_9627.jpg
/home/nano/Desktop/images/16062025/12/04/image_16062025_12_04_35_10647.jpg
/home/nano/Desktop/images/16062025/12/04/image_16062025_12_04_25_9625.jpg
/home/nano/Desktop/images/16062025/12/04/image_16062025_12_04_15_10653.jpg
/home/nano/Desktop/images/16062025/12/03/image_16062025_12_04_04_9648.jpg
/home/nano/Desktop/images/16062025/12/03/image_16062025_12_03_55_9619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366535031","1366534985","1366535015","1366535026","1366535002","1366535037"],"photo_ids_order":["1366534985","1366535002","1366535015","1366535026","1366535031","1366535037"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8f494392bbc2c73bbccf54509968a14b.jpg","text":"TemporaryFile(/tmp/multipartBody3228805961364548675asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068368346,"filename":"image_16062025_12_04_04_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8b240886ee39916fd49e706b59ff9fc0.jpg","text":"TemporaryFile(/tmp/multipartBody4219548118076375504asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068368346,"filename":"image_16062025_12_04_45_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e197a59dddac5a4e2fb847711c37ba83.jpg","text":"TemporaryFile(/tmp/multipartBody5798585121004267128asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068368346,"filename":"image_16062025_12_04_25_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/58f8e8e2924cae966409d2dd2fb75287.jpg","text":"TemporaryFile(/tmp/multipartBody2353764689275855846asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068368346,"filename":"image_16062025_12_04_15_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3840ccac8791b1c09cf9e30cd3af4706.jpg","text":"TemporaryFile(/tmp/multipartBody901150638936899782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068368346,"filename":"image_16062025_12_04_35_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d08c61f9c9b1238cb842cfa8cd0ad237.jpg","text":"TemporaryFile(/tmp/multipartBody3316682877755152396asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068368346,"filename":"image_16062025_12_03_55_9619.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366535015","file1":"1366535002","file0":"1366534985","file4":"1366535031","file5":"1366535037","file3":"1366535026"},"map_files_photo_id_array":[{"photo_id":"1366535037","filename":"file5"},{"photo_id":"1366535015","filename":"file2"},{"photo_id":"1366535031","filename":"file4"},{"photo_id":"1366535002","filename":"file1"},{"photo_id":"1366534985","filename":"file0"},{"photo_id":"1366535026","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366535031":["hashtag1","hashtag2"]},{"1366534985":["hashtag1","hashtag2"]},{"1366535015":["hashtag1","hashtag2"]},{"1366535026":["hashtag1","hashtag2"]},{"1366535002":["hashtag1","hashtag2"]},{"1366535037":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366535031, 1366534985, 1366535015, 1366535026, 1366535002, 1366535037)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 86.71385717391968 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:06:32.140396
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/06/image_16062025_12_06_45_10691.jpg', 2), ('/home/nano/Desktop/images/16062025/12/06/image_16062025_12_06_35_9791.jpg', 2), ('/home/nano/Desktop/images/16062025/12/06/image_16062025_12_06_25_9788.jpg', 2), ('/home/nano/Desktop/images/16062025/12/06/image_16062025_12_06_15_9813.jpg', 2), ('/home/nano/Desktop/images/16062025/12/05/image_16062025_12_06_05_10741.jpg', 2), ('/home/nano/Desktop/images/16062025/12/05/image_16062025_12_05_54_9670.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/06/image_16062025_12_06_45_10691.jpg', '/home/nano/Desktop/images/16062025/12/06/image_16062025_12_06_35_9791.jpg', '/home/nano/Desktop/images/16062025/12/06/image_16062025_12_06_25_9788.jpg', '/home/nano/Desktop/images/16062025/12/06/image_16062025_12_06_15_9813.jpg', '/home/nano/Desktop/images/16062025/12/05/image_16062025_12_06_05_10741.jpg', '/home/nano/Desktop/images/16062025/12/05/image_16062025_12_05_54_9670.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/06/image_16062025_12_06_45_10691.jpg
/home/nano/Desktop/images/16062025/12/06/image_16062025_12_06_35_9791.jpg
/home/nano/Desktop/images/16062025/12/06/image_16062025_12_06_25_9788.jpg
/home/nano/Desktop/images/16062025/12/06/image_16062025_12_06_15_9813.jpg
/home/nano/Desktop/images/16062025/12/05/image_16062025_12_06_05_10741.jpg
/home/nano/Desktop/images/16062025/12/05/image_16062025_12_05_54_9670.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366535861","1366535537","1366535312","1366535824","1366535694","1366535769"],"photo_ids_order":["1366535312","1366535537","1366535694","1366535769","1366535824","1366535861"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d687d3c65c601941ca1d07d08a8572ae.jpg","text":"TemporaryFile(/tmp/multipartBody3470184910822822874asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068459324,"filename":"image_16062025_12_05_54_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a5810750bc2a7db4e7249ffa9c1bdeef.jpg","text":"TemporaryFile(/tmp/multipartBody4264344656803375792asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068459324,"filename":"image_16062025_12_06_35_9791.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/48caaea28895d864f0fe642b5d00ce39.jpg","text":"TemporaryFile(/tmp/multipartBody1683200667706343370asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068459324,"filename":"image_16062025_12_06_45_10691.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0f0edc99a0886f8b85c66e8286c99b3a.jpg","text":"TemporaryFile(/tmp/multipartBody7968278455171577760asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068459324,"filename":"image_16062025_12_06_05_10741.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/81363bfe9dd298dcbb7b6e54f5387fa8.jpg","text":"TemporaryFile(/tmp/multipartBody8388656663553461569asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068459324,"filename":"image_16062025_12_06_25_9788.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6254061324957547833f1e5569b26b1d.jpg","text":"TemporaryFile(/tmp/multipartBody8558830291131498936asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068459324,"filename":"image_16062025_12_06_15_9813.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366535694","file1":"1366535537","file0":"1366535312","file4":"1366535824","file5":"1366535861","file3":"1366535769"},"map_files_photo_id_array":[{"photo_id":"1366535861","filename":"file5"},{"photo_id":"1366535694","filename":"file2"},{"photo_id":"1366535824","filename":"file4"},{"photo_id":"1366535537","filename":"file1"},{"photo_id":"1366535312","filename":"file0"},{"photo_id":"1366535769","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366535861":["hashtag1","hashtag2"]},{"1366535537":["hashtag1","hashtag2"]},{"1366535312":["hashtag1","hashtag2"]},{"1366535824":["hashtag1","hashtag2"]},{"1366535694":["hashtag1","hashtag2"]},{"1366535769":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366535861, 1366535537, 1366535312, 1366535824, 1366535694, 1366535769)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 105.86255073547363 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:08:32.346849
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/08/image_16062025_12_08_45_10774.jpg', 2), ('/home/nano/Desktop/images/16062025/12/08/image_16062025_12_08_34_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/12/08/image_16062025_12_08_25_9841.jpg', 2), ('/home/nano/Desktop/images/16062025/12/08/image_16062025_12_08_15_9854.jpg', 2), ('/home/nano/Desktop/images/16062025/12/07/image_16062025_12_08_05_9864.jpg', 2), ('/home/nano/Desktop/images/16062025/12/07/image_16062025_12_07_55_10830.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/08/image_16062025_12_08_45_10774.jpg', '/home/nano/Desktop/images/16062025/12/08/image_16062025_12_08_34_9659.jpg', '/home/nano/Desktop/images/16062025/12/08/image_16062025_12_08_25_9841.jpg', '/home/nano/Desktop/images/16062025/12/08/image_16062025_12_08_15_9854.jpg', '/home/nano/Desktop/images/16062025/12/07/image_16062025_12_08_05_9864.jpg', '/home/nano/Desktop/images/16062025/12/07/image_16062025_12_07_55_10830.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/08/image_16062025_12_08_45_10774.jpg
/home/nano/Desktop/images/16062025/12/08/image_16062025_12_08_34_9659.jpg
/home/nano/Desktop/images/16062025/12/08/image_16062025_12_08_25_9841.jpg
/home/nano/Desktop/images/16062025/12/08/image_16062025_12_08_15_9854.jpg
/home/nano/Desktop/images/16062025/12/07/image_16062025_12_08_05_9864.jpg
/home/nano/Desktop/images/16062025/12/07/image_16062025_12_07_55_10830.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366536026","1366536106","1366536100","1366536090","1366536066","1366536074"],"photo_ids_order":["1366536026","1366536066","1366536074","1366536090","1366536100","1366536106"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4017898c22d31d25fc97b722639424e3.jpg","text":"TemporaryFile(/tmp/multipartBody7595689489925984224asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068578717,"filename":"image_16062025_12_08_45_10774.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/814bc78daa78456341b05bd77d3806db.jpg","text":"TemporaryFile(/tmp/multipartBody7331051249982920711asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068578717,"filename":"image_16062025_12_07_55_10830.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6008ab74a879fdfa360bde1f047738e9.jpg","text":"TemporaryFile(/tmp/multipartBody4946060799936644308asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068578717,"filename":"image_16062025_12_08_05_9864.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fc36c8b83289febb3adb0e8c0a9c410f.jpg","text":"TemporaryFile(/tmp/multipartBody6644082546472947108asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068578717,"filename":"image_16062025_12_08_15_9854.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/95974e38810b3926be3a520083f86520.jpg","text":"TemporaryFile(/tmp/multipartBody6860877266185909854asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068578717,"filename":"image_16062025_12_08_34_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4e733ffe0f3ef085d8502e7cade505ec.jpg","text":"TemporaryFile(/tmp/multipartBody1658536979736361530asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068578717,"filename":"image_16062025_12_08_25_9841.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366536074","file1":"1366536066","file0":"1366536026","file4":"1366536100","file5":"1366536106","file3":"1366536090"},"map_files_photo_id_array":[{"photo_id":"1366536106","filename":"file5"},{"photo_id":"1366536074","filename":"file2"},{"photo_id":"1366536100","filename":"file4"},{"photo_id":"1366536066","filename":"file1"},{"photo_id":"1366536026","filename":"file0"},{"photo_id":"1366536090","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366536026":["hashtag1","hashtag2"]},{"1366536106":["hashtag1","hashtag2"]},{"1366536100":["hashtag1","hashtag2"]},{"1366536090":["hashtag1","hashtag2"]},{"1366536066":["hashtag1","hashtag2"]},{"1366536074":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366536026, 1366536106, 1366536100, 1366536090, 1366536066, 1366536074)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 77.3589379787445 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:10:02.970027
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/09/image_16062025_12_09_45_9767.jpg', 2), ('/home/nano/Desktop/images/16062025/12/09/image_16062025_12_09_35_9820.jpg', 2), ('/home/nano/Desktop/images/16062025/12/09/image_16062025_12_09_25_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/12/09/image_16062025_12_09_15_9815.jpg', 2), ('/home/nano/Desktop/images/16062025/12/08/image_16062025_12_09_05_9785.jpg', 2), ('/home/nano/Desktop/images/16062025/12/08/image_16062025_12_08_55_9786.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/09/image_16062025_12_09_45_9767.jpg', '/home/nano/Desktop/images/16062025/12/09/image_16062025_12_09_35_9820.jpg', '/home/nano/Desktop/images/16062025/12/09/image_16062025_12_09_25_10640.jpg', '/home/nano/Desktop/images/16062025/12/09/image_16062025_12_09_15_9815.jpg', '/home/nano/Desktop/images/16062025/12/08/image_16062025_12_09_05_9785.jpg', '/home/nano/Desktop/images/16062025/12/08/image_16062025_12_08_55_9786.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/09/image_16062025_12_09_45_9767.jpg
/home/nano/Desktop/images/16062025/12/09/image_16062025_12_09_35_9820.jpg
/home/nano/Desktop/images/16062025/12/09/image_16062025_12_09_25_10640.jpg
/home/nano/Desktop/images/16062025/12/09/image_16062025_12_09_15_9815.jpg
/home/nano/Desktop/images/16062025/12/08/image_16062025_12_09_05_9785.jpg
/home/nano/Desktop/images/16062025/12/08/image_16062025_12_08_55_9786.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366536148","1366536157","1366536136","1366536162","1366536132","1366536185"],"photo_ids_order":["1366536132","1366536136","1366536148","1366536157","1366536162","1366536185"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d39da209c8e7f1a54b39ecb8459cef85.jpg","text":"TemporaryFile(/tmp/multipartBody5280349071280461063asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068667830,"filename":"image_16062025_12_09_25_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e4d4974ae28bdd470c41c3ca8e3ab407.jpg","text":"TemporaryFile(/tmp/multipartBody8423505119178722596asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068667830,"filename":"image_16062025_12_09_15_9815.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0a5bc4b923114aad2990033d5ca07700.jpg","text":"TemporaryFile(/tmp/multipartBody7119791602115731318asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068667830,"filename":"image_16062025_12_09_35_9820.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c5bff1e583a3790fd0e687ee017344e3.jpg","text":"TemporaryFile(/tmp/multipartBody8883384966852179274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068667830,"filename":"image_16062025_12_09_05_9785.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d32df15a1e21006ace5c97c2b862d627.jpg","text":"TemporaryFile(/tmp/multipartBody8516996482962220650asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068667830,"filename":"image_16062025_12_09_45_9767.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5db625d30bd63aefb5851b8dec4ac494.jpg","text":"TemporaryFile(/tmp/multipartBody4049273306026378846asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068667830,"filename":"image_16062025_12_08_55_9786.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366536148","file1":"1366536136","file0":"1366536132","file4":"1366536162","file5":"1366536185","file3":"1366536157"},"map_files_photo_id_array":[{"photo_id":"1366536185","filename":"file5"},{"photo_id":"1366536148","filename":"file2"},{"photo_id":"1366536162","filename":"file4"},{"photo_id":"1366536136","filename":"file1"},{"photo_id":"1366536132","filename":"file0"},{"photo_id":"1366536157","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366536148":["hashtag1","hashtag2"]},{"1366536157":["hashtag1","hashtag2"]},{"1366536136":["hashtag1","hashtag2"]},{"1366536162":["hashtag1","hashtag2"]},{"1366536132":["hashtag1","hashtag2"]},{"1366536185":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366536148, 1366536157, 1366536136, 1366536162, 1366536132, 1366536185)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 106.42024970054626 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:12:02.314820
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/11/image_16062025_12_11_44_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/12/11/image_16062025_12_11_35_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/12/11/image_16062025_12_11_25_10709.jpg', 2), ('/home/nano/Desktop/images/16062025/12/11/image_16062025_12_11_14_9723.jpg', 2), ('/home/nano/Desktop/images/16062025/12/10/image_16062025_12_11_05_9766.jpg', 2), ('/home/nano/Desktop/images/16062025/12/10/image_16062025_12_10_55_9672.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/11/image_16062025_12_11_44_9634.jpg', '/home/nano/Desktop/images/16062025/12/11/image_16062025_12_11_35_9660.jpg', '/home/nano/Desktop/images/16062025/12/11/image_16062025_12_11_25_10709.jpg', '/home/nano/Desktop/images/16062025/12/11/image_16062025_12_11_14_9723.jpg', '/home/nano/Desktop/images/16062025/12/10/image_16062025_12_11_05_9766.jpg', '/home/nano/Desktop/images/16062025/12/10/image_16062025_12_10_55_9672.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/11/image_16062025_12_11_44_9634.jpg
/home/nano/Desktop/images/16062025/12/11/image_16062025_12_11_35_9660.jpg
/home/nano/Desktop/images/16062025/12/11/image_16062025_12_11_25_10709.jpg
/home/nano/Desktop/images/16062025/12/11/image_16062025_12_11_14_9723.jpg
/home/nano/Desktop/images/16062025/12/10/image_16062025_12_11_05_9766.jpg
/home/nano/Desktop/images/16062025/12/10/image_16062025_12_10_55_9672.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366536305","1366536301","1366536264","1366536240","1366536309","1366536293"],"photo_ids_order":["1366536240","1366536264","1366536293","1366536301","1366536305","1366536309"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/29c017cb0c5e1739cea68c88303f8342.jpg","text":"TemporaryFile(/tmp/multipartBody6661221371568596142asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068790891,"filename":"image_16062025_12_11_05_9766.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6d7c871c646052a533aac10fd158f52b.jpg","text":"TemporaryFile(/tmp/multipartBody5698369516404331825asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068790891,"filename":"image_16062025_12_11_14_9723.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7153128f125cad6b8610ab4bdc65a851.jpg","text":"TemporaryFile(/tmp/multipartBody7063162250227167111asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068790891,"filename":"image_16062025_12_11_35_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b67e661f09b2d0e58dc3075e7b7060db.jpg","text":"TemporaryFile(/tmp/multipartBody6889472859852151229asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068790891,"filename":"image_16062025_12_11_44_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/273f28e97941de0aa2c8c6ae2ccdcf03.jpg","text":"TemporaryFile(/tmp/multipartBody3494944496520743280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068790891,"filename":"image_16062025_12_10_55_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/12f6c8dd01a8bb28f2a57370616f62cc.jpg","text":"TemporaryFile(/tmp/multipartBody4114267117106741245asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068790891,"filename":"image_16062025_12_11_25_10709.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366536293","file1":"1366536264","file0":"1366536240","file4":"1366536305","file5":"1366536309","file3":"1366536301"},"map_files_photo_id_array":[{"photo_id":"1366536309","filename":"file5"},{"photo_id":"1366536293","filename":"file2"},{"photo_id":"1366536305","filename":"file4"},{"photo_id":"1366536264","filename":"file1"},{"photo_id":"1366536240","filename":"file0"},{"photo_id":"1366536301","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366536305":["hashtag1","hashtag2"]},{"1366536301":["hashtag1","hashtag2"]},{"1366536264":["hashtag1","hashtag2"]},{"1366536240":["hashtag1","hashtag2"]},{"1366536309":["hashtag1","hashtag2"]},{"1366536293":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366536305, 1366536301, 1366536264, 1366536240, 1366536309, 1366536293)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 85.58310580253601 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:13:31.922534
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/13/image_16062025_12_13_45_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/12/13/image_16062025_12_13_35_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/12/13/image_16062025_12_13_25_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/12/13/image_16062025_12_13_15_10688.jpg', 2), ('/home/nano/Desktop/images/16062025/12/12/image_16062025_12_13_04_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/12/12/image_16062025_12_12_55_9608.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/13/image_16062025_12_13_45_9627.jpg', '/home/nano/Desktop/images/16062025/12/13/image_16062025_12_13_35_10637.jpg', '/home/nano/Desktop/images/16062025/12/13/image_16062025_12_13_25_9611.jpg', '/home/nano/Desktop/images/16062025/12/13/image_16062025_12_13_15_10688.jpg', '/home/nano/Desktop/images/16062025/12/12/image_16062025_12_13_04_9626.jpg', '/home/nano/Desktop/images/16062025/12/12/image_16062025_12_12_55_9608.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/13/image_16062025_12_13_45_9627.jpg
/home/nano/Desktop/images/16062025/12/13/image_16062025_12_13_35_10637.jpg
/home/nano/Desktop/images/16062025/12/13/image_16062025_12_13_25_9611.jpg
/home/nano/Desktop/images/16062025/12/13/image_16062025_12_13_15_10688.jpg
/home/nano/Desktop/images/16062025/12/12/image_16062025_12_13_04_9626.jpg
/home/nano/Desktop/images/16062025/12/12/image_16062025_12_12_55_9608.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366536320","1366536338","1366536328","1366536316","1366536324","1366536333"],"photo_ids_order":["1366536316","1366536320","1366536324","1366536328","1366536333","1366536338"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1df3a15ebe2fb9d357a8eb67f8bbd6e6.jpg","text":"TemporaryFile(/tmp/multipartBody4374876424313928884asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068875053,"filename":"image_16062025_12_13_35_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/213bb1da3340d8311479b843c8f93ba2.jpg","text":"TemporaryFile(/tmp/multipartBody6943787426324342684asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068875053,"filename":"image_16062025_12_12_55_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/66e5b0c6594568130fc30a958958a283.jpg","text":"TemporaryFile(/tmp/multipartBody2859582373516681796asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068875053,"filename":"image_16062025_12_13_15_10688.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b2e915e7c8e7195d17203ef47a8ed1ad.jpg","text":"TemporaryFile(/tmp/multipartBody1008127004985098238asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068875053,"filename":"image_16062025_12_13_45_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/33ca3bb78963c7ee628fcb63c9778672.jpg","text":"TemporaryFile(/tmp/multipartBody4298374020636510723asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068875053,"filename":"image_16062025_12_13_25_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/336a9190470e6fd4a6a2a2bd6fee964d.jpg","text":"TemporaryFile(/tmp/multipartBody1086007965993524006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068875053,"filename":"image_16062025_12_13_04_9626.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366536324","file1":"1366536320","file0":"1366536316","file4":"1366536333","file5":"1366536338","file3":"1366536328"},"map_files_photo_id_array":[{"photo_id":"1366536338","filename":"file5"},{"photo_id":"1366536324","filename":"file2"},{"photo_id":"1366536333","filename":"file4"},{"photo_id":"1366536320","filename":"file1"},{"photo_id":"1366536316","filename":"file0"},{"photo_id":"1366536328","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366536320":["hashtag1","hashtag2"]},{"1366536338":["hashtag1","hashtag2"]},{"1366536328":["hashtag1","hashtag2"]},{"1366536316":["hashtag1","hashtag2"]},{"1366536324":["hashtag1","hashtag2"]},{"1366536333":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366536320, 1366536338, 1366536328, 1366536316, 1366536324, 1366536333)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 62.82372808456421 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:14:47.022059
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/14/image_16062025_12_14_45_10807.jpg', 2), ('/home/nano/Desktop/images/16062025/12/14/image_16062025_12_14_34_9830.jpg', 2), ('/home/nano/Desktop/images/16062025/12/14/image_16062025_12_14_25_9747.jpg', 2), ('/home/nano/Desktop/images/16062025/12/14/image_16062025_12_14_15_9656.jpg', 2), ('/home/nano/Desktop/images/16062025/12/13/image_16062025_12_14_05_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/12/13/image_16062025_12_13_55_9611.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/14/image_16062025_12_14_45_10807.jpg', '/home/nano/Desktop/images/16062025/12/14/image_16062025_12_14_34_9830.jpg', '/home/nano/Desktop/images/16062025/12/14/image_16062025_12_14_25_9747.jpg', '/home/nano/Desktop/images/16062025/12/14/image_16062025_12_14_15_9656.jpg', '/home/nano/Desktop/images/16062025/12/13/image_16062025_12_14_05_10640.jpg', '/home/nano/Desktop/images/16062025/12/13/image_16062025_12_13_55_9611.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/14/image_16062025_12_14_45_10807.jpg
/home/nano/Desktop/images/16062025/12/14/image_16062025_12_14_34_9830.jpg
/home/nano/Desktop/images/16062025/12/14/image_16062025_12_14_25_9747.jpg
/home/nano/Desktop/images/16062025/12/14/image_16062025_12_14_15_9656.jpg
/home/nano/Desktop/images/16062025/12/13/image_16062025_12_14_05_10640.jpg
/home/nano/Desktop/images/16062025/12/13/image_16062025_12_13_55_9611.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366536359","1366536376","1366536370","1366536355","1366536392","1366536386"],"photo_ids_order":["1366536355","1366536359","1366536370","1366536376","1366536386","1366536392"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/58b8d9dfb99e7b907498e0414e675e36.jpg","text":"TemporaryFile(/tmp/multipartBody1110599353279042379asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068952457,"filename":"image_16062025_12_14_34_9830.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8eaa1371835a94e46b81a4c5d8f14168.jpg","text":"TemporaryFile(/tmp/multipartBody8774633009569646273asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068952457,"filename":"image_16062025_12_14_15_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/10ced31a6ff6ba9d8f85e2a56a2ce228.jpg","text":"TemporaryFile(/tmp/multipartBody8079842485152204324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068952457,"filename":"image_16062025_12_14_25_9747.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f2ddb12e7195761dc49b0c4df4a24c4f.jpg","text":"TemporaryFile(/tmp/multipartBody7992551377200265288asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068952457,"filename":"image_16062025_12_14_45_10807.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2c8eac4f2a13cfbcfcb07502961a9d59.jpg","text":"TemporaryFile(/tmp/multipartBody656199909110013246asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068952457,"filename":"image_16062025_12_13_55_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a538f09d34001188fe822c446a44bee4.jpg","text":"TemporaryFile(/tmp/multipartBody15504931183156052asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750068952457,"filename":"image_16062025_12_14_05_10640.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366536370","file1":"1366536359","file0":"1366536355","file4":"1366536386","file5":"1366536392","file3":"1366536376"},"map_files_photo_id_array":[{"photo_id":"1366536392","filename":"file5"},{"photo_id":"1366536370","filename":"file2"},{"photo_id":"1366536386","filename":"file4"},{"photo_id":"1366536359","filename":"file1"},{"photo_id":"1366536355","filename":"file0"},{"photo_id":"1366536376","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366536359":["hashtag1","hashtag2"]},{"1366536376":["hashtag1","hashtag2"]},{"1366536370":["hashtag1","hashtag2"]},{"1366536355":["hashtag1","hashtag2"]},{"1366536392":["hashtag1","hashtag2"]},{"1366536386":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366536359, 1366536376, 1366536370, 1366536355, 1366536392, 1366536386)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 101.41980314254761 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:16:32.275873
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/16/image_16062025_12_16_45_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/12/16/image_16062025_12_16_35_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/12/16/image_16062025_12_16_25_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/12/16/image_16062025_12_16_15_9687.jpg', 2), ('/home/nano/Desktop/images/16062025/12/15/image_16062025_12_16_05_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/12/15/image_16062025_12_15_55_10708.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/16/image_16062025_12_16_45_9632.jpg', '/home/nano/Desktop/images/16062025/12/16/image_16062025_12_16_35_9654.jpg', '/home/nano/Desktop/images/16062025/12/16/image_16062025_12_16_25_10628.jpg', '/home/nano/Desktop/images/16062025/12/16/image_16062025_12_16_15_9687.jpg', '/home/nano/Desktop/images/16062025/12/15/image_16062025_12_16_05_9668.jpg', '/home/nano/Desktop/images/16062025/12/15/image_16062025_12_15_55_10708.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/16/image_16062025_12_16_45_9632.jpg
/home/nano/Desktop/images/16062025/12/16/image_16062025_12_16_35_9654.jpg
/home/nano/Desktop/images/16062025/12/16/image_16062025_12_16_25_10628.jpg
/home/nano/Desktop/images/16062025/12/16/image_16062025_12_16_15_9687.jpg
/home/nano/Desktop/images/16062025/12/15/image_16062025_12_16_05_9668.jpg
/home/nano/Desktop/images/16062025/12/15/image_16062025_12_15_55_10708.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366536416","1366536431","1366536424","1366536441","1366536411","1366536405"],"photo_ids_order":["1366536405","1366536411","1366536416","1366536424","1366536431","1366536441"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/202bb14fd34a106beb72b9cbc4fc391b.jpg","text":"TemporaryFile(/tmp/multipartBody6846232030856151025asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069065194,"filename":"image_16062025_12_16_25_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/465b330bfcef7de2011c34e5f7816286.jpg","text":"TemporaryFile(/tmp/multipartBody8072118296354190732asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069065194,"filename":"image_16062025_12_16_05_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a2e5e3bc284bb0e393faac108022c3e6.jpg","text":"TemporaryFile(/tmp/multipartBody5584062786681485121asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069065194,"filename":"image_16062025_12_16_15_9687.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2fac20e3e8e21cd5b676d909cffee8a0.jpg","text":"TemporaryFile(/tmp/multipartBody9154546174769054075asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069065194,"filename":"image_16062025_12_15_55_10708.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b6c85ab8a1a29137dd2329f34529fb6e.jpg","text":"TemporaryFile(/tmp/multipartBody4323577663169695495asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069065194,"filename":"image_16062025_12_16_35_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/007c4daf12a17724c48c2f553e473a0d.jpg","text":"TemporaryFile(/tmp/multipartBody431695002417942748asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069065194,"filename":"image_16062025_12_16_45_9632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366536416","file1":"1366536411","file0":"1366536405","file4":"1366536431","file5":"1366536441","file3":"1366536424"},"map_files_photo_id_array":[{"photo_id":"1366536441","filename":"file5"},{"photo_id":"1366536416","filename":"file2"},{"photo_id":"1366536431","filename":"file4"},{"photo_id":"1366536411","filename":"file1"},{"photo_id":"1366536405","filename":"file0"},{"photo_id":"1366536424","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366536416":["hashtag1","hashtag2"]},{"1366536431":["hashtag1","hashtag2"]},{"1366536424":["hashtag1","hashtag2"]},{"1366536441":["hashtag1","hashtag2"]},{"1366536411":["hashtag1","hashtag2"]},{"1366536405":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366536416, 1366536431, 1366536424, 1366536441, 1366536411, 1366536405)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 148.4582552909851 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:19:03.655218
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/18/image_16062025_12_18_45_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/12/18/image_16062025_12_18_35_10708.jpg', 2), ('/home/nano/Desktop/images/16062025/12/18/image_16062025_12_18_25_9678.jpg', 2), ('/home/nano/Desktop/images/16062025/12/18/image_16062025_12_18_15_9685.jpg', 2), ('/home/nano/Desktop/images/16062025/12/17/image_16062025_12_18_05_10686.jpg', 2), ('/home/nano/Desktop/images/16062025/12/17/image_16062025_12_17_55_9618.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/18/image_16062025_12_18_45_9629.jpg', '/home/nano/Desktop/images/16062025/12/18/image_16062025_12_18_35_10708.jpg', '/home/nano/Desktop/images/16062025/12/18/image_16062025_12_18_25_9678.jpg', '/home/nano/Desktop/images/16062025/12/18/image_16062025_12_18_15_9685.jpg', '/home/nano/Desktop/images/16062025/12/17/image_16062025_12_18_05_10686.jpg', '/home/nano/Desktop/images/16062025/12/17/image_16062025_12_17_55_9618.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/18/image_16062025_12_18_45_9629.jpg
/home/nano/Desktop/images/16062025/12/18/image_16062025_12_18_35_10708.jpg
/home/nano/Desktop/images/16062025/12/18/image_16062025_12_18_25_9678.jpg
/home/nano/Desktop/images/16062025/12/18/image_16062025_12_18_15_9685.jpg
/home/nano/Desktop/images/16062025/12/17/image_16062025_12_18_05_10686.jpg
/home/nano/Desktop/images/16062025/12/17/image_16062025_12_17_55_9618.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366536517","1366536468","1366536462","1366536513","1366536507","1366536482"],"photo_ids_order":["1366536462","1366536468","1366536482","1366536507","1366536513","1366536517"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/91180fad2cc8304fa0d75f57f48eb4b0.jpg","text":"TemporaryFile(/tmp/multipartBody381137804421482525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069209238,"filename":"image_16062025_12_17_55_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/af8b49c32f50cd130c7b5be4e20816e7.jpg","text":"TemporaryFile(/tmp/multipartBody3324061674984848151asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069209238,"filename":"image_16062025_12_18_35_10708.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/923d6cd625dae7aeedff9d6a58039b01.jpg","text":"TemporaryFile(/tmp/multipartBody216726767601525561asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069209238,"filename":"image_16062025_12_18_45_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/408853d65bc986a07855a327ba847502.jpg","text":"TemporaryFile(/tmp/multipartBody3135283374393563692asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069209238,"filename":"image_16062025_12_18_05_10686.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/752a1932a37bb5aedaf15e845a216b09.jpg","text":"TemporaryFile(/tmp/multipartBody1420750477610706314asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069209238,"filename":"image_16062025_12_18_15_9685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8434c4532c070a1db6cc2a5f77dfca8f.jpg","text":"TemporaryFile(/tmp/multipartBody3179186025074243764asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069209238,"filename":"image_16062025_12_18_25_9678.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366536482","file1":"1366536468","file0":"1366536462","file4":"1366536513","file5":"1366536517","file3":"1366536507"},"map_files_photo_id_array":[{"photo_id":"1366536517","filename":"file5"},{"photo_id":"1366536482","filename":"file2"},{"photo_id":"1366536513","filename":"file4"},{"photo_id":"1366536468","filename":"file1"},{"photo_id":"1366536462","filename":"file0"},{"photo_id":"1366536507","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366536517":["hashtag1","hashtag2"]},{"1366536468":["hashtag1","hashtag2"]},{"1366536462":["hashtag1","hashtag2"]},{"1366536513":["hashtag1","hashtag2"]},{"1366536507":["hashtag1","hashtag2"]},{"1366536482":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366536517, 1366536468, 1366536462, 1366536513, 1366536507, 1366536482)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 136.9374017715454 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:21:31.813553
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/21/image_16062025_12_21_45_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/12/21/image_16062025_12_21_35_9653.jpg', 2), ('/home/nano/Desktop/images/16062025/12/21/image_16062025_12_21_25_10681.jpg', 2), ('/home/nano/Desktop/images/16062025/12/21/image_16062025_12_21_14_9724.jpg', 2), ('/home/nano/Desktop/images/16062025/12/20/image_16062025_12_21_05_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/12/20/image_16062025_12_20_55_10623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/21/image_16062025_12_21_45_10621.jpg', '/home/nano/Desktop/images/16062025/12/21/image_16062025_12_21_35_9653.jpg', '/home/nano/Desktop/images/16062025/12/21/image_16062025_12_21_25_10681.jpg', '/home/nano/Desktop/images/16062025/12/21/image_16062025_12_21_14_9724.jpg', '/home/nano/Desktop/images/16062025/12/20/image_16062025_12_21_05_9652.jpg', '/home/nano/Desktop/images/16062025/12/20/image_16062025_12_20_55_10623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/21/image_16062025_12_21_45_10621.jpg
/home/nano/Desktop/images/16062025/12/21/image_16062025_12_21_35_9653.jpg
/home/nano/Desktop/images/16062025/12/21/image_16062025_12_21_25_10681.jpg
/home/nano/Desktop/images/16062025/12/21/image_16062025_12_21_14_9724.jpg
/home/nano/Desktop/images/16062025/12/20/image_16062025_12_21_05_9652.jpg
/home/nano/Desktop/images/16062025/12/20/image_16062025_12_20_55_10623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366536554","1366536571","1366536585","1366536549","1366536543","1366536563"],"photo_ids_order":["1366536543","1366536549","1366536554","1366536563","1366536571","1366536585"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fecc49fea4b7962f3d18544264afcf1d.jpg","text":"TemporaryFile(/tmp/multipartBody7302567899383963609asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069356396,"filename":"image_16062025_12_21_25_10681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/becf7aa14ee77987ca711e3c72e807dc.jpg","text":"TemporaryFile(/tmp/multipartBody7026785778852585648asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069356396,"filename":"image_16062025_12_21_05_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/550517cc9c7359a4fc976be10cf5afec.jpg","text":"TemporaryFile(/tmp/multipartBody1842529389102000000asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069356396,"filename":"image_16062025_12_20_55_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/09187538c0bd7474d8f60ded1475e028.jpg","text":"TemporaryFile(/tmp/multipartBody3910429799667037750asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069356396,"filename":"image_16062025_12_21_35_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c708fdf588f98d7948b62abb7854dd67.jpg","text":"TemporaryFile(/tmp/multipartBody1787655492217645632asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069356396,"filename":"image_16062025_12_21_45_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5b09e098d6e241fd7ba8e443c807abc2.jpg","text":"TemporaryFile(/tmp/multipartBody3473578136531162956asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069356396,"filename":"image_16062025_12_21_14_9724.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366536554","file1":"1366536549","file0":"1366536543","file4":"1366536571","file5":"1366536585","file3":"1366536563"},"map_files_photo_id_array":[{"photo_id":"1366536585","filename":"file5"},{"photo_id":"1366536554","filename":"file2"},{"photo_id":"1366536571","filename":"file4"},{"photo_id":"1366536549","filename":"file1"},{"photo_id":"1366536543","filename":"file0"},{"photo_id":"1366536563","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366536554":["hashtag1","hashtag2"]},{"1366536571":["hashtag1","hashtag2"]},{"1366536585":["hashtag1","hashtag2"]},{"1366536549":["hashtag1","hashtag2"]},{"1366536543":["hashtag1","hashtag2"]},{"1366536563":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366536554, 1366536571, 1366536585, 1366536549, 1366536543, 1366536563)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 69.39515423774719 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:22:46.936436
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/22/image_16062025_12_22_44_9724.jpg', 2), ('/home/nano/Desktop/images/16062025/12/22/image_16062025_12_22_35_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/12/22/image_16062025_12_22_25_10737.jpg', 2), ('/home/nano/Desktop/images/16062025/12/22/image_16062025_12_22_14_9713.jpg', 2), ('/home/nano/Desktop/images/16062025/12/21/image_16062025_12_22_05_9653.jpg', 2), ('/home/nano/Desktop/images/16062025/12/21/image_16062025_12_21_55_9656.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/22/image_16062025_12_22_44_9724.jpg', '/home/nano/Desktop/images/16062025/12/22/image_16062025_12_22_35_9609.jpg', '/home/nano/Desktop/images/16062025/12/22/image_16062025_12_22_25_10737.jpg', '/home/nano/Desktop/images/16062025/12/22/image_16062025_12_22_14_9713.jpg', '/home/nano/Desktop/images/16062025/12/21/image_16062025_12_22_05_9653.jpg', '/home/nano/Desktop/images/16062025/12/21/image_16062025_12_21_55_9656.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/22/image_16062025_12_22_44_9724.jpg
/home/nano/Desktop/images/16062025/12/22/image_16062025_12_22_35_9609.jpg
/home/nano/Desktop/images/16062025/12/22/image_16062025_12_22_25_10737.jpg
/home/nano/Desktop/images/16062025/12/22/image_16062025_12_22_14_9713.jpg
/home/nano/Desktop/images/16062025/12/21/image_16062025_12_22_05_9653.jpg
/home/nano/Desktop/images/16062025/12/21/image_16062025_12_21_55_9656.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366536644","1366536653","1366536631","1366536625","1366536628","1366536636"],"photo_ids_order":["1366536625","1366536628","1366536631","1366536636","1366536644","1366536653"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0bc03bbd0512bd182084c2f3fff6cc89.jpg","text":"TemporaryFile(/tmp/multipartBody3637205069378617801asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069430459,"filename":"image_16062025_12_22_05_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fe153f8a27d97feef4976a4c2c1bfb77.jpg","text":"TemporaryFile(/tmp/multipartBody6115004178003786923asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069430459,"filename":"image_16062025_12_21_55_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/040cb7dcabfc1640258fe04e5a05b3e5.jpg","text":"TemporaryFile(/tmp/multipartBody4637193137133056251asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069430459,"filename":"image_16062025_12_22_25_10737.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6a1911b5e80fe00ac7790ed05d93a46e.jpg","text":"TemporaryFile(/tmp/multipartBody5323869261955041000asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069430459,"filename":"image_16062025_12_22_44_9724.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/26fa90d9c4783fa77a7fc839a2ca0f4f.jpg","text":"TemporaryFile(/tmp/multipartBody5037947454037612012asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069430459,"filename":"image_16062025_12_22_35_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dd480c2114624946acd4d6e4875531c0.jpg","text":"TemporaryFile(/tmp/multipartBody7737798675825922486asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069430459,"filename":"image_16062025_12_22_14_9713.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366536631","file1":"1366536628","file0":"1366536625","file4":"1366536644","file5":"1366536653","file3":"1366536636"},"map_files_photo_id_array":[{"photo_id":"1366536653","filename":"file5"},{"photo_id":"1366536631","filename":"file2"},{"photo_id":"1366536644","filename":"file4"},{"photo_id":"1366536628","filename":"file1"},{"photo_id":"1366536625","filename":"file0"},{"photo_id":"1366536636","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366536644":["hashtag1","hashtag2"]},{"1366536653":["hashtag1","hashtag2"]},{"1366536631":["hashtag1","hashtag2"]},{"1366536625":["hashtag1","hashtag2"]},{"1366536628":["hashtag1","hashtag2"]},{"1366536636":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366536644, 1366536653, 1366536631, 1366536625, 1366536628, 1366536636)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 55.441296339035034 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:23:47.051599
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/23/image_16062025_12_23_45_9736.jpg', 2), ('/home/nano/Desktop/images/16062025/12/23/image_16062025_12_23_35_9791.jpg', 2), ('/home/nano/Desktop/images/16062025/12/23/image_16062025_12_23_25_10741.jpg', 2), ('/home/nano/Desktop/images/16062025/12/23/image_16062025_12_23_15_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/12/22/image_16062025_12_23_05_9731.jpg', 2), ('/home/nano/Desktop/images/16062025/12/22/image_16062025_12_22_55_10719.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/23/image_16062025_12_23_45_9736.jpg', '/home/nano/Desktop/images/16062025/12/23/image_16062025_12_23_35_9791.jpg', '/home/nano/Desktop/images/16062025/12/23/image_16062025_12_23_25_10741.jpg', '/home/nano/Desktop/images/16062025/12/23/image_16062025_12_23_15_9646.jpg', '/home/nano/Desktop/images/16062025/12/22/image_16062025_12_23_05_9731.jpg', '/home/nano/Desktop/images/16062025/12/22/image_16062025_12_22_55_10719.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/23/image_16062025_12_23_45_9736.jpg
/home/nano/Desktop/images/16062025/12/23/image_16062025_12_23_35_9791.jpg
/home/nano/Desktop/images/16062025/12/23/image_16062025_12_23_25_10741.jpg
/home/nano/Desktop/images/16062025/12/23/image_16062025_12_23_15_9646.jpg
/home/nano/Desktop/images/16062025/12/22/image_16062025_12_23_05_9731.jpg
/home/nano/Desktop/images/16062025/12/22/image_16062025_12_22_55_10719.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366536694","1366536742","1366536684","1366536663","1366536717","1366536698"],"photo_ids_order":["1366536663","1366536684","1366536694","1366536698","1366536717","1366536742"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6ccdb0782d11993df57e5a5afe176307.jpg","text":"TemporaryFile(/tmp/multipartBody3908524409120652982asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069493870,"filename":"image_16062025_12_23_25_10741.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/11cbb6c4511f39fad658ed97d6a1fb62.jpg","text":"TemporaryFile(/tmp/multipartBody4206194955334276046asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069493870,"filename":"image_16062025_12_22_55_10719.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cd8e64738a6ed1dc5f0b292fed607eab.jpg","text":"TemporaryFile(/tmp/multipartBody5000995621500703470asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069493870,"filename":"image_16062025_12_23_35_9791.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/eb0ac46685ba15e802a4491e296137f9.jpg","text":"TemporaryFile(/tmp/multipartBody773721959156570282asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069493870,"filename":"image_16062025_12_23_45_9736.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a7a592f467318ed2758aae898553a7b8.jpg","text":"TemporaryFile(/tmp/multipartBody1161118070966142107asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069493870,"filename":"image_16062025_12_23_05_9731.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7ec64363215f6decabe363c1b0b0a638.jpg","text":"TemporaryFile(/tmp/multipartBody8568672952090294411asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069493870,"filename":"image_16062025_12_23_15_9646.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366536694","file1":"1366536684","file0":"1366536663","file4":"1366536717","file5":"1366536742","file3":"1366536698"},"map_files_photo_id_array":[{"photo_id":"1366536742","filename":"file5"},{"photo_id":"1366536694","filename":"file2"},{"photo_id":"1366536717","filename":"file4"},{"photo_id":"1366536684","filename":"file1"},{"photo_id":"1366536663","filename":"file0"},{"photo_id":"1366536698","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366536694":["hashtag1","hashtag2"]},{"1366536742":["hashtag1","hashtag2"]},{"1366536684":["hashtag1","hashtag2"]},{"1366536663":["hashtag1","hashtag2"]},{"1366536717":["hashtag1","hashtag2"]},{"1366536698":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366536694, 1366536742, 1366536684, 1366536663, 1366536717, 1366536698)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 133.7689230442047 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:26:02.886541
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/26/image_16062025_12_26_44_9578.jpg', 2), ('/home/nano/Desktop/images/16062025/12/25/image_16062025_12_25_45_9591.jpg', 2), ('/home/nano/Desktop/images/16062025/12/25/image_16062025_12_25_35_10615.jpg', 2), ('/home/nano/Desktop/images/16062025/12/25/image_16062025_12_25_25_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/12/25/image_16062025_12_25_15_10617.jpg', 2), ('/home/nano/Desktop/images/16062025/12/24/image_16062025_12_25_04_9581.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/26/image_16062025_12_26_44_9578.jpg', '/home/nano/Desktop/images/16062025/12/25/image_16062025_12_25_45_9591.jpg', '/home/nano/Desktop/images/16062025/12/25/image_16062025_12_25_35_10615.jpg', '/home/nano/Desktop/images/16062025/12/25/image_16062025_12_25_25_9597.jpg', '/home/nano/Desktop/images/16062025/12/25/image_16062025_12_25_15_10617.jpg', '/home/nano/Desktop/images/16062025/12/24/image_16062025_12_25_04_9581.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/26/image_16062025_12_26_44_9578.jpg
/home/nano/Desktop/images/16062025/12/25/image_16062025_12_25_45_9591.jpg
/home/nano/Desktop/images/16062025/12/25/image_16062025_12_25_35_10615.jpg
/home/nano/Desktop/images/16062025/12/25/image_16062025_12_25_25_9597.jpg
/home/nano/Desktop/images/16062025/12/25/image_16062025_12_25_15_10617.jpg
/home/nano/Desktop/images/16062025/12/24/image_16062025_12_25_04_9581.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366536752","1366536784","1366536802","1366536789","1366536808","1366536834"],"photo_ids_order":["1366536752","1366536784","1366536789","1366536802","1366536808","1366536834"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7ba9b8e3f678f85f3ad59ac0058be52d.jpg","text":"TemporaryFile(/tmp/multipartBody4157246257703173761asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069626014,"filename":"image_16062025_12_26_44_9578.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/89e05115b54326b84d893f5710940dbb.jpg","text":"TemporaryFile(/tmp/multipartBody8736168442991639388asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069626014,"filename":"image_16062025_12_25_45_9591.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9ffb492d5c72df832d063e5a760efa52.jpg","text":"TemporaryFile(/tmp/multipartBody1099225953300015525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069626014,"filename":"image_16062025_12_25_25_9597.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/763606d782ae39ef628e6c443caff253.jpg","text":"TemporaryFile(/tmp/multipartBody4693931079826060128asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069626014,"filename":"image_16062025_12_25_35_10615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a9afbdef63ec9ee6151095b8c716f97f.jpg","text":"TemporaryFile(/tmp/multipartBody3642125538880843698asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069626014,"filename":"image_16062025_12_25_15_10617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3206ebfc1a906babf2e6cf5645257555.jpg","text":"TemporaryFile(/tmp/multipartBody1805037441190722328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069626014,"filename":"image_16062025_12_25_04_9581.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366536789","file1":"1366536784","file0":"1366536752","file4":"1366536808","file5":"1366536834","file3":"1366536802"},"map_files_photo_id_array":[{"photo_id":"1366536834","filename":"file5"},{"photo_id":"1366536789","filename":"file2"},{"photo_id":"1366536808","filename":"file4"},{"photo_id":"1366536784","filename":"file1"},{"photo_id":"1366536752","filename":"file0"},{"photo_id":"1366536802","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366536752":["hashtag1","hashtag2"]},{"1366536784":["hashtag1","hashtag2"]},{"1366536802":["hashtag1","hashtag2"]},{"1366536789":["hashtag1","hashtag2"]},{"1366536808":["hashtag1","hashtag2"]},{"1366536834":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366536752, 1366536784, 1366536802, 1366536789, 1366536808, 1366536834)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 74.72646474838257 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:27:32.501983
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/27/image_16062025_12_27_45_10597.jpg', 2), ('/home/nano/Desktop/images/16062025/12/27/image_16062025_12_27_34_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/12/27/image_16062025_12_27_25_9574.jpg', 2), ('/home/nano/Desktop/images/16062025/12/27/image_16062025_12_27_15_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/12/26/image_16062025_12_27_05_9585.jpg', 2), ('/home/nano/Desktop/images/16062025/12/26/image_16062025_12_26_55_10571.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/27/image_16062025_12_27_45_10597.jpg', '/home/nano/Desktop/images/16062025/12/27/image_16062025_12_27_34_9602.jpg', '/home/nano/Desktop/images/16062025/12/27/image_16062025_12_27_25_9574.jpg', '/home/nano/Desktop/images/16062025/12/27/image_16062025_12_27_15_10609.jpg', '/home/nano/Desktop/images/16062025/12/26/image_16062025_12_27_05_9585.jpg', '/home/nano/Desktop/images/16062025/12/26/image_16062025_12_26_55_10571.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/27/image_16062025_12_27_45_10597.jpg
/home/nano/Desktop/images/16062025/12/27/image_16062025_12_27_34_9602.jpg
/home/nano/Desktop/images/16062025/12/27/image_16062025_12_27_25_9574.jpg
/home/nano/Desktop/images/16062025/12/27/image_16062025_12_27_15_10609.jpg
/home/nano/Desktop/images/16062025/12/26/image_16062025_12_27_05_9585.jpg
/home/nano/Desktop/images/16062025/12/26/image_16062025_12_26_55_10571.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366536892","1366536913","1366536916","1366536901","1366536907","1366536921"],"photo_ids_order":["1366536892","1366536901","1366536907","1366536913","1366536916","1366536921"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7a60dfda84ddf3e8f807190e3f892116.jpg","text":"TemporaryFile(/tmp/multipartBody5293948160563562940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069715682,"filename":"image_16062025_12_27_45_10597.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/22e8d2dd0983b2a202c53cc0a8dd0f3e.jpg","text":"TemporaryFile(/tmp/multipartBody5682667907521681284asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069715682,"filename":"image_16062025_12_27_15_10609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9af77f9776885488761fd5355ad68cb3.jpg","text":"TemporaryFile(/tmp/multipartBody7970420154325731510asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069715682,"filename":"image_16062025_12_27_05_9585.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fe6737e9e773e94e7e3c40852a2eb748.jpg","text":"TemporaryFile(/tmp/multipartBody3222305745717684524asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069715682,"filename":"image_16062025_12_27_34_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c22d6dca37ba6163f9d34459e277a1dd.jpg","text":"TemporaryFile(/tmp/multipartBody6504724580112190083asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069715682,"filename":"image_16062025_12_27_25_9574.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0f4071ffa3af5701d09d4ee721f1f1e1.jpg","text":"TemporaryFile(/tmp/multipartBody3305306534693184452asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069715682,"filename":"image_16062025_12_26_55_10571.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366536907","file1":"1366536901","file0":"1366536892","file4":"1366536916","file5":"1366536921","file3":"1366536913"},"map_files_photo_id_array":[{"photo_id":"1366536921","filename":"file5"},{"photo_id":"1366536907","filename":"file2"},{"photo_id":"1366536916","filename":"file4"},{"photo_id":"1366536901","filename":"file1"},{"photo_id":"1366536892","filename":"file0"},{"photo_id":"1366536913","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366536892":["hashtag1","hashtag2"]},{"1366536913":["hashtag1","hashtag2"]},{"1366536916":["hashtag1","hashtag2"]},{"1366536901":["hashtag1","hashtag2"]},{"1366536907":["hashtag1","hashtag2"]},{"1366536921":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366536892, 1366536913, 1366536916, 1366536901, 1366536907, 1366536921)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 90.99686360359192 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:29:17.736450
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/29/image_16062025_12_29_45_10606.jpg', 2), ('/home/nano/Desktop/images/16062025/12/29/image_16062025_12_29_35_9589.jpg', 2), ('/home/nano/Desktop/images/16062025/12/29/image_16062025_12_29_25_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/12/29/image_16062025_12_29_14_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/12/28/image_16062025_12_29_05_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/12/28/image_16062025_12_28_55_10592.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/29/image_16062025_12_29_45_10606.jpg', '/home/nano/Desktop/images/16062025/12/29/image_16062025_12_29_35_9589.jpg', '/home/nano/Desktop/images/16062025/12/29/image_16062025_12_29_25_10608.jpg', '/home/nano/Desktop/images/16062025/12/29/image_16062025_12_29_14_9616.jpg', '/home/nano/Desktop/images/16062025/12/28/image_16062025_12_29_05_9605.jpg', '/home/nano/Desktop/images/16062025/12/28/image_16062025_12_28_55_10592.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/29/image_16062025_12_29_45_10606.jpg
/home/nano/Desktop/images/16062025/12/29/image_16062025_12_29_35_9589.jpg
/home/nano/Desktop/images/16062025/12/29/image_16062025_12_29_25_10608.jpg
/home/nano/Desktop/images/16062025/12/29/image_16062025_12_29_14_9616.jpg
/home/nano/Desktop/images/16062025/12/28/image_16062025_12_29_05_9605.jpg
/home/nano/Desktop/images/16062025/12/28/image_16062025_12_28_55_10592.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366536947","1366536997","1366536988","1366536973","1366536967","1366536961"],"photo_ids_order":["1366536947","1366536961","1366536967","1366536973","1366536988","1366536997"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/28a4b936bc7226fc27388f23e59e73f5.jpg","text":"TemporaryFile(/tmp/multipartBody3376770642094463804asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069826790,"filename":"image_16062025_12_29_45_10606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d29bb800178f7abfb899aed6a63880b4.jpg","text":"TemporaryFile(/tmp/multipartBody5818389412480572066asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069826790,"filename":"image_16062025_12_28_55_10592.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bedd3f43a3a1ef5cdb820fe80c027826.jpg","text":"TemporaryFile(/tmp/multipartBody6450500923327983324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069826790,"filename":"image_16062025_12_29_05_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/75daad1b7ac8d68a60d6043597b3d784.jpg","text":"TemporaryFile(/tmp/multipartBody5772178044516625836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069826790,"filename":"image_16062025_12_29_14_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0cb9682c808eb18a5ee34d3fb1dbacdc.jpg","text":"TemporaryFile(/tmp/multipartBody8127666213404779434asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069826790,"filename":"image_16062025_12_29_25_10608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/39f4b6137b2c9de7fab1c0fbebd76ae1.jpg","text":"TemporaryFile(/tmp/multipartBody4180845083995472351asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069826790,"filename":"image_16062025_12_29_35_9589.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366536967","file1":"1366536961","file0":"1366536947","file4":"1366536988","file5":"1366536997","file3":"1366536973"},"map_files_photo_id_array":[{"photo_id":"1366536997","filename":"file5"},{"photo_id":"1366536967","filename":"file2"},{"photo_id":"1366536988","filename":"file4"},{"photo_id":"1366536961","filename":"file1"},{"photo_id":"1366536947","filename":"file0"},{"photo_id":"1366536973","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366536947":["hashtag1","hashtag2"]},{"1366536997":["hashtag1","hashtag2"]},{"1366536988":["hashtag1","hashtag2"]},{"1366536973":["hashtag1","hashtag2"]},{"1366536967":["hashtag1","hashtag2"]},{"1366536961":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366536947, 1366536997, 1366536988, 1366536973, 1366536967, 1366536961)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 92.10392689704895 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:31:02.697791
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/30/image_16062025_12_30_45_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/12/30/image_16062025_12_30_35_10611.jpg', 2), ('/home/nano/Desktop/images/16062025/12/30/image_16062025_12_30_25_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/12/30/image_16062025_12_30_15_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/12/29/image_16062025_12_30_04_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/12/29/image_16062025_12_29_55_9592.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/30/image_16062025_12_30_45_9603.jpg', '/home/nano/Desktop/images/16062025/12/30/image_16062025_12_30_35_10611.jpg', '/home/nano/Desktop/images/16062025/12/30/image_16062025_12_30_25_9600.jpg', '/home/nano/Desktop/images/16062025/12/30/image_16062025_12_30_15_10619.jpg', '/home/nano/Desktop/images/16062025/12/29/image_16062025_12_30_04_9613.jpg', '/home/nano/Desktop/images/16062025/12/29/image_16062025_12_29_55_9592.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/30/image_16062025_12_30_45_9603.jpg
/home/nano/Desktop/images/16062025/12/30/image_16062025_12_30_35_10611.jpg
/home/nano/Desktop/images/16062025/12/30/image_16062025_12_30_25_9600.jpg
/home/nano/Desktop/images/16062025/12/30/image_16062025_12_30_15_10619.jpg
/home/nano/Desktop/images/16062025/12/29/image_16062025_12_30_04_9613.jpg
/home/nano/Desktop/images/16062025/12/29/image_16062025_12_29_55_9592.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366537025","1366537007","1366537036","1366537015","1366537030","1366537041"],"photo_ids_order":["1366537007","1366537015","1366537025","1366537030","1366537036","1366537041"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0bb0d2eeeaccd1f6c3cff2efba091cc3.jpg","text":"TemporaryFile(/tmp/multipartBody4382194904329606547asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069928963,"filename":"image_16062025_12_30_25_9600.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bd39e2580bfac33bbd1fe47ecf2192eb.jpg","text":"TemporaryFile(/tmp/multipartBody4247136516914523842asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069928963,"filename":"image_16062025_12_30_45_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/628be27aee5575360d36430741ab1a61.jpg","text":"TemporaryFile(/tmp/multipartBody3741308178190172524asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069928963,"filename":"image_16062025_12_30_04_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/316017db44a75c84b7f3959ef3147245.jpg","text":"TemporaryFile(/tmp/multipartBody5171773006510217367asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069928963,"filename":"image_16062025_12_30_35_10611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0ff0f7bab0e6ea8f31e2b92fb916efce.jpg","text":"TemporaryFile(/tmp/multipartBody154164056821420432asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069928963,"filename":"image_16062025_12_30_15_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c4d70e52e987644ca97a27af7e369db6.jpg","text":"TemporaryFile(/tmp/multipartBody5633803660949018742asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750069928963,"filename":"image_16062025_12_29_55_9592.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366537025","file1":"1366537015","file0":"1366537007","file4":"1366537036","file5":"1366537041","file3":"1366537030"},"map_files_photo_id_array":[{"photo_id":"1366537041","filename":"file5"},{"photo_id":"1366537025","filename":"file2"},{"photo_id":"1366537036","filename":"file4"},{"photo_id":"1366537015","filename":"file1"},{"photo_id":"1366537007","filename":"file0"},{"photo_id":"1366537030","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366537025":["hashtag1","hashtag2"]},{"1366537007":["hashtag1","hashtag2"]},{"1366537036":["hashtag1","hashtag2"]},{"1366537015":["hashtag1","hashtag2"]},{"1366537030":["hashtag1","hashtag2"]},{"1366537041":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366537025, 1366537007, 1366537036, 1366537015, 1366537030, 1366537041)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 88.9282283782959 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:32:46.971421
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/32/image_16062025_12_32_45_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/12/32/image_16062025_12_32_34_9596.jpg', 2), ('/home/nano/Desktop/images/16062025/12/32/image_16062025_12_32_25_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/12/32/image_16062025_12_32_15_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/12/31/image_16062025_12_32_05_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/12/31/image_16062025_12_31_55_10608.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/32/image_16062025_12_32_45_10610.jpg', '/home/nano/Desktop/images/16062025/12/32/image_16062025_12_32_34_9596.jpg', '/home/nano/Desktop/images/16062025/12/32/image_16062025_12_32_25_9611.jpg', '/home/nano/Desktop/images/16062025/12/32/image_16062025_12_32_15_10619.jpg', '/home/nano/Desktop/images/16062025/12/31/image_16062025_12_32_05_9603.jpg', '/home/nano/Desktop/images/16062025/12/31/image_16062025_12_31_55_10608.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/32/image_16062025_12_32_45_10610.jpg
/home/nano/Desktop/images/16062025/12/32/image_16062025_12_32_34_9596.jpg
/home/nano/Desktop/images/16062025/12/32/image_16062025_12_32_25_9611.jpg
/home/nano/Desktop/images/16062025/12/32/image_16062025_12_32_15_10619.jpg
/home/nano/Desktop/images/16062025/12/31/image_16062025_12_32_05_9603.jpg
/home/nano/Desktop/images/16062025/12/31/image_16062025_12_31_55_10608.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366537077","1366537062","1366537065","1366537059","1366537073","1366537055"],"photo_ids_order":["1366537055","1366537059","1366537062","1366537065","1366537073","1366537077"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/084360b30c498749c771ef6e69896dd3.jpg","text":"TemporaryFile(/tmp/multipartBody4067599781042504970asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070031183,"filename":"image_16062025_12_31_55_10608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7ed7e7b99bbfe0d5200474e2a0baa76b.jpg","text":"TemporaryFile(/tmp/multipartBody7052082584813095177asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070031183,"filename":"image_16062025_12_32_25_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/10f32e137e3e6510dd5008fb6b11d930.jpg","text":"TemporaryFile(/tmp/multipartBody6653570697296413233asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070031183,"filename":"image_16062025_12_32_15_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8cfde96897caf638f510d22f3ac99cca.jpg","text":"TemporaryFile(/tmp/multipartBody1436795233499651574asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070031183,"filename":"image_16062025_12_32_34_9596.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8ed45e04ac18fa17271e42ca094adba1.jpg","text":"TemporaryFile(/tmp/multipartBody5869194779203761695asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070031183,"filename":"image_16062025_12_32_05_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/de46366078fdbb2f6f54cecc86a9641a.jpg","text":"TemporaryFile(/tmp/multipartBody939317733868055718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070031183,"filename":"image_16062025_12_32_45_10610.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366537062","file1":"1366537059","file0":"1366537055","file4":"1366537073","file5":"1366537077","file3":"1366537065"},"map_files_photo_id_array":[{"photo_id":"1366537077","filename":"file5"},{"photo_id":"1366537062","filename":"file2"},{"photo_id":"1366537073","filename":"file4"},{"photo_id":"1366537059","filename":"file1"},{"photo_id":"1366537055","filename":"file0"},{"photo_id":"1366537065","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366537077":["hashtag1","hashtag2"]},{"1366537062":["hashtag1","hashtag2"]},{"1366537065":["hashtag1","hashtag2"]},{"1366537059":["hashtag1","hashtag2"]},{"1366537073":["hashtag1","hashtag2"]},{"1366537055":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366537077, 1366537062, 1366537065, 1366537059, 1366537073, 1366537055)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 88.67618417739868 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:34:17.181396
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/34/image_16062025_12_34_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/12/34/image_16062025_12_34_35_9606.jpg', 2), ('/home/nano/Desktop/images/16062025/12/34/image_16062025_12_34_25_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/12/34/image_16062025_12_34_15_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/12/33/image_16062025_12_34_05_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/12/33/image_16062025_12_33_54_9601.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/34/image_16062025_12_34_44_9619.jpg', '/home/nano/Desktop/images/16062025/12/34/image_16062025_12_34_35_9606.jpg', '/home/nano/Desktop/images/16062025/12/34/image_16062025_12_34_25_10621.jpg', '/home/nano/Desktop/images/16062025/12/34/image_16062025_12_34_15_9614.jpg', '/home/nano/Desktop/images/16062025/12/33/image_16062025_12_34_05_10627.jpg', '/home/nano/Desktop/images/16062025/12/33/image_16062025_12_33_54_9601.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/34/image_16062025_12_34_44_9619.jpg
/home/nano/Desktop/images/16062025/12/34/image_16062025_12_34_35_9606.jpg
/home/nano/Desktop/images/16062025/12/34/image_16062025_12_34_25_10621.jpg
/home/nano/Desktop/images/16062025/12/34/image_16062025_12_34_15_9614.jpg
/home/nano/Desktop/images/16062025/12/33/image_16062025_12_34_05_10627.jpg
/home/nano/Desktop/images/16062025/12/33/image_16062025_12_33_54_9601.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 3.152103900909424 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:34:32.197746
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/34/image_16062025_12_34_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/12/34/image_16062025_12_34_35_9606.jpg', 2), ('/home/nano/Desktop/images/16062025/12/34/image_16062025_12_34_25_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/12/34/image_16062025_12_34_15_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/12/33/image_16062025_12_34_05_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/12/33/image_16062025_12_33_54_9601.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/34/image_16062025_12_34_44_9619.jpg', '/home/nano/Desktop/images/16062025/12/34/image_16062025_12_34_35_9606.jpg', '/home/nano/Desktop/images/16062025/12/34/image_16062025_12_34_25_10621.jpg', '/home/nano/Desktop/images/16062025/12/34/image_16062025_12_34_15_9614.jpg', '/home/nano/Desktop/images/16062025/12/33/image_16062025_12_34_05_10627.jpg', '/home/nano/Desktop/images/16062025/12/33/image_16062025_12_33_54_9601.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/34/image_16062025_12_34_44_9619.jpg
/home/nano/Desktop/images/16062025/12/34/image_16062025_12_34_35_9606.jpg
/home/nano/Desktop/images/16062025/12/34/image_16062025_12_34_25_10621.jpg
/home/nano/Desktop/images/16062025/12/34/image_16062025_12_34_15_9614.jpg
/home/nano/Desktop/images/16062025/12/33/image_16062025_12_34_05_10627.jpg
/home/nano/Desktop/images/16062025/12/33/image_16062025_12_33_54_9601.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366537150","1366537138","1366537168","1366537147","1366537155","1366537160"],"photo_ids_order":["1366537138","1366537147","1366537150","1366537155","1366537160","1366537168"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/303e1c402235231a952a35b375f8025d.jpg","text":"TemporaryFile(/tmp/multipartBody1786803346126539809asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070136970,"filename":"image_16062025_12_34_25_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/49ffd641bc858443d9863795465cb8e1.jpg","text":"TemporaryFile(/tmp/multipartBody3313940003491627001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070136970,"filename":"image_16062025_12_34_44_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6104701453de399ea6f914d8149d4449.jpg","text":"TemporaryFile(/tmp/multipartBody5614754496594981931asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070136970,"filename":"image_16062025_12_33_54_9601.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/aa001ac04cd08fbc2cb8857197cd27df.jpg","text":"TemporaryFile(/tmp/multipartBody1241547409586291113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070136970,"filename":"image_16062025_12_34_35_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1cefe2d8ebdd0468f82e71c7ff4acc60.jpg","text":"TemporaryFile(/tmp/multipartBody6154528907107401106asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070136970,"filename":"image_16062025_12_34_15_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c4254adf17499d790ab3122b15ca8313.jpg","text":"TemporaryFile(/tmp/multipartBody1745025916813288588asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070136970,"filename":"image_16062025_12_34_05_10627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366537150","file1":"1366537147","file0":"1366537138","file4":"1366537160","file5":"1366537168","file3":"1366537155"},"map_files_photo_id_array":[{"photo_id":"1366537168","filename":"file5"},{"photo_id":"1366537150","filename":"file2"},{"photo_id":"1366537160","filename":"file4"},{"photo_id":"1366537147","filename":"file1"},{"photo_id":"1366537138","filename":"file0"},{"photo_id":"1366537155","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366537150":["hashtag1","hashtag2"]},{"1366537138":["hashtag1","hashtag2"]},{"1366537168":["hashtag1","hashtag2"]},{"1366537147":["hashtag1","hashtag2"]},{"1366537155":["hashtag1","hashtag2"]},{"1366537160":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366537150, 1366537138, 1366537168, 1366537147, 1366537155, 1366537160)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 113.66700601577759 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:36:32.434765
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/36/image_16062025_12_36_45_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/12/36/image_16062025_12_36_35_10605.jpg', 2), ('/home/nano/Desktop/images/16062025/12/36/image_16062025_12_36_25_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/12/36/image_16062025_12_36_15_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/12/35/image_16062025_12_36_05_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/12/35/image_16062025_12_35_55_9606.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/36/image_16062025_12_36_45_9610.jpg', '/home/nano/Desktop/images/16062025/12/36/image_16062025_12_36_35_10605.jpg', '/home/nano/Desktop/images/16062025/12/36/image_16062025_12_36_25_9617.jpg', '/home/nano/Desktop/images/16062025/12/36/image_16062025_12_36_15_10642.jpg', '/home/nano/Desktop/images/16062025/12/35/image_16062025_12_36_05_9647.jpg', '/home/nano/Desktop/images/16062025/12/35/image_16062025_12_35_55_9606.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/36/image_16062025_12_36_45_9610.jpg
/home/nano/Desktop/images/16062025/12/36/image_16062025_12_36_35_10605.jpg
/home/nano/Desktop/images/16062025/12/36/image_16062025_12_36_25_9617.jpg
/home/nano/Desktop/images/16062025/12/36/image_16062025_12_36_15_10642.jpg
/home/nano/Desktop/images/16062025/12/35/image_16062025_12_36_05_9647.jpg
/home/nano/Desktop/images/16062025/12/35/image_16062025_12_35_55_9606.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366537231","1366537191","1366537266","1366537179","1366537245","1366537250"],"photo_ids_order":["1366537179","1366537191","1366537231","1366537245","1366537250","1366537266"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/27472021e376fea90d87ac053fd2ad16.jpg","text":"TemporaryFile(/tmp/multipartBody8071326084066415213asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070257372,"filename":"image_16062025_12_36_25_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/66c72e45dbb7ab103c4fa2e59037b4fc.jpg","text":"TemporaryFile(/tmp/multipartBody4697373932056675248asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070257372,"filename":"image_16062025_12_36_35_10605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e7f82de413191ceb14e97232cfea6e51.jpg","text":"TemporaryFile(/tmp/multipartBody5956780822692858879asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070257372,"filename":"image_16062025_12_35_55_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0bed2e8441ef781a6b8da382f0a95cdf.jpg","text":"TemporaryFile(/tmp/multipartBody4614821097652297306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070257372,"filename":"image_16062025_12_36_45_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f091a64c3e0bee64bbfadf0d6113d863.jpg","text":"TemporaryFile(/tmp/multipartBody4919673310736991735asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070257372,"filename":"image_16062025_12_36_15_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0fb76af7ba9e64dd2d85915598fb682c.jpg","text":"TemporaryFile(/tmp/multipartBody1163862409664658368asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070257372,"filename":"image_16062025_12_36_05_9647.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366537231","file1":"1366537191","file0":"1366537179","file4":"1366537250","file5":"1366537266","file3":"1366537245"},"map_files_photo_id_array":[{"photo_id":"1366537266","filename":"file5"},{"photo_id":"1366537231","filename":"file2"},{"photo_id":"1366537250","filename":"file4"},{"photo_id":"1366537191","filename":"file1"},{"photo_id":"1366537179","filename":"file0"},{"photo_id":"1366537245","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366537231":["hashtag1","hashtag2"]},{"1366537191":["hashtag1","hashtag2"]},{"1366537266":["hashtag1","hashtag2"]},{"1366537179":["hashtag1","hashtag2"]},{"1366537245":["hashtag1","hashtag2"]},{"1366537250":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366537231, 1366537191, 1366537266, 1366537179, 1366537245, 1366537250)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 116.00190019607544 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:38:32.643952
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/38/image_16062025_12_38_44_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/12/38/image_16062025_12_38_35_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/12/38/image_16062025_12_38_25_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/12/38/image_16062025_12_38_15_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/12/37/image_16062025_12_38_05_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/12/37/image_16062025_12_37_55_10636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/38/image_16062025_12_38_44_9633.jpg', '/home/nano/Desktop/images/16062025/12/38/image_16062025_12_38_35_9616.jpg', '/home/nano/Desktop/images/16062025/12/38/image_16062025_12_38_25_10619.jpg', '/home/nano/Desktop/images/16062025/12/38/image_16062025_12_38_15_9636.jpg', '/home/nano/Desktop/images/16062025/12/37/image_16062025_12_38_05_9609.jpg', '/home/nano/Desktop/images/16062025/12/37/image_16062025_12_37_55_10636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/38/image_16062025_12_38_44_9633.jpg
/home/nano/Desktop/images/16062025/12/38/image_16062025_12_38_35_9616.jpg
/home/nano/Desktop/images/16062025/12/38/image_16062025_12_38_25_10619.jpg
/home/nano/Desktop/images/16062025/12/38/image_16062025_12_38_15_9636.jpg
/home/nano/Desktop/images/16062025/12/37/image_16062025_12_38_05_9609.jpg
/home/nano/Desktop/images/16062025/12/37/image_16062025_12_37_55_10636.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.9755182266235352 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:38:47.653965
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/38/image_16062025_12_38_44_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/12/38/image_16062025_12_38_35_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/12/38/image_16062025_12_38_25_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/12/38/image_16062025_12_38_15_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/12/37/image_16062025_12_38_05_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/12/37/image_16062025_12_37_55_10636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/38/image_16062025_12_38_44_9633.jpg', '/home/nano/Desktop/images/16062025/12/38/image_16062025_12_38_35_9616.jpg', '/home/nano/Desktop/images/16062025/12/38/image_16062025_12_38_25_10619.jpg', '/home/nano/Desktop/images/16062025/12/38/image_16062025_12_38_15_9636.jpg', '/home/nano/Desktop/images/16062025/12/37/image_16062025_12_38_05_9609.jpg', '/home/nano/Desktop/images/16062025/12/37/image_16062025_12_37_55_10636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/38/image_16062025_12_38_44_9633.jpg
/home/nano/Desktop/images/16062025/12/38/image_16062025_12_38_35_9616.jpg
/home/nano/Desktop/images/16062025/12/38/image_16062025_12_38_25_10619.jpg
/home/nano/Desktop/images/16062025/12/38/image_16062025_12_38_15_9636.jpg
/home/nano/Desktop/images/16062025/12/37/image_16062025_12_38_05_9609.jpg
/home/nano/Desktop/images/16062025/12/37/image_16062025_12_37_55_10636.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366537363","1366537345","1366537312","1366537383","1366537407","1366537325"],"photo_ids_order":["1366537312","1366537325","1366537345","1366537363","1366537383","1366537407"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/10faa1851d5231ffd9ab110348fe936b.jpg","text":"TemporaryFile(/tmp/multipartBody6621652356574294052asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070395301,"filename":"image_16062025_12_38_15_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/79777152387a3cde3c990efa0b9ad537.jpg","text":"TemporaryFile(/tmp/multipartBody5841634933434235135asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070395301,"filename":"image_16062025_12_38_25_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dd58e1ee6e0b05e1bf639346a1a98663.jpg","text":"TemporaryFile(/tmp/multipartBody5019887217738413960asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070395301,"filename":"image_16062025_12_38_44_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d290011010f49532fe04917d49b6c46d.jpg","text":"TemporaryFile(/tmp/multipartBody8790602786400269241asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070395301,"filename":"image_16062025_12_38_05_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d837d80baba01c8d92051a285e2ce4d1.jpg","text":"TemporaryFile(/tmp/multipartBody4393549698395783842asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070395301,"filename":"image_16062025_12_37_55_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/92e10e069b38b6c4d54dda6e96939da3.jpg","text":"TemporaryFile(/tmp/multipartBody4953490783989522530asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070395301,"filename":"image_16062025_12_38_35_9616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366537345","file1":"1366537325","file0":"1366537312","file4":"1366537383","file5":"1366537407","file3":"1366537363"},"map_files_photo_id_array":[{"photo_id":"1366537407","filename":"file5"},{"photo_id":"1366537345","filename":"file2"},{"photo_id":"1366537383","filename":"file4"},{"photo_id":"1366537325","filename":"file1"},{"photo_id":"1366537312","filename":"file0"},{"photo_id":"1366537363","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366537363":["hashtag1","hashtag2"]},{"1366537345":["hashtag1","hashtag2"]},{"1366537312":["hashtag1","hashtag2"]},{"1366537383":["hashtag1","hashtag2"]},{"1366537407":["hashtag1","hashtag2"]},{"1366537325":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366537363, 1366537345, 1366537312, 1366537383, 1366537407, 1366537325)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 148.1440703868866 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:41:16.997396
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/41/image_16062025_12_41_44_9598.jpg', 2), ('/home/nano/Desktop/images/16062025/12/41/image_16062025_12_41_35_9596.jpg', 2), ('/home/nano/Desktop/images/16062025/12/41/image_16062025_12_41_25_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/12/41/image_16062025_12_41_15_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/12/40/image_16062025_12_41_05_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/12/40/image_16062025_12_40_54_9614.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/41/image_16062025_12_41_44_9598.jpg', '/home/nano/Desktop/images/16062025/12/41/image_16062025_12_41_35_9596.jpg', '/home/nano/Desktop/images/16062025/12/41/image_16062025_12_41_25_10629.jpg', '/home/nano/Desktop/images/16062025/12/41/image_16062025_12_41_15_9602.jpg', '/home/nano/Desktop/images/16062025/12/40/image_16062025_12_41_05_10643.jpg', '/home/nano/Desktop/images/16062025/12/40/image_16062025_12_40_54_9614.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/41/image_16062025_12_41_44_9598.jpg
/home/nano/Desktop/images/16062025/12/41/image_16062025_12_41_35_9596.jpg
/home/nano/Desktop/images/16062025/12/41/image_16062025_12_41_25_10629.jpg
/home/nano/Desktop/images/16062025/12/41/image_16062025_12_41_15_9602.jpg
/home/nano/Desktop/images/16062025/12/40/image_16062025_12_41_05_10643.jpg
/home/nano/Desktop/images/16062025/12/40/image_16062025_12_40_54_9614.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366537498","1366537669","1366537627","1366537549","1366537587","1366537713"],"photo_ids_order":["1366537498","1366537549","1366537587","1366537627","1366537669","1366537713"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5c67adafe1a8f87f02416c70600d3077.jpg","text":"TemporaryFile(/tmp/multipartBody3378868304225322802asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070540361,"filename":"image_16062025_12_41_44_9598.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8c8e93f5aadb995caf6bbdc9a0510433.jpg","text":"TemporaryFile(/tmp/multipartBody1219557833275429015asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070540361,"filename":"image_16062025_12_41_05_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6e2ff264af5062f342911834ee947d34.jpg","text":"TemporaryFile(/tmp/multipartBody2795472142528359109asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070540361,"filename":"image_16062025_12_41_15_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d66054eb3f8bc817a7f0085badf4dd2d.jpg","text":"TemporaryFile(/tmp/multipartBody7016790758609115850asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070540361,"filename":"image_16062025_12_41_35_9596.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/32ec3fa60107fff6c2dea2f5a5f38a26.jpg","text":"TemporaryFile(/tmp/multipartBody676701239436284085asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070540361,"filename":"image_16062025_12_41_25_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b5a2c730d26991338f5d1723e873ce59.jpg","text":"TemporaryFile(/tmp/multipartBody1056078015007886477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070540361,"filename":"image_16062025_12_40_54_9614.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366537587","file1":"1366537549","file0":"1366537498","file4":"1366537669","file5":"1366537713","file3":"1366537627"},"map_files_photo_id_array":[{"photo_id":"1366537713","filename":"file5"},{"photo_id":"1366537587","filename":"file2"},{"photo_id":"1366537669","filename":"file4"},{"photo_id":"1366537549","filename":"file1"},{"photo_id":"1366537498","filename":"file0"},{"photo_id":"1366537627","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366537498":["hashtag1","hashtag2"]},{"1366537669":["hashtag1","hashtag2"]},{"1366537627":["hashtag1","hashtag2"]},{"1366537549":["hashtag1","hashtag2"]},{"1366537587":["hashtag1","hashtag2"]},{"1366537713":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366537498, 1366537669, 1366537627, 1366537549, 1366537587, 1366537713)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 64.06945419311523 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:42:32.184945
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/42/image_16062025_12_42_45_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/12/42/image_16062025_12_42_34_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/12/42/image_16062025_12_42_25_9600.jpg', 2), ('/home/nano/Desktop/images/16062025/12/42/image_16062025_12_42_15_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/12/41/image_16062025_12_42_05_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/12/41/image_16062025_12_41_55_10605.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/42/image_16062025_12_42_45_10608.jpg', '/home/nano/Desktop/images/16062025/12/42/image_16062025_12_42_34_9601.jpg', '/home/nano/Desktop/images/16062025/12/42/image_16062025_12_42_25_9600.jpg', '/home/nano/Desktop/images/16062025/12/42/image_16062025_12_42_15_10630.jpg', '/home/nano/Desktop/images/16062025/12/41/image_16062025_12_42_05_9612.jpg', '/home/nano/Desktop/images/16062025/12/41/image_16062025_12_41_55_10605.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/42/image_16062025_12_42_45_10608.jpg
/home/nano/Desktop/images/16062025/12/42/image_16062025_12_42_34_9601.jpg
/home/nano/Desktop/images/16062025/12/42/image_16062025_12_42_25_9600.jpg
/home/nano/Desktop/images/16062025/12/42/image_16062025_12_42_15_10630.jpg
/home/nano/Desktop/images/16062025/12/41/image_16062025_12_42_05_9612.jpg
/home/nano/Desktop/images/16062025/12/41/image_16062025_12_41_55_10605.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366537789","1366537828","1366537810","1366537794","1366537797","1366537802"],"photo_ids_order":["1366537789","1366537794","1366537797","1366537802","1366537810","1366537828"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a3a2cde1f18729423edaca0b8f72924b.jpg","text":"TemporaryFile(/tmp/multipartBody1340991935750849293asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070615061,"filename":"image_16062025_12_42_45_10608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b9068f1dba97825769ae5dafa2be7016.jpg","text":"TemporaryFile(/tmp/multipartBody6485135196821802307asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070615061,"filename":"image_16062025_12_41_55_10605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8545c220f720b5a8bc70623abcadd989.jpg","text":"TemporaryFile(/tmp/multipartBody2058873835209874705asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070615061,"filename":"image_16062025_12_42_05_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ab0ce4d86e424bae8964ee5089bda3fe.jpg","text":"TemporaryFile(/tmp/multipartBody7668086757888407704asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070615061,"filename":"image_16062025_12_42_34_9601.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/018131e07acb2b9c4ce0cec28d8845ef.jpg","text":"TemporaryFile(/tmp/multipartBody914854613678903891asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070615061,"filename":"image_16062025_12_42_25_9600.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/25021551a1d53497d4404214b09705c7.jpg","text":"TemporaryFile(/tmp/multipartBody3564805875106022641asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070615061,"filename":"image_16062025_12_42_15_10630.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366537797","file1":"1366537794","file0":"1366537789","file4":"1366537810","file5":"1366537828","file3":"1366537802"},"map_files_photo_id_array":[{"photo_id":"1366537828","filename":"file5"},{"photo_id":"1366537797","filename":"file2"},{"photo_id":"1366537810","filename":"file4"},{"photo_id":"1366537794","filename":"file1"},{"photo_id":"1366537789","filename":"file0"},{"photo_id":"1366537802","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366537789":["hashtag1","hashtag2"]},{"1366537828":["hashtag1","hashtag2"]},{"1366537810":["hashtag1","hashtag2"]},{"1366537794":["hashtag1","hashtag2"]},{"1366537797":["hashtag1","hashtag2"]},{"1366537802":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366537789, 1366537828, 1366537810, 1366537794, 1366537797, 1366537802)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 117.70879888534546 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:44:32.433904
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/44/image_16062025_12_44_44_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/12/44/image_16062025_12_44_35_9598.jpg', 2), ('/home/nano/Desktop/images/16062025/12/44/image_16062025_12_44_25_10615.jpg', 2), ('/home/nano/Desktop/images/16062025/12/44/image_16062025_12_44_15_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/12/43/image_16062025_12_44_05_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/12/43/image_16062025_12_43_54_9595.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/44/image_16062025_12_44_44_9608.jpg', '/home/nano/Desktop/images/16062025/12/44/image_16062025_12_44_35_9598.jpg', '/home/nano/Desktop/images/16062025/12/44/image_16062025_12_44_25_10615.jpg', '/home/nano/Desktop/images/16062025/12/44/image_16062025_12_44_15_9612.jpg', '/home/nano/Desktop/images/16062025/12/43/image_16062025_12_44_05_10619.jpg', '/home/nano/Desktop/images/16062025/12/43/image_16062025_12_43_54_9595.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/44/image_16062025_12_44_44_9608.jpg
/home/nano/Desktop/images/16062025/12/44/image_16062025_12_44_35_9598.jpg
/home/nano/Desktop/images/16062025/12/44/image_16062025_12_44_25_10615.jpg
/home/nano/Desktop/images/16062025/12/44/image_16062025_12_44_15_9612.jpg
/home/nano/Desktop/images/16062025/12/43/image_16062025_12_44_05_10619.jpg
/home/nano/Desktop/images/16062025/12/43/image_16062025_12_43_54_9595.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366537919","1366537910","1366537903","1366537923","1366537931","1366537916"],"photo_ids_order":["1366537903","1366537910","1366537916","1366537919","1366537923","1366537931"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/85a1d4b6428ea0ee655287bd97eb5c5b.jpg","text":"TemporaryFile(/tmp/multipartBody9139992546220938770asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070736553,"filename":"image_16062025_12_44_15_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/aa5b357fdd68217b825b63a2bf99c510.jpg","text":"TemporaryFile(/tmp/multipartBody4379595993949462369asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070736553,"filename":"image_16062025_12_44_35_9598.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d5911a4b5f48e385bddb99699c177be0.jpg","text":"TemporaryFile(/tmp/multipartBody6346709083036187999asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070736553,"filename":"image_16062025_12_44_44_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fb176c06e09bed0438a7de42e63d4d67.jpg","text":"TemporaryFile(/tmp/multipartBody8499310824682269412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070736553,"filename":"image_16062025_12_44_05_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4afca33bf8b583028b7d712ee8672512.jpg","text":"TemporaryFile(/tmp/multipartBody8595807253772987016asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070736553,"filename":"image_16062025_12_43_54_9595.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dec280f569f03dea6dfcd698f59b40c6.jpg","text":"TemporaryFile(/tmp/multipartBody7191834599249404043asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070736553,"filename":"image_16062025_12_44_25_10615.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366537916","file1":"1366537910","file0":"1366537903","file4":"1366537923","file5":"1366537931","file3":"1366537919"},"map_files_photo_id_array":[{"photo_id":"1366537931","filename":"file5"},{"photo_id":"1366537916","filename":"file2"},{"photo_id":"1366537923","filename":"file4"},{"photo_id":"1366537910","filename":"file1"},{"photo_id":"1366537903","filename":"file0"},{"photo_id":"1366537919","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366537919":["hashtag1","hashtag2"]},{"1366537910":["hashtag1","hashtag2"]},{"1366537903":["hashtag1","hashtag2"]},{"1366537923":["hashtag1","hashtag2"]},{"1366537931":["hashtag1","hashtag2"]},{"1366537916":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366537919, 1366537910, 1366537903, 1366537923, 1366537931, 1366537916)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 104.36734318733215 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:46:17.629530
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/46/image_16062025_12_46_45_9599.jpg', 2), ('/home/nano/Desktop/images/16062025/12/46/image_16062025_12_46_35_10604.jpg', 2), ('/home/nano/Desktop/images/16062025/12/46/image_16062025_12_46_25_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/12/46/image_16062025_12_46_15_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/12/45/image_16062025_12_46_05_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/12/45/image_16062025_12_45_55_9603.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/46/image_16062025_12_46_45_9599.jpg', '/home/nano/Desktop/images/16062025/12/46/image_16062025_12_46_35_10604.jpg', '/home/nano/Desktop/images/16062025/12/46/image_16062025_12_46_25_9601.jpg', '/home/nano/Desktop/images/16062025/12/46/image_16062025_12_46_15_9613.jpg', '/home/nano/Desktop/images/16062025/12/45/image_16062025_12_46_05_10633.jpg', '/home/nano/Desktop/images/16062025/12/45/image_16062025_12_45_55_9603.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/46/image_16062025_12_46_45_9599.jpg
/home/nano/Desktop/images/16062025/12/46/image_16062025_12_46_35_10604.jpg
/home/nano/Desktop/images/16062025/12/46/image_16062025_12_46_25_9601.jpg
/home/nano/Desktop/images/16062025/12/46/image_16062025_12_46_15_9613.jpg
/home/nano/Desktop/images/16062025/12/45/image_16062025_12_46_05_10633.jpg
/home/nano/Desktop/images/16062025/12/45/image_16062025_12_45_55_9603.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366537981","1366537957","1366537971","1366537962","1366537976","1366537964"],"photo_ids_order":["1366537957","1366537962","1366537964","1366537971","1366537976","1366537981"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/acce861d80bb31a0aa62d77468eca0d0.jpg","text":"TemporaryFile(/tmp/multipartBody4239931306507557183asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070840880,"filename":"image_16062025_12_45_55_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8e04a72f2d75b6e2ffa412cb012a4b00.jpg","text":"TemporaryFile(/tmp/multipartBody8581668672575416166asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070840880,"filename":"image_16062025_12_46_45_9599.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cf9181e1cc3a43acbdb0a78184105f19.jpg","text":"TemporaryFile(/tmp/multipartBody5463923727159778526asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070840880,"filename":"image_16062025_12_46_15_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/86d4186df9f0277060068f447a4b23cd.jpg","text":"TemporaryFile(/tmp/multipartBody6851572125370166107asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070840880,"filename":"image_16062025_12_46_35_10604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4557dfa5fc416324f15b969dbb3b8e36.jpg","text":"TemporaryFile(/tmp/multipartBody2766077289898045247asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070840880,"filename":"image_16062025_12_46_05_10633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/eede938c7ac7a20fb92fdb3c9203568a.jpg","text":"TemporaryFile(/tmp/multipartBody855831796896719470asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070840880,"filename":"image_16062025_12_46_25_9601.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366537964","file1":"1366537962","file0":"1366537957","file4":"1366537976","file5":"1366537981","file3":"1366537971"},"map_files_photo_id_array":[{"photo_id":"1366537981","filename":"file5"},{"photo_id":"1366537964","filename":"file2"},{"photo_id":"1366537976","filename":"file4"},{"photo_id":"1366537962","filename":"file1"},{"photo_id":"1366537957","filename":"file0"},{"photo_id":"1366537971","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366537981":["hashtag1","hashtag2"]},{"1366537957":["hashtag1","hashtag2"]},{"1366537971":["hashtag1","hashtag2"]},{"1366537962":["hashtag1","hashtag2"]},{"1366537976":["hashtag1","hashtag2"]},{"1366537964":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366537981, 1366537957, 1366537971, 1366537962, 1366537976, 1366537964)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 73.50456809997559 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:47:32.773358
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/47/image_16062025_12_47_44_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/12/47/image_16062025_12_47_35_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/12/47/image_16062025_12_47_25_10611.jpg', 2), ('/home/nano/Desktop/images/16062025/12/47/image_16062025_12_47_15_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/12/46/image_16062025_12_47_05_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/12/46/image_16062025_12_46_54_9597.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/47/image_16062025_12_47_44_9604.jpg', '/home/nano/Desktop/images/16062025/12/47/image_16062025_12_47_35_9597.jpg', '/home/nano/Desktop/images/16062025/12/47/image_16062025_12_47_25_10611.jpg', '/home/nano/Desktop/images/16062025/12/47/image_16062025_12_47_15_9616.jpg', '/home/nano/Desktop/images/16062025/12/46/image_16062025_12_47_05_10622.jpg', '/home/nano/Desktop/images/16062025/12/46/image_16062025_12_46_54_9597.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/47/image_16062025_12_47_44_9604.jpg
/home/nano/Desktop/images/16062025/12/47/image_16062025_12_47_35_9597.jpg
/home/nano/Desktop/images/16062025/12/47/image_16062025_12_47_25_10611.jpg
/home/nano/Desktop/images/16062025/12/47/image_16062025_12_47_15_9616.jpg
/home/nano/Desktop/images/16062025/12/46/image_16062025_12_47_05_10622.jpg
/home/nano/Desktop/images/16062025/12/46/image_16062025_12_46_54_9597.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366537996","1366537990","1366538085","1366538166","1366538126","1366538048"],"photo_ids_order":["1366537990","1366537996","1366538048","1366538085","1366538126","1366538166"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/32a92049f11f16423df2f5704ad86e93.jpg","text":"TemporaryFile(/tmp/multipartBody4636869947242318740asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070919731,"filename":"image_16062025_12_47_35_9597.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/93328c7c140a633a78f4c40ee5a48200.jpg","text":"TemporaryFile(/tmp/multipartBody8837071081696577589asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070919731,"filename":"image_16062025_12_47_44_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/08fe52f49e56634f38a96b2e805f6e0a.jpg","text":"TemporaryFile(/tmp/multipartBody5602908380149131646asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070919731,"filename":"image_16062025_12_47_15_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/856f2202fe1fecb884dcef65009cead1.jpg","text":"TemporaryFile(/tmp/multipartBody4789366468917448219asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070919731,"filename":"image_16062025_12_46_54_9597.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0b3e68675fea0d0ec25253b08bcf3cab.jpg","text":"TemporaryFile(/tmp/multipartBody4529230727320009980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070919731,"filename":"image_16062025_12_47_05_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6b37c34383fc9f86e2b12ea1398c9fc1.jpg","text":"TemporaryFile(/tmp/multipartBody2120448698786187311asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750070919731,"filename":"image_16062025_12_47_25_10611.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366538048","file1":"1366537996","file0":"1366537990","file4":"1366538126","file5":"1366538166","file3":"1366538085"},"map_files_photo_id_array":[{"photo_id":"1366538166","filename":"file5"},{"photo_id":"1366538048","filename":"file2"},{"photo_id":"1366538126","filename":"file4"},{"photo_id":"1366537996","filename":"file1"},{"photo_id":"1366537990","filename":"file0"},{"photo_id":"1366538085","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366537996":["hashtag1","hashtag2"]},{"1366537990":["hashtag1","hashtag2"]},{"1366538085":["hashtag1","hashtag2"]},{"1366538166":["hashtag1","hashtag2"]},{"1366538126":["hashtag1","hashtag2"]},{"1366538048":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366537996, 1366537990, 1366538085, 1366538166, 1366538126, 1366538048)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 98.17072701454163 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:49:16.954369
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/49/image_16062025_12_49_45_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/12/49/image_16062025_12_49_35_10610.jpg', 2), ('/home/nano/Desktop/images/16062025/12/49/image_16062025_12_49_25_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/12/49/image_16062025_12_49_15_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/12/48/image_16062025_12_49_05_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/12/48/image_16062025_12_48_55_9594.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/49/image_16062025_12_49_45_9608.jpg', '/home/nano/Desktop/images/16062025/12/49/image_16062025_12_49_35_10610.jpg', '/home/nano/Desktop/images/16062025/12/49/image_16062025_12_49_25_9607.jpg', '/home/nano/Desktop/images/16062025/12/49/image_16062025_12_49_15_9605.jpg', '/home/nano/Desktop/images/16062025/12/48/image_16062025_12_49_05_10644.jpg', '/home/nano/Desktop/images/16062025/12/48/image_16062025_12_48_55_9594.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/49/image_16062025_12_49_45_9608.jpg
/home/nano/Desktop/images/16062025/12/49/image_16062025_12_49_35_10610.jpg
/home/nano/Desktop/images/16062025/12/49/image_16062025_12_49_25_9607.jpg
/home/nano/Desktop/images/16062025/12/49/image_16062025_12_49_15_9605.jpg
/home/nano/Desktop/images/16062025/12/48/image_16062025_12_49_05_10644.jpg
/home/nano/Desktop/images/16062025/12/48/image_16062025_12_48_55_9594.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366538344","1366538370","1366538355","1366538297","1366538363","1366538351"],"photo_ids_order":["1366538297","1366538344","1366538351","1366538355","1366538363","1366538370"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e2504c5b98ce5576dd0c1e4ee1094c6d.jpg","text":"TemporaryFile(/tmp/multipartBody1559891062697642441asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071029343,"filename":"image_16062025_12_49_35_10610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5b11b2b70cd4b6013b4b10e694753093.jpg","text":"TemporaryFile(/tmp/multipartBody3639109586731618347asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071029343,"filename":"image_16062025_12_48_55_9594.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1b4ebbf01eb275fe9061d0e3e06fb27a.jpg","text":"TemporaryFile(/tmp/multipartBody1830170996895588891asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071029343,"filename":"image_16062025_12_49_15_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3c404dd9ee4046b6b1095597baf08cdd.jpg","text":"TemporaryFile(/tmp/multipartBody4028359386739294897asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071029343,"filename":"image_16062025_12_49_45_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0f01896dac9bb962330c79727ab76a41.jpg","text":"TemporaryFile(/tmp/multipartBody1223447165950438616asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071029343,"filename":"image_16062025_12_49_05_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3c1880266c8542b1c1d9aa5995de9260.jpg","text":"TemporaryFile(/tmp/multipartBody1802810646667014143asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071029343,"filename":"image_16062025_12_49_25_9607.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366538351","file1":"1366538344","file0":"1366538297","file4":"1366538363","file5":"1366538370","file3":"1366538355"},"map_files_photo_id_array":[{"photo_id":"1366538370","filename":"file5"},{"photo_id":"1366538351","filename":"file2"},{"photo_id":"1366538363","filename":"file4"},{"photo_id":"1366538344","filename":"file1"},{"photo_id":"1366538297","filename":"file0"},{"photo_id":"1366538355","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366538344":["hashtag1","hashtag2"]},{"1366538370":["hashtag1","hashtag2"]},{"1366538355":["hashtag1","hashtag2"]},{"1366538297":["hashtag1","hashtag2"]},{"1366538363":["hashtag1","hashtag2"]},{"1366538351":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366538344, 1366538370, 1366538355, 1366538297, 1366538363, 1366538351)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 137.3245141506195 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:51:47.174259
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/51/image_16062025_12_51_45_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/12/51/image_16062025_12_51_35_9596.jpg', 2), ('/home/nano/Desktop/images/16062025/12/51/image_16062025_12_51_25_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/12/51/image_16062025_12_51_15_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/12/50/image_16062025_12_51_05_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/12/50/image_16062025_12_50_55_10607.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/51/image_16062025_12_51_45_10628.jpg', '/home/nano/Desktop/images/16062025/12/51/image_16062025_12_51_35_9596.jpg', '/home/nano/Desktop/images/16062025/12/51/image_16062025_12_51_25_9602.jpg', '/home/nano/Desktop/images/16062025/12/51/image_16062025_12_51_15_10645.jpg', '/home/nano/Desktop/images/16062025/12/50/image_16062025_12_51_05_9618.jpg', '/home/nano/Desktop/images/16062025/12/50/image_16062025_12_50_55_10607.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/51/image_16062025_12_51_45_10628.jpg
/home/nano/Desktop/images/16062025/12/51/image_16062025_12_51_35_9596.jpg
/home/nano/Desktop/images/16062025/12/51/image_16062025_12_51_25_9602.jpg
/home/nano/Desktop/images/16062025/12/51/image_16062025_12_51_15_10645.jpg
/home/nano/Desktop/images/16062025/12/50/image_16062025_12_51_05_9618.jpg
/home/nano/Desktop/images/16062025/12/50/image_16062025_12_50_55_10607.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366538431","1366538428","1366538425","1366538421","1366538418","1366538438"],"photo_ids_order":["1366538418","1366538421","1366538425","1366538428","1366538431","1366538438"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e98b86df1db5f2d3310c8e6f8cdd393c.jpg","text":"TemporaryFile(/tmp/multipartBody4036910205415341485asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071170769,"filename":"image_16062025_12_51_05_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/eeb7d2899e6b8e5208b38a105672ac2e.jpg","text":"TemporaryFile(/tmp/multipartBody8322488120135728798asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071170769,"filename":"image_16062025_12_51_15_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/18592361eef0a92d166595351ef8b3f4.jpg","text":"TemporaryFile(/tmp/multipartBody1972111965341274694asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071170769,"filename":"image_16062025_12_51_25_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cb482b0c057adc848630b8164a489280.jpg","text":"TemporaryFile(/tmp/multipartBody1880370664694047700asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071170769,"filename":"image_16062025_12_51_35_9596.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e5e2d52009e090750ba8bbfb106a0615.jpg","text":"TemporaryFile(/tmp/multipartBody8994236407467181140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071170769,"filename":"image_16062025_12_51_45_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7d58cf79358e7f244cf420897a4d7d9a.jpg","text":"TemporaryFile(/tmp/multipartBody8042614555277868365asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071170769,"filename":"image_16062025_12_50_55_10607.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366538425","file1":"1366538421","file0":"1366538418","file4":"1366538431","file5":"1366538438","file3":"1366538428"},"map_files_photo_id_array":[{"photo_id":"1366538438","filename":"file5"},{"photo_id":"1366538425","filename":"file2"},{"photo_id":"1366538431","filename":"file4"},{"photo_id":"1366538421","filename":"file1"},{"photo_id":"1366538418","filename":"file0"},{"photo_id":"1366538428","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366538431":["hashtag1","hashtag2"]},{"1366538428":["hashtag1","hashtag2"]},{"1366538425":["hashtag1","hashtag2"]},{"1366538421":["hashtag1","hashtag2"]},{"1366538418":["hashtag1","hashtag2"]},{"1366538438":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366538431, 1366538428, 1366538425, 1366538421, 1366538418, 1366538438)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 80.2534818649292 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:53:17.356172
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/53/image_16062025_12_53_45_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/12/53/image_16062025_12_53_35_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/12/53/image_16062025_12_53_25_10612.jpg', 2), ('/home/nano/Desktop/images/16062025/12/53/image_16062025_12_53_15_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/12/52/image_16062025_12_53_05_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/12/52/image_16062025_12_52_54_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/53/image_16062025_12_53_45_9603.jpg', '/home/nano/Desktop/images/16062025/12/53/image_16062025_12_53_35_9615.jpg', '/home/nano/Desktop/images/16062025/12/53/image_16062025_12_53_25_10612.jpg', '/home/nano/Desktop/images/16062025/12/53/image_16062025_12_53_15_9625.jpg', '/home/nano/Desktop/images/16062025/12/52/image_16062025_12_53_05_10619.jpg', '/home/nano/Desktop/images/16062025/12/52/image_16062025_12_52_54_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/53/image_16062025_12_53_45_9603.jpg
/home/nano/Desktop/images/16062025/12/53/image_16062025_12_53_35_9615.jpg
/home/nano/Desktop/images/16062025/12/53/image_16062025_12_53_25_10612.jpg
/home/nano/Desktop/images/16062025/12/53/image_16062025_12_53_15_9625.jpg
/home/nano/Desktop/images/16062025/12/52/image_16062025_12_53_05_10619.jpg
/home/nano/Desktop/images/16062025/12/52/image_16062025_12_52_54_9610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366538503","1366538490","1366538480","1366538494","1366538485","1366538458"],"photo_ids_order":["1366538458","1366538480","1366538485","1366538490","1366538494","1366538503"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3b2e05accdd534acab6aa3795ef11bcb.jpg","text":"TemporaryFile(/tmp/multipartBody8183463544064515623asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071261912,"filename":"image_16062025_12_52_54_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cc1757d8699a0054ce2768beb35e8a90.jpg","text":"TemporaryFile(/tmp/multipartBody5570487659699741027asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071261912,"filename":"image_16062025_12_53_15_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/14da03b8d686d9c0a5fc357694d8f6bc.jpg","text":"TemporaryFile(/tmp/multipartBody1669960656007913606asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071261912,"filename":"image_16062025_12_53_35_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7e08ed7653ae2af7ce2d62caf3a40f61.jpg","text":"TemporaryFile(/tmp/multipartBody6848076703406310642asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071261912,"filename":"image_16062025_12_53_05_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ee112b1407c606e43d3d8a5c04e142ec.jpg","text":"TemporaryFile(/tmp/multipartBody11552354630487024asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071261912,"filename":"image_16062025_12_53_25_10612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c4a7d6884adebb32a20720b936dbc151.jpg","text":"TemporaryFile(/tmp/multipartBody2914931850635928136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071261912,"filename":"image_16062025_12_53_45_9603.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366538485","file1":"1366538480","file0":"1366538458","file4":"1366538494","file5":"1366538503","file3":"1366538490"},"map_files_photo_id_array":[{"photo_id":"1366538503","filename":"file5"},{"photo_id":"1366538485","filename":"file2"},{"photo_id":"1366538494","filename":"file4"},{"photo_id":"1366538480","filename":"file1"},{"photo_id":"1366538458","filename":"file0"},{"photo_id":"1366538490","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366538503":["hashtag1","hashtag2"]},{"1366538490":["hashtag1","hashtag2"]},{"1366538480":["hashtag1","hashtag2"]},{"1366538494":["hashtag1","hashtag2"]},{"1366538485":["hashtag1","hashtag2"]},{"1366538458":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366538503, 1366538490, 1366538480, 1366538494, 1366538485, 1366538458)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 90.54992508888245 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:55:03.362428
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/54/image_16062025_12_54_35_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/12/54/image_16062025_12_54_25_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/12/54/image_16062025_12_54_14_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/12/53/image_16062025_12_54_05_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/12/53/image_16062025_12_53_55_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/12/52/image_16062025_12_52_45_9598.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/54/image_16062025_12_54_35_9615.jpg', '/home/nano/Desktop/images/16062025/12/54/image_16062025_12_54_25_10637.jpg', '/home/nano/Desktop/images/16062025/12/54/image_16062025_12_54_14_9630.jpg', '/home/nano/Desktop/images/16062025/12/53/image_16062025_12_54_05_9608.jpg', '/home/nano/Desktop/images/16062025/12/53/image_16062025_12_53_55_10633.jpg', '/home/nano/Desktop/images/16062025/12/52/image_16062025_12_52_45_9598.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/54/image_16062025_12_54_35_9615.jpg
/home/nano/Desktop/images/16062025/12/54/image_16062025_12_54_25_10637.jpg
/home/nano/Desktop/images/16062025/12/54/image_16062025_12_54_14_9630.jpg
/home/nano/Desktop/images/16062025/12/53/image_16062025_12_54_05_9608.jpg
/home/nano/Desktop/images/16062025/12/53/image_16062025_12_53_55_10633.jpg
/home/nano/Desktop/images/16062025/12/52/image_16062025_12_52_45_9598.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366538665","1366538775","1366538628","1366538597","1366538714","1366538761"],"photo_ids_order":["1366538597","1366538628","1366538665","1366538714","1366538761","1366538775"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a6dd5a3f86c4b2bacf683a0f67dc81f0.jpg","text":"TemporaryFile(/tmp/multipartBody7779443563320348416asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071370240,"filename":"image_16062025_12_54_14_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/df86a3ded49e8dc0831c70b5416bbbda.jpg","text":"TemporaryFile(/tmp/multipartBody2512713774741151412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071370240,"filename":"image_16062025_12_52_45_9598.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2bd26a1f1c71102ccc2a21f908e2f565.jpg","text":"TemporaryFile(/tmp/multipartBody6911153706174637304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071370240,"filename":"image_16062025_12_54_25_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1d5696cdf114b4f852547fdf718fcfbd.jpg","text":"TemporaryFile(/tmp/multipartBody2555995707704238020asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071370240,"filename":"image_16062025_12_54_35_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/afb29aa4f6088634ec86ad76fc0bfbda.jpg","text":"TemporaryFile(/tmp/multipartBody3298847305009762085asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071370240,"filename":"image_16062025_12_54_05_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f2d1f21d8edddab0d7e89d3997af35b9.jpg","text":"TemporaryFile(/tmp/multipartBody1127714438671073687asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071370240,"filename":"image_16062025_12_53_55_10633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366538665","file1":"1366538628","file0":"1366538597","file4":"1366538761","file5":"1366538775","file3":"1366538714"},"map_files_photo_id_array":[{"photo_id":"1366538775","filename":"file5"},{"photo_id":"1366538665","filename":"file2"},{"photo_id":"1366538761","filename":"file4"},{"photo_id":"1366538628","filename":"file1"},{"photo_id":"1366538597","filename":"file0"},{"photo_id":"1366538714","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366538665":["hashtag1","hashtag2"]},{"1366538775":["hashtag1","hashtag2"]},{"1366538628":["hashtag1","hashtag2"]},{"1366538597":["hashtag1","hashtag2"]},{"1366538714":["hashtag1","hashtag2"]},{"1366538761":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366538665, 1366538775, 1366538628, 1366538597, 1366538714, 1366538761)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 77.6597945690155 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:56:32.663850
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/56/image_16062025_12_56_45_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/12/56/image_16062025_12_56_24_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/12/56/image_16062025_12_56_15_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/12/55/image_16062025_12_56_05_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/12/55/image_16062025_12_55_55_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/12/55/image_16062025_12_55_45_10630.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/56/image_16062025_12_56_45_9621.jpg', '/home/nano/Desktop/images/16062025/12/56/image_16062025_12_56_24_9614.jpg', '/home/nano/Desktop/images/16062025/12/56/image_16062025_12_56_15_9626.jpg', '/home/nano/Desktop/images/16062025/12/55/image_16062025_12_56_05_10636.jpg', '/home/nano/Desktop/images/16062025/12/55/image_16062025_12_55_55_9611.jpg', '/home/nano/Desktop/images/16062025/12/55/image_16062025_12_55_45_10630.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/56/image_16062025_12_56_45_9621.jpg
/home/nano/Desktop/images/16062025/12/56/image_16062025_12_56_24_9614.jpg
/home/nano/Desktop/images/16062025/12/56/image_16062025_12_56_15_9626.jpg
/home/nano/Desktop/images/16062025/12/55/image_16062025_12_56_05_10636.jpg
/home/nano/Desktop/images/16062025/12/55/image_16062025_12_55_55_9611.jpg
/home/nano/Desktop/images/16062025/12/55/image_16062025_12_55_45_10630.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366538799","1366538803","1366538829","1366538831","1366538819","1366538794"],"photo_ids_order":["1366538794","1366538799","1366538803","1366538819","1366538829","1366538831"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1c6b37a1bb31c896d271ad1762b7d252.jpg","text":"TemporaryFile(/tmp/multipartBody5740025700814550462asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071454644,"filename":"image_16062025_12_56_24_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/748aa5c433f8f693b1eb44d02b235378.jpg","text":"TemporaryFile(/tmp/multipartBody7285644843602146820asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071454644,"filename":"image_16062025_12_56_15_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/91dc2f5c69880600f4a69aa0936d95a3.jpg","text":"TemporaryFile(/tmp/multipartBody794531218402722697asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071454644,"filename":"image_16062025_12_55_55_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b3caac63177a9359435e441af4894a24.jpg","text":"TemporaryFile(/tmp/multipartBody4400780419060119710asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071454644,"filename":"image_16062025_12_55_45_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/99624f7e764d8f9b28f00f491b7a878e.jpg","text":"TemporaryFile(/tmp/multipartBody2103522864712082449asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071454644,"filename":"image_16062025_12_56_05_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9460e058687178bda79769a5e1602064.jpg","text":"TemporaryFile(/tmp/multipartBody6613182108417517394asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071454644,"filename":"image_16062025_12_56_45_9621.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366538803","file1":"1366538799","file0":"1366538794","file4":"1366538829","file5":"1366538831","file3":"1366538819"},"map_files_photo_id_array":[{"photo_id":"1366538831","filename":"file5"},{"photo_id":"1366538803","filename":"file2"},{"photo_id":"1366538829","filename":"file4"},{"photo_id":"1366538799","filename":"file1"},{"photo_id":"1366538794","filename":"file0"},{"photo_id":"1366538819","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366538799":["hashtag1","hashtag2"]},{"1366538803":["hashtag1","hashtag2"]},{"1366538829":["hashtag1","hashtag2"]},{"1366538831":["hashtag1","hashtag2"]},{"1366538819":["hashtag1","hashtag2"]},{"1366538794":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366538799, 1366538803, 1366538829, 1366538831, 1366538819, 1366538794)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 77.36661744117737 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 12:58:02.342720
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/12/57/image_16062025_12_57_25_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/12/57/image_16062025_12_57_15_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/12/56/image_16062025_12_57_05_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/12/56/image_16062025_12_56_55_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/12/55/image_16062025_12_55_34_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/12/55/image_16062025_12_55_25_9611.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/12/57/image_16062025_12_57_25_10623.jpg', '/home/nano/Desktop/images/16062025/12/57/image_16062025_12_57_15_9654.jpg', '/home/nano/Desktop/images/16062025/12/56/image_16062025_12_57_05_9624.jpg', '/home/nano/Desktop/images/16062025/12/56/image_16062025_12_56_55_10628.jpg', '/home/nano/Desktop/images/16062025/12/55/image_16062025_12_55_34_9627.jpg', '/home/nano/Desktop/images/16062025/12/55/image_16062025_12_55_25_9611.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/12/57/image_16062025_12_57_25_10623.jpg
/home/nano/Desktop/images/16062025/12/57/image_16062025_12_57_15_9654.jpg
/home/nano/Desktop/images/16062025/12/56/image_16062025_12_57_05_9624.jpg
/home/nano/Desktop/images/16062025/12/56/image_16062025_12_56_55_10628.jpg
/home/nano/Desktop/images/16062025/12/55/image_16062025_12_55_34_9627.jpg
/home/nano/Desktop/images/16062025/12/55/image_16062025_12_55_25_9611.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366539177","1366539576","1366539456","1366539111","1366539036","1366539433"],"photo_ids_order":["1366539036","1366539111","1366539177","1366539433","1366539456","1366539576"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f6d7ae135eb14769e24fb5d2cb40e969.jpg","text":"TemporaryFile(/tmp/multipartBody8862659429660880519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071566371,"filename":"image_16062025_12_57_05_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6fbca3bf9a7e60609f7e0befa62d6181.jpg","text":"TemporaryFile(/tmp/multipartBody7723472067092967171asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071566371,"filename":"image_16062025_12_55_25_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0e74186d25884f2e184005b1827c2a25.jpg","text":"TemporaryFile(/tmp/multipartBody772891084411738320asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071566371,"filename":"image_16062025_12_55_34_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b0e218fc182d35f89175162af6908c83.jpg","text":"TemporaryFile(/tmp/multipartBody5198190431225910527asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071566371,"filename":"image_16062025_12_57_15_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3eeafdeb8c2c13d29ef6cdf4abfa48a7.jpg","text":"TemporaryFile(/tmp/multipartBody8130761366330420431asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071566371,"filename":"image_16062025_12_57_25_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6925f93d2517d662a270fef0845acb43.jpg","text":"TemporaryFile(/tmp/multipartBody7806229201276484855asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071566371,"filename":"image_16062025_12_56_55_10628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366539177","file1":"1366539111","file0":"1366539036","file4":"1366539456","file5":"1366539576","file3":"1366539433"},"map_files_photo_id_array":[{"photo_id":"1366539576","filename":"file5"},{"photo_id":"1366539177","filename":"file2"},{"photo_id":"1366539456","filename":"file4"},{"photo_id":"1366539111","filename":"file1"},{"photo_id":"1366539036","filename":"file0"},{"photo_id":"1366539433","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366539177":["hashtag1","hashtag2"]},{"1366539576":["hashtag1","hashtag2"]},{"1366539456":["hashtag1","hashtag2"]},{"1366539111":["hashtag1","hashtag2"]},{"1366539036":["hashtag1","hashtag2"]},{"1366539433":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366539177, 1366539576, 1366539456, 1366539111, 1366539036, 1366539433)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 178.18108654022217 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 13:01:02.308382
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/13/00/image_16062025_13_00_35_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/13/00/image_16062025_13_00_25_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/12/59/image_16062025_13_00_05_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/12/59/image_16062025_12_59_55_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/12/59/image_16062025_12_59_45_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/12/59/image_16062025_12_59_25_9617.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/13/00/image_16062025_13_00_35_10621.jpg', '/home/nano/Desktop/images/16062025/13/00/image_16062025_13_00_25_9611.jpg', '/home/nano/Desktop/images/16062025/12/59/image_16062025_13_00_05_10638.jpg', '/home/nano/Desktop/images/16062025/12/59/image_16062025_12_59_55_9611.jpg', '/home/nano/Desktop/images/16062025/12/59/image_16062025_12_59_45_10626.jpg', '/home/nano/Desktop/images/16062025/12/59/image_16062025_12_59_25_9617.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/13/00/image_16062025_13_00_35_10621.jpg
/home/nano/Desktop/images/16062025/13/00/image_16062025_13_00_25_9611.jpg
/home/nano/Desktop/images/16062025/12/59/image_16062025_13_00_05_10638.jpg
/home/nano/Desktop/images/16062025/12/59/image_16062025_12_59_55_9611.jpg
/home/nano/Desktop/images/16062025/12/59/image_16062025_12_59_45_10626.jpg
/home/nano/Desktop/images/16062025/12/59/image_16062025_12_59_25_9617.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366539828","1366539729","1366539787","1366539760","1366539754","1366539739"],"photo_ids_order":["1366539729","1366539739","1366539754","1366539760","1366539787","1366539828"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0f785f8a1a67e4b161f10bf92cce5c1b.jpg","text":"TemporaryFile(/tmp/multipartBody6560544009484855288asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071729507,"filename":"image_16062025_12_59_25_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/aa76a351b57177b66d0f54907ed4aa30.jpg","text":"TemporaryFile(/tmp/multipartBody7891349094835267038asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071729507,"filename":"image_16062025_13_00_35_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9ad2864a3a46689db477f212d52fea22.jpg","text":"TemporaryFile(/tmp/multipartBody512472204549839875asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071729507,"filename":"image_16062025_12_59_45_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b38d96bc9a48eaf3f41f365a2a11635d.jpg","text":"TemporaryFile(/tmp/multipartBody7129770538476943549asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071729507,"filename":"image_16062025_12_59_55_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/81bc9b4cf3bdd0f8f431ee9cf6aef240.jpg","text":"TemporaryFile(/tmp/multipartBody1028548191105913275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071729507,"filename":"image_16062025_13_00_05_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1682d0b69bb615e3d266d75fd3db32f6.jpg","text":"TemporaryFile(/tmp/multipartBody471643193255044117asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071729507,"filename":"image_16062025_13_00_25_9611.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366539754","file1":"1366539739","file0":"1366539729","file4":"1366539787","file5":"1366539828","file3":"1366539760"},"map_files_photo_id_array":[{"photo_id":"1366539828","filename":"file5"},{"photo_id":"1366539754","filename":"file2"},{"photo_id":"1366539787","filename":"file4"},{"photo_id":"1366539739","filename":"file1"},{"photo_id":"1366539729","filename":"file0"},{"photo_id":"1366539760","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366539828":["hashtag1","hashtag2"]},{"1366539729":["hashtag1","hashtag2"]},{"1366539787":["hashtag1","hashtag2"]},{"1366539760":["hashtag1","hashtag2"]},{"1366539754":["hashtag1","hashtag2"]},{"1366539739":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366539828, 1366539729, 1366539787, 1366539760, 1366539754, 1366539739)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 81.35912370681763 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 13:02:31.847303
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/13/02/image_16062025_13_02_35_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/13/02/image_16062025_13_02_25_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/13/02/image_16062025_13_02_14_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/13/01/image_16062025_13_02_05_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/13/01/image_16062025_13_01_45_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/13/01/image_16062025_13_01_25_10620.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/13/02/image_16062025_13_02_35_9634.jpg', '/home/nano/Desktop/images/16062025/13/02/image_16062025_13_02_25_10623.jpg', '/home/nano/Desktop/images/16062025/13/02/image_16062025_13_02_14_9621.jpg', '/home/nano/Desktop/images/16062025/13/01/image_16062025_13_02_05_9631.jpg', '/home/nano/Desktop/images/16062025/13/01/image_16062025_13_01_45_9612.jpg', '/home/nano/Desktop/images/16062025/13/01/image_16062025_13_01_25_10620.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/13/02/image_16062025_13_02_35_9634.jpg
/home/nano/Desktop/images/16062025/13/02/image_16062025_13_02_25_10623.jpg
/home/nano/Desktop/images/16062025/13/02/image_16062025_13_02_14_9621.jpg
/home/nano/Desktop/images/16062025/13/01/image_16062025_13_02_05_9631.jpg
/home/nano/Desktop/images/16062025/13/01/image_16062025_13_01_45_9612.jpg
/home/nano/Desktop/images/16062025/13/01/image_16062025_13_01_25_10620.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366540153","1366540018","1366540089","1366540248","1366540236","1366540196"],"photo_ids_order":["1366540018","1366540089","1366540153","1366540196","1366540236","1366540248"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b6cbd5986c3e2256be3e8e4ea01e5849.jpg","text":"TemporaryFile(/tmp/multipartBody2150523265090106311asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071817819,"filename":"image_16062025_13_02_14_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0c2e3153b5137ac96f4cb4ea00acbc10.jpg","text":"TemporaryFile(/tmp/multipartBody7438457758719723900asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071817819,"filename":"image_16062025_13_02_35_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/92d9e8743ac132b391eb6b8e35532156.jpg","text":"TemporaryFile(/tmp/multipartBody3810378131873089230asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071817819,"filename":"image_16062025_13_02_25_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4e3bb3f1bff7631f5599ec5e6f84e220.jpg","text":"TemporaryFile(/tmp/multipartBody864784517396884406asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071817819,"filename":"image_16062025_13_01_25_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b90a5d6705089e7dd75bb8c10386bbb3.jpg","text":"TemporaryFile(/tmp/multipartBody5986289087821233733asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071817819,"filename":"image_16062025_13_01_45_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/468c965e3210c677dcba7615add89c50.jpg","text":"TemporaryFile(/tmp/multipartBody6012730395910059824asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071817819,"filename":"image_16062025_13_02_05_9631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366540153","file1":"1366540089","file0":"1366540018","file4":"1366540236","file5":"1366540248","file3":"1366540196"},"map_files_photo_id_array":[{"photo_id":"1366540248","filename":"file5"},{"photo_id":"1366540153","filename":"file2"},{"photo_id":"1366540236","filename":"file4"},{"photo_id":"1366540089","filename":"file1"},{"photo_id":"1366540018","filename":"file0"},{"photo_id":"1366540196","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366540153":["hashtag1","hashtag2"]},{"1366540018":["hashtag1","hashtag2"]},{"1366540089":["hashtag1","hashtag2"]},{"1366540248":["hashtag1","hashtag2"]},{"1366540236":["hashtag1","hashtag2"]},{"1366540196":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366540153, 1366540018, 1366540089, 1366540248, 1366540236, 1366540196)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 69.4582872390747 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 13:03:46.957648
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/13/03/image_16062025_13_03_45_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/13/03/image_16062025_13_03_34_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/13/03/image_16062025_13_03_25_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/13/03/image_16062025_13_03_15_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/13/02/image_16062025_13_03_05_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/13/02/image_16062025_13_02_55_9630.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/13/03/image_16062025_13_03_45_10640.jpg', '/home/nano/Desktop/images/16062025/13/03/image_16062025_13_03_34_9612.jpg', '/home/nano/Desktop/images/16062025/13/03/image_16062025_13_03_25_9631.jpg', '/home/nano/Desktop/images/16062025/13/03/image_16062025_13_03_15_10628.jpg', '/home/nano/Desktop/images/16062025/13/02/image_16062025_13_03_05_9627.jpg', '/home/nano/Desktop/images/16062025/13/02/image_16062025_13_02_55_9630.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/13/03/image_16062025_13_03_45_10640.jpg
/home/nano/Desktop/images/16062025/13/03/image_16062025_13_03_34_9612.jpg
/home/nano/Desktop/images/16062025/13/03/image_16062025_13_03_25_9631.jpg
/home/nano/Desktop/images/16062025/13/03/image_16062025_13_03_15_10628.jpg
/home/nano/Desktop/images/16062025/13/02/image_16062025_13_03_05_9627.jpg
/home/nano/Desktop/images/16062025/13/02/image_16062025_13_02_55_9630.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366540336","1366540344","1366540340","1366540381","1366540375","1366540369"],"photo_ids_order":["1366540336","1366540340","1366540344","1366540369","1366540375","1366540381"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/76ed0c87dedb65edca3962e7f8e47b51.jpg","text":"TemporaryFile(/tmp/multipartBody528870398485501742asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071890522,"filename":"image_16062025_13_03_45_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/10a2df9f1d6ff15f74e9ef9107f83077.jpg","text":"TemporaryFile(/tmp/multipartBody750447460933931178asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071890522,"filename":"image_16062025_13_03_25_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4fcf22da567214944d5b815900aff6bf.jpg","text":"TemporaryFile(/tmp/multipartBody1289850015273301874asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071890522,"filename":"image_16062025_13_03_34_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/de87ea36ce562560648edc6b46ead01a.jpg","text":"TemporaryFile(/tmp/multipartBody7931276029912057927asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071890522,"filename":"image_16062025_13_02_55_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c6693ba5870d42e47ea8530972ef43b9.jpg","text":"TemporaryFile(/tmp/multipartBody941888881245594359asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071890522,"filename":"image_16062025_13_03_05_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/10edc698c99fc1f6e9dd247050535e5e.jpg","text":"TemporaryFile(/tmp/multipartBody1186677664213099739asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750071890522,"filename":"image_16062025_13_03_15_10628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366540344","file1":"1366540340","file0":"1366540336","file4":"1366540375","file5":"1366540381","file3":"1366540369"},"map_files_photo_id_array":[{"photo_id":"1366540381","filename":"file5"},{"photo_id":"1366540344","filename":"file2"},{"photo_id":"1366540375","filename":"file4"},{"photo_id":"1366540340","filename":"file1"},{"photo_id":"1366540336","filename":"file0"},{"photo_id":"1366540369","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366540336":["hashtag1","hashtag2"]},{"1366540344":["hashtag1","hashtag2"]},{"1366540340":["hashtag1","hashtag2"]},{"1366540381":["hashtag1","hashtag2"]},{"1366540375":["hashtag1","hashtag2"]},{"1366540369":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366540336, 1366540344, 1366540340, 1366540381, 1366540375, 1366540369)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 53.7590434551239 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 13:04:47.045997
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/13/04/image_16062025_13_04_45_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/13/04/image_16062025_13_04_35_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/13/04/image_16062025_13_04_25_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/13/04/image_16062025_13_04_15_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/13/03/image_16062025_13_04_05_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/13/03/image_16062025_13_03_55_9619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/13/04/image_16062025_13_04_45_9617.jpg', '/home/nano/Desktop/images/16062025/13/04/image_16062025_13_04_35_10628.jpg', '/home/nano/Desktop/images/16062025/13/04/image_16062025_13_04_25_9634.jpg', '/home/nano/Desktop/images/16062025/13/04/image_16062025_13_04_15_9612.jpg', '/home/nano/Desktop/images/16062025/13/03/image_16062025_13_04_05_10647.jpg', '/home/nano/Desktop/images/16062025/13/03/image_16062025_13_03_55_9619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/13/04/image_16062025_13_04_45_9617.jpg
/home/nano/Desktop/images/16062025/13/04/image_16062025_13_04_35_10628.jpg
/home/nano/Desktop/images/16062025/13/04/image_16062025_13_04_25_9634.jpg
/home/nano/Desktop/images/16062025/13/04/image_16062025_13_04_15_9612.jpg
/home/nano/Desktop/images/16062025/13/03/image_16062025_13_04_05_10647.jpg
/home/nano/Desktop/images/16062025/13/03/image_16062025_13_03_55_9619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 304.5785734653473 secondes ---
<Response [502]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>502 Proxy Error</title>\n</head><body>\n<h1>Proxy Error</h1>\n<p>The proxy server received an invalid\r\nresponse from an upstream server.<br />\r\nThe proxy server could not handle the request<p>Reason: <strong>Error reading from remote server</strong></p></p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
502
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 13:10:03.260007
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/13/09/image_16062025_13_09_35_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/13/09/image_16062025_13_09_25_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/13/09/image_16062025_13_09_15_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/13/08/image_16062025_13_09_05_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/13/08/image_16062025_13_08_54_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/13/08/image_16062025_13_08_45_9617.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/13/09/image_16062025_13_09_35_9631.jpg', '/home/nano/Desktop/images/16062025/13/09/image_16062025_13_09_25_10629.jpg', '/home/nano/Desktop/images/16062025/13/09/image_16062025_13_09_15_9630.jpg', '/home/nano/Desktop/images/16062025/13/08/image_16062025_13_09_05_10635.jpg', '/home/nano/Desktop/images/16062025/13/08/image_16062025_13_08_54_9611.jpg', '/home/nano/Desktop/images/16062025/13/08/image_16062025_13_08_45_9617.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/13/09/image_16062025_13_09_35_9631.jpg
/home/nano/Desktop/images/16062025/13/09/image_16062025_13_09_25_10629.jpg
/home/nano/Desktop/images/16062025/13/09/image_16062025_13_09_15_9630.jpg
/home/nano/Desktop/images/16062025/13/08/image_16062025_13_09_05_10635.jpg
/home/nano/Desktop/images/16062025/13/08/image_16062025_13_08_54_9611.jpg
/home/nano/Desktop/images/16062025/13/08/image_16062025_13_08_45_9617.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 320.8590705394745 secondes ---
<Response [502]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>502 Proxy Error</title>\n</head><body>\n<h1>Proxy Error</h1>\n<p>The proxy server received an invalid\r\nresponse from an upstream server.<br />\r\nThe proxy server could not handle the request<p>Reason: <strong>Error reading from remote server</strong></p></p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
502
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 13:15:32.273268
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/13/15/image_16062025_13_15_45_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/13/15/image_16062025_13_15_34_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/13/15/image_16062025_13_15_25_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/13/15/image_16062025_13_15_15_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/13/14/image_16062025_13_15_05_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/13/14/image_16062025_13_14_55_9617.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/13/15/image_16062025_13_15_45_10628.jpg', '/home/nano/Desktop/images/16062025/13/15/image_16062025_13_15_34_9630.jpg', '/home/nano/Desktop/images/16062025/13/15/image_16062025_13_15_25_9612.jpg', '/home/nano/Desktop/images/16062025/13/15/image_16062025_13_15_15_10666.jpg', '/home/nano/Desktop/images/16062025/13/14/image_16062025_13_15_05_9615.jpg', '/home/nano/Desktop/images/16062025/13/14/image_16062025_13_14_55_9617.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/13/15/image_16062025_13_15_45_10628.jpg
/home/nano/Desktop/images/16062025/13/15/image_16062025_13_15_34_9630.jpg
/home/nano/Desktop/images/16062025/13/15/image_16062025_13_15_25_9612.jpg
/home/nano/Desktop/images/16062025/13/15/image_16062025_13_15_15_10666.jpg
/home/nano/Desktop/images/16062025/13/14/image_16062025_13_15_05_9615.jpg
/home/nano/Desktop/images/16062025/13/14/image_16062025_13_14_55_9617.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 311.95666337013245 secondes ---
<Response [502]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>502 Proxy Error</title>\n</head><body>\n<h1>Proxy Error</h1>\n<p>The proxy server received an invalid\r\nresponse from an upstream server.<br />\r\nThe proxy server could not handle the request<p>Reason: <strong>Error reading from remote server</strong></p></p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
502
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 13:20:46.838597
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/13/20/image_16062025_13_20_45_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/13/20/image_16062025_13_20_35_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/13/20/image_16062025_13_20_25_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/13/20/image_16062025_13_20_15_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/13/19/image_16062025_13_20_05_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/13/19/image_16062025_13_19_55_9613.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/13/20/image_16062025_13_20_45_9610.jpg', '/home/nano/Desktop/images/16062025/13/20/image_16062025_13_20_35_10621.jpg', '/home/nano/Desktop/images/16062025/13/20/image_16062025_13_20_25_9617.jpg', '/home/nano/Desktop/images/16062025/13/20/image_16062025_13_20_15_9633.jpg', '/home/nano/Desktop/images/16062025/13/19/image_16062025_13_20_05_10622.jpg', '/home/nano/Desktop/images/16062025/13/19/image_16062025_13_19_55_9613.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/13/20/image_16062025_13_20_45_9610.jpg
/home/nano/Desktop/images/16062025/13/20/image_16062025_13_20_35_10621.jpg
/home/nano/Desktop/images/16062025/13/20/image_16062025_13_20_25_9617.jpg
/home/nano/Desktop/images/16062025/13/20/image_16062025_13_20_15_9633.jpg
/home/nano/Desktop/images/16062025/13/19/image_16062025_13_20_05_10622.jpg
/home/nano/Desktop/images/16062025/13/19/image_16062025_13_19_55_9613.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366542188","1366542440","1366542620","1366542523","1366542328","1366541869"],"photo_ids_order":["1366541869","1366542188","1366542328","1366542440","1366542523","1366542620"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/01a7e1e71b97e3e59866627684bc5671.jpg","text":"TemporaryFile(/tmp/multipartBody24883208623626613asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750072924933,"filename":"image_16062025_13_20_35_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0a4bb2abfdab267da6de70f1a42c881f.jpg","text":"TemporaryFile(/tmp/multipartBody7279477532347597080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750072924933,"filename":"image_16062025_13_20_15_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/54bc693dfb79d81089f244f6040b6515.jpg","text":"TemporaryFile(/tmp/multipartBody5605336836895512797asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750072924933,"filename":"image_16062025_13_19_55_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4d7b1884c442ab5a8e2148f5f3602cae.jpg","text":"TemporaryFile(/tmp/multipartBody6126078126493090100asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750072924933,"filename":"image_16062025_13_20_05_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dc68e0b026ec0da6045e933b220563dd.jpg","text":"TemporaryFile(/tmp/multipartBody4750972345049539599asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750072924933,"filename":"image_16062025_13_20_25_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ebdffb426fc6b7a4602480110bee1e07.jpg","text":"TemporaryFile(/tmp/multipartBody1446246616643936900asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750072924933,"filename":"image_16062025_13_20_45_9610.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366542328","file1":"1366542188","file0":"1366541869","file4":"1366542523","file5":"1366542620","file3":"1366542440"},"map_files_photo_id_array":[{"photo_id":"1366542620","filename":"file5"},{"photo_id":"1366542328","filename":"file2"},{"photo_id":"1366542523","filename":"file4"},{"photo_id":"1366542188","filename":"file1"},{"photo_id":"1366541869","filename":"file0"},{"photo_id":"1366542440","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366542188":["hashtag1","hashtag2"]},{"1366542440":["hashtag1","hashtag2"]},{"1366542620":["hashtag1","hashtag2"]},{"1366542523":["hashtag1","hashtag2"]},{"1366542328":["hashtag1","hashtag2"]},{"1366541869":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366542188, 1366542440, 1366542620, 1366542523, 1366542328, 1366541869)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 157.90776228904724 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 13:23:32.179693
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/13/23/image_16062025_13_23_45_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/13/23/image_16062025_13_23_35_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/13/23/image_16062025_13_23_25_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/13/23/image_16062025_13_23_15_10681.jpg', 2), ('/home/nano/Desktop/images/16062025/13/22/image_16062025_13_23_04_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/13/22/image_16062025_13_22_35_9611.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/13/23/image_16062025_13_23_45_9620.jpg', '/home/nano/Desktop/images/16062025/13/23/image_16062025_13_23_35_10621.jpg', '/home/nano/Desktop/images/16062025/13/23/image_16062025_13_23_25_9612.jpg', '/home/nano/Desktop/images/16062025/13/23/image_16062025_13_23_15_10681.jpg', '/home/nano/Desktop/images/16062025/13/22/image_16062025_13_23_04_9637.jpg', '/home/nano/Desktop/images/16062025/13/22/image_16062025_13_22_35_9611.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/13/23/image_16062025_13_23_45_9620.jpg
/home/nano/Desktop/images/16062025/13/23/image_16062025_13_23_35_10621.jpg
/home/nano/Desktop/images/16062025/13/23/image_16062025_13_23_25_9612.jpg
/home/nano/Desktop/images/16062025/13/23/image_16062025_13_23_15_10681.jpg
/home/nano/Desktop/images/16062025/13/22/image_16062025_13_23_04_9637.jpg
/home/nano/Desktop/images/16062025/13/22/image_16062025_13_22_35_9611.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366542747","1366542737","1366542752","1366542694","1366542742","1366542762"],"photo_ids_order":["1366542694","1366542737","1366542742","1366542747","1366542752","1366542762"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5c88cb95992e56b9e4d39a21423d9a8f.jpg","text":"TemporaryFile(/tmp/multipartBody1452736894858266748asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073076062,"filename":"image_16062025_13_23_15_10681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7b28283b058525433bf9e8e2b4cfb276.jpg","text":"TemporaryFile(/tmp/multipartBody2877551435766044128asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073076062,"filename":"image_16062025_13_23_35_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1618da80078373eabaa63ef134e2bb92.jpg","text":"TemporaryFile(/tmp/multipartBody5469614656648613089asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073076062,"filename":"image_16062025_13_23_04_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a162ecb630df1ce7b42dede40d233fee.jpg","text":"TemporaryFile(/tmp/multipartBody3860457527480176557asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073076062,"filename":"image_16062025_13_23_45_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2deea38043343c97e8357ffda38bac2b.jpg","text":"TemporaryFile(/tmp/multipartBody7666663912072657495asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073076062,"filename":"image_16062025_13_23_25_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6c13bb0307f8b9a21335a156c5755204.jpg","text":"TemporaryFile(/tmp/multipartBody4461534584350725952asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073076062,"filename":"image_16062025_13_22_35_9611.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366542742","file1":"1366542737","file0":"1366542694","file4":"1366542752","file5":"1366542762","file3":"1366542747"},"map_files_photo_id_array":[{"photo_id":"1366542762","filename":"file5"},{"photo_id":"1366542742","filename":"file2"},{"photo_id":"1366542752","filename":"file4"},{"photo_id":"1366542737","filename":"file1"},{"photo_id":"1366542694","filename":"file0"},{"photo_id":"1366542747","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366542747":["hashtag1","hashtag2"]},{"1366542737":["hashtag1","hashtag2"]},{"1366542752":["hashtag1","hashtag2"]},{"1366542694":["hashtag1","hashtag2"]},{"1366542742":["hashtag1","hashtag2"]},{"1366542762":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366542747, 1366542737, 1366542752, 1366542694, 1366542742, 1366542762)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 99.97087788581848 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 13:25:17.414479
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/13/25/image_16062025_13_25_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/13/25/image_16062025_13_25_25_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/13/25/image_16062025_13_25_15_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/13/24/image_16062025_13_25_05_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/13/24/image_16062025_13_24_55_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/13/24/image_16062025_13_24_45_9614.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/13/25/image_16062025_13_25_44_9618.jpg', '/home/nano/Desktop/images/16062025/13/25/image_16062025_13_25_25_10627.jpg', '/home/nano/Desktop/images/16062025/13/25/image_16062025_13_25_15_9639.jpg', '/home/nano/Desktop/images/16062025/13/24/image_16062025_13_25_05_9620.jpg', '/home/nano/Desktop/images/16062025/13/24/image_16062025_13_24_55_10621.jpg', '/home/nano/Desktop/images/16062025/13/24/image_16062025_13_24_45_9614.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/13/25/image_16062025_13_25_44_9618.jpg
/home/nano/Desktop/images/16062025/13/25/image_16062025_13_25_25_10627.jpg
/home/nano/Desktop/images/16062025/13/25/image_16062025_13_25_15_9639.jpg
/home/nano/Desktop/images/16062025/13/24/image_16062025_13_25_05_9620.jpg
/home/nano/Desktop/images/16062025/13/24/image_16062025_13_24_55_10621.jpg
/home/nano/Desktop/images/16062025/13/24/image_16062025_13_24_45_9614.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366542867","1366542906","1366542917","1366542902","1366542910","1366542826"],"photo_ids_order":["1366542826","1366542867","1366542902","1366542906","1366542910","1366542917"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/04921b7f5822e3c945208d57e1920724.jpg","text":"TemporaryFile(/tmp/multipartBody6211546193979350569asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073179942,"filename":"image_16062025_13_25_25_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f45a5f69939131d8e77161927b1c9609.jpg","text":"TemporaryFile(/tmp/multipartBody9214007486036666408asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073179942,"filename":"image_16062025_13_25_05_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/61b3882443e9d6792d9abd5940d8ecad.jpg","text":"TemporaryFile(/tmp/multipartBody8189648571580095715asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073179942,"filename":"image_16062025_13_24_45_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9526892bd3babbd7a9863613f06698fe.jpg","text":"TemporaryFile(/tmp/multipartBody4823914158075239259asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073179942,"filename":"image_16062025_13_25_15_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/843718fcdf7f1ef8c37f166447e6b71f.jpg","text":"TemporaryFile(/tmp/multipartBody3172528994328935560asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073179942,"filename":"image_16062025_13_24_55_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/64bc86ebe135bc7ad6e89741f9f0eb7b.jpg","text":"TemporaryFile(/tmp/multipartBody1153191489901949289asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073179942,"filename":"image_16062025_13_25_44_9618.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366542902","file1":"1366542867","file0":"1366542826","file4":"1366542910","file5":"1366542917","file3":"1366542906"},"map_files_photo_id_array":[{"photo_id":"1366542917","filename":"file5"},{"photo_id":"1366542902","filename":"file2"},{"photo_id":"1366542910","filename":"file4"},{"photo_id":"1366542867","filename":"file1"},{"photo_id":"1366542826","filename":"file0"},{"photo_id":"1366542906","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366542867":["hashtag1","hashtag2"]},{"1366542906":["hashtag1","hashtag2"]},{"1366542917":["hashtag1","hashtag2"]},{"1366542902":["hashtag1","hashtag2"]},{"1366542910":["hashtag1","hashtag2"]},{"1366542826":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366542867, 1366542906, 1366542917, 1366542902, 1366542910, 1366542826)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 85.80082726478577 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 13:26:47.533393
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/13/26/image_16062025_13_26_45_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/13/26/image_16062025_13_26_35_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/13/26/image_16062025_13_26_25_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/13/26/image_16062025_13_26_15_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/13/25/image_16062025_13_26_05_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/13/25/image_16062025_13_25_55_10624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/13/26/image_16062025_13_26_45_10622.jpg', '/home/nano/Desktop/images/16062025/13/26/image_16062025_13_26_35_9614.jpg', '/home/nano/Desktop/images/16062025/13/26/image_16062025_13_26_25_9619.jpg', '/home/nano/Desktop/images/16062025/13/26/image_16062025_13_26_15_10653.jpg', '/home/nano/Desktop/images/16062025/13/25/image_16062025_13_26_05_9614.jpg', '/home/nano/Desktop/images/16062025/13/25/image_16062025_13_25_55_10624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/13/26/image_16062025_13_26_45_10622.jpg
/home/nano/Desktop/images/16062025/13/26/image_16062025_13_26_35_9614.jpg
/home/nano/Desktop/images/16062025/13/26/image_16062025_13_26_25_9619.jpg
/home/nano/Desktop/images/16062025/13/26/image_16062025_13_26_15_10653.jpg
/home/nano/Desktop/images/16062025/13/25/image_16062025_13_26_05_9614.jpg
/home/nano/Desktop/images/16062025/13/25/image_16062025_13_25_55_10624.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366542939","1366542947","1366542962","1366542950","1366542979","1366542955"],"photo_ids_order":["1366542939","1366542947","1366542950","1366542955","1366542962","1366542979"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b279e9acf2a9286edcc3f24d2284bbcf.jpg","text":"TemporaryFile(/tmp/multipartBody3838590009554759997asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073272420,"filename":"image_16062025_13_26_45_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7facf199431ee78de79111e18da0381f.jpg","text":"TemporaryFile(/tmp/multipartBody5340903215101101049asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073272420,"filename":"image_16062025_13_26_35_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b1987a3a9d7e1922d3cd570cb85ca6b3.jpg","text":"TemporaryFile(/tmp/multipartBody5600978889144971170asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073272420,"filename":"image_16062025_13_26_05_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/04401d0bd6844fb481972ae750f5f5b7.jpg","text":"TemporaryFile(/tmp/multipartBody4002094963325473720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073272420,"filename":"image_16062025_13_26_25_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8901b04ee20bf010bd985fa5d3d2bb15.jpg","text":"TemporaryFile(/tmp/multipartBody8296956908359559027asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073272420,"filename":"image_16062025_13_25_55_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/90c7711ae7873e9ea04fb11627bc8776.jpg","text":"TemporaryFile(/tmp/multipartBody6105452565282464444asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073272420,"filename":"image_16062025_13_26_15_10653.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366542950","file1":"1366542947","file0":"1366542939","file4":"1366542962","file5":"1366542979","file3":"1366542955"},"map_files_photo_id_array":[{"photo_id":"1366542979","filename":"file5"},{"photo_id":"1366542950","filename":"file2"},{"photo_id":"1366542962","filename":"file4"},{"photo_id":"1366542947","filename":"file1"},{"photo_id":"1366542939","filename":"file0"},{"photo_id":"1366542955","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366542939":["hashtag1","hashtag2"]},{"1366542947":["hashtag1","hashtag2"]},{"1366542962":["hashtag1","hashtag2"]},{"1366542950":["hashtag1","hashtag2"]},{"1366542979":["hashtag1","hashtag2"]},{"1366542955":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366542939, 1366542947, 1366542962, 1366542950, 1366542979, 1366542955)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 95.19471144676208 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 13:28:32.726228
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/13/28/image_16062025_13_28_45_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/13/28/image_16062025_13_28_35_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/13/28/image_16062025_13_28_24_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/13/28/image_16062025_13_28_15_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/13/27/image_16062025_13_28_05_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/13/27/image_16062025_13_27_55_9618.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/13/28/image_16062025_13_28_45_9612.jpg', '/home/nano/Desktop/images/16062025/13/28/image_16062025_13_28_35_10627.jpg', '/home/nano/Desktop/images/16062025/13/28/image_16062025_13_28_24_9615.jpg', '/home/nano/Desktop/images/16062025/13/28/image_16062025_13_28_15_9639.jpg', '/home/nano/Desktop/images/16062025/13/27/image_16062025_13_28_05_10633.jpg', '/home/nano/Desktop/images/16062025/13/27/image_16062025_13_27_55_9618.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/13/28/image_16062025_13_28_45_9612.jpg
/home/nano/Desktop/images/16062025/13/28/image_16062025_13_28_35_10627.jpg
/home/nano/Desktop/images/16062025/13/28/image_16062025_13_28_24_9615.jpg
/home/nano/Desktop/images/16062025/13/28/image_16062025_13_28_15_9639.jpg
/home/nano/Desktop/images/16062025/13/27/image_16062025_13_28_05_10633.jpg
/home/nano/Desktop/images/16062025/13/27/image_16062025_13_27_55_9618.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366543097","1366543058","1366543006","1366542999","1366543035","1366543044"],"photo_ids_order":["1366542999","1366543006","1366543035","1366543044","1366543058","1366543097"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0d864f957eeb1666525c8b791d14ffdc.jpg","text":"TemporaryFile(/tmp/multipartBody6088572227976478716asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073380965,"filename":"image_16062025_13_27_55_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d859d24680557af7386aa11d3406c55a.jpg","text":"TemporaryFile(/tmp/multipartBody5566502082961076825asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073380965,"filename":"image_16062025_13_28_05_10633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/058a7459e942717011f18041104aee7b.jpg","text":"TemporaryFile(/tmp/multipartBody8210013451231693456asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073380965,"filename":"image_16062025_13_28_35_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b510a703164a6efdd2d88ad973f6b54d.jpg","text":"TemporaryFile(/tmp/multipartBody4712999330899166820asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073380965,"filename":"image_16062025_13_28_45_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ad3fdad1a691caca56b86735949b7b7e.jpg","text":"TemporaryFile(/tmp/multipartBody4835073236175689089asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073380965,"filename":"image_16062025_13_28_24_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f4152c4149b02a7f86a260a93c386027.jpg","text":"TemporaryFile(/tmp/multipartBody1439995758002465961asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073380965,"filename":"image_16062025_13_28_15_9639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366543035","file1":"1366543006","file0":"1366542999","file4":"1366543058","file5":"1366543097","file3":"1366543044"},"map_files_photo_id_array":[{"photo_id":"1366543097","filename":"file5"},{"photo_id":"1366543035","filename":"file2"},{"photo_id":"1366543058","filename":"file4"},{"photo_id":"1366543006","filename":"file1"},{"photo_id":"1366542999","filename":"file0"},{"photo_id":"1366543044","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366543097":["hashtag1","hashtag2"]},{"1366543058":["hashtag1","hashtag2"]},{"1366543006":["hashtag1","hashtag2"]},{"1366542999":["hashtag1","hashtag2"]},{"1366543035":["hashtag1","hashtag2"]},{"1366543044":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366543097, 1366543058, 1366543006, 1366542999, 1366543035, 1366543044)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 110.64776587486267 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 13:30:31.917604
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/13/30/image_16062025_13_30_45_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/13/30/image_16062025_13_30_35_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/13/30/image_16062025_13_30_25_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/13/30/image_16062025_13_30_15_10657.jpg', 2), ('/home/nano/Desktop/images/16062025/13/29/image_16062025_13_30_05_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/13/29/image_16062025_13_29_55_10621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/13/30/image_16062025_13_30_45_10623.jpg', '/home/nano/Desktop/images/16062025/13/30/image_16062025_13_30_35_9644.jpg', '/home/nano/Desktop/images/16062025/13/30/image_16062025_13_30_25_9620.jpg', '/home/nano/Desktop/images/16062025/13/30/image_16062025_13_30_15_10657.jpg', '/home/nano/Desktop/images/16062025/13/29/image_16062025_13_30_05_9617.jpg', '/home/nano/Desktop/images/16062025/13/29/image_16062025_13_29_55_10621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/13/30/image_16062025_13_30_45_10623.jpg
/home/nano/Desktop/images/16062025/13/30/image_16062025_13_30_35_9644.jpg
/home/nano/Desktop/images/16062025/13/30/image_16062025_13_30_25_9620.jpg
/home/nano/Desktop/images/16062025/13/30/image_16062025_13_30_15_10657.jpg
/home/nano/Desktop/images/16062025/13/29/image_16062025_13_30_05_9617.jpg
/home/nano/Desktop/images/16062025/13/29/image_16062025_13_29_55_10621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366543265","1366543187","1366543252","1366543225","1366543153","1366543207"],"photo_ids_order":["1366543153","1366543187","1366543207","1366543225","1366543252","1366543265"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/42603bf548e91ac2ba1b46a1f765e96f.jpg","text":"TemporaryFile(/tmp/multipartBody7671203273268306820asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073501089,"filename":"image_16062025_13_29_55_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/09748759fd75145f0eba73dd2a2e50f9.jpg","text":"TemporaryFile(/tmp/multipartBody2434037968246400130asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073501089,"filename":"image_16062025_13_30_35_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/444bd4ba83db7ef175cc881ed02585ad.jpg","text":"TemporaryFile(/tmp/multipartBody5788189970795789234asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073501089,"filename":"image_16062025_13_30_05_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6b0826bd34da951a138adea79068675a.jpg","text":"TemporaryFile(/tmp/multipartBody5402360272701485284asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073501089,"filename":"image_16062025_13_30_15_10657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/391774d25eb3a36a8919cdff95c87703.jpg","text":"TemporaryFile(/tmp/multipartBody1799770507174583979asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073501089,"filename":"image_16062025_13_30_45_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b21ac64f936e970959f09b23657cc476.jpg","text":"TemporaryFile(/tmp/multipartBody6893789759271206527asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073501089,"filename":"image_16062025_13_30_25_9620.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366543207","file1":"1366543187","file0":"1366543153","file4":"1366543252","file5":"1366543265","file3":"1366543225"},"map_files_photo_id_array":[{"photo_id":"1366543265","filename":"file5"},{"photo_id":"1366543207","filename":"file2"},{"photo_id":"1366543252","filename":"file4"},{"photo_id":"1366543187","filename":"file1"},{"photo_id":"1366543153","filename":"file0"},{"photo_id":"1366543225","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366543265":["hashtag1","hashtag2"]},{"1366543187":["hashtag1","hashtag2"]},{"1366543252":["hashtag1","hashtag2"]},{"1366543225":["hashtag1","hashtag2"]},{"1366543153":["hashtag1","hashtag2"]},{"1366543207":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366543265, 1366543187, 1366543252, 1366543225, 1366543153, 1366543207)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 132.81362318992615 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 13:32:47.172284
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/13/32/image_16062025_13_32_45_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/13/32/image_16062025_13_32_35_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/13/32/image_16062025_13_32_24_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/13/32/image_16062025_13_32_15_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/13/31/image_16062025_13_32_05_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/13/31/image_16062025_13_31_55_9629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/13/32/image_16062025_13_32_45_9611.jpg', '/home/nano/Desktop/images/16062025/13/32/image_16062025_13_32_35_10619.jpg', '/home/nano/Desktop/images/16062025/13/32/image_16062025_13_32_24_9627.jpg', '/home/nano/Desktop/images/16062025/13/32/image_16062025_13_32_15_9616.jpg', '/home/nano/Desktop/images/16062025/13/31/image_16062025_13_32_05_10635.jpg', '/home/nano/Desktop/images/16062025/13/31/image_16062025_13_31_55_9629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/13/32/image_16062025_13_32_45_9611.jpg
/home/nano/Desktop/images/16062025/13/32/image_16062025_13_32_35_10619.jpg
/home/nano/Desktop/images/16062025/13/32/image_16062025_13_32_24_9627.jpg
/home/nano/Desktop/images/16062025/13/32/image_16062025_13_32_15_9616.jpg
/home/nano/Desktop/images/16062025/13/31/image_16062025_13_32_05_10635.jpg
/home/nano/Desktop/images/16062025/13/31/image_16062025_13_31_55_9629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366543419","1366543295","1366543384","1366543304","1366543348","1366543450"],"photo_ids_order":["1366543295","1366543304","1366543348","1366543384","1366543419","1366543450"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7f1126e546f4205183ac7c065843a286.jpg","text":"TemporaryFile(/tmp/multipartBody8267710664367807948asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073629145,"filename":"image_16062025_13_32_05_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2b4e41634d97946d9b4d742ca59f11af.jpg","text":"TemporaryFile(/tmp/multipartBody1718053977649885478asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073629145,"filename":"image_16062025_13_32_45_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/abd393fb347a99aa673bed508ff3e89b.jpg","text":"TemporaryFile(/tmp/multipartBody2323304955327428469asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073629145,"filename":"image_16062025_13_32_15_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/68881b134de863c01aa62cb115925b4f.jpg","text":"TemporaryFile(/tmp/multipartBody5968109358312771965asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073629145,"filename":"image_16062025_13_32_35_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fbb5fd1ff960015068d12ca51bd00137.jpg","text":"TemporaryFile(/tmp/multipartBody5298424433180227813asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073629145,"filename":"image_16062025_13_32_24_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f88c671c91ee467227a48582c606c174.jpg","text":"TemporaryFile(/tmp/multipartBody3841147465813747019asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073629145,"filename":"image_16062025_13_31_55_9629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366543348","file1":"1366543304","file0":"1366543295","file4":"1366543419","file5":"1366543450","file3":"1366543384"},"map_files_photo_id_array":[{"photo_id":"1366543450","filename":"file5"},{"photo_id":"1366543348","filename":"file2"},{"photo_id":"1366543419","filename":"file4"},{"photo_id":"1366543304","filename":"file1"},{"photo_id":"1366543295","filename":"file0"},{"photo_id":"1366543384","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366543419":["hashtag1","hashtag2"]},{"1366543295":["hashtag1","hashtag2"]},{"1366543384":["hashtag1","hashtag2"]},{"1366543304":["hashtag1","hashtag2"]},{"1366543348":["hashtag1","hashtag2"]},{"1366543450":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366543419, 1366543295, 1366543384, 1366543304, 1366543348, 1366543450)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 68.23424625396729 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 13:34:03.366264
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/13/33/image_16062025_13_33_44_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/13/33/image_16062025_13_33_35_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/13/33/image_16062025_13_33_25_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/13/33/image_16062025_13_33_15_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/13/32/image_16062025_13_33_05_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/13/32/image_16062025_13_32_55_10622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/13/33/image_16062025_13_33_44_9612.jpg', '/home/nano/Desktop/images/16062025/13/33/image_16062025_13_33_35_9613.jpg', '/home/nano/Desktop/images/16062025/13/33/image_16062025_13_33_25_10622.jpg', '/home/nano/Desktop/images/16062025/13/33/image_16062025_13_33_15_9629.jpg', '/home/nano/Desktop/images/16062025/13/32/image_16062025_13_33_05_9630.jpg', '/home/nano/Desktop/images/16062025/13/32/image_16062025_13_32_55_10622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/13/33/image_16062025_13_33_44_9612.jpg
/home/nano/Desktop/images/16062025/13/33/image_16062025_13_33_35_9613.jpg
/home/nano/Desktop/images/16062025/13/33/image_16062025_13_33_25_10622.jpg
/home/nano/Desktop/images/16062025/13/33/image_16062025_13_33_15_9629.jpg
/home/nano/Desktop/images/16062025/13/32/image_16062025_13_33_05_9630.jpg
/home/nano/Desktop/images/16062025/13/32/image_16062025_13_32_55_10622.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366543481","1366543505","1366543510","1366543497","1366543491","1366543473"],"photo_ids_order":["1366543473","1366543481","1366543491","1366543497","1366543505","1366543510"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d3964e9f13dbbd7921dc51e955e8c0f1.jpg","text":"TemporaryFile(/tmp/multipartBody1515286482540792988asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073716936,"filename":"image_16062025_13_33_35_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6161be5b7efb4291dca683d1892b5991.jpg","text":"TemporaryFile(/tmp/multipartBody6994113847143031447asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073716936,"filename":"image_16062025_13_33_05_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cdff3e58c6ad525d7f08eee49339717f.jpg","text":"TemporaryFile(/tmp/multipartBody9018159397631458683asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073716936,"filename":"image_16062025_13_32_55_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/065e04719102a903434ca5a3fb39b063.jpg","text":"TemporaryFile(/tmp/multipartBody2916417788005654645asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073716936,"filename":"image_16062025_13_33_15_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fd996d21c362fc4a8d10fabcc04ada76.jpg","text":"TemporaryFile(/tmp/multipartBody2518702762459084877asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073716936,"filename":"image_16062025_13_33_25_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1a3386eae24e55179a4363d1dd573263.jpg","text":"TemporaryFile(/tmp/multipartBody7256599016281426429asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073716936,"filename":"image_16062025_13_33_44_9612.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366543491","file1":"1366543481","file0":"1366543473","file4":"1366543505","file5":"1366543510","file3":"1366543497"},"map_files_photo_id_array":[{"photo_id":"1366543510","filename":"file5"},{"photo_id":"1366543491","filename":"file2"},{"photo_id":"1366543505","filename":"file4"},{"photo_id":"1366543481","filename":"file1"},{"photo_id":"1366543473","filename":"file0"},{"photo_id":"1366543497","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366543481":["hashtag1","hashtag2"]},{"1366543505":["hashtag1","hashtag2"]},{"1366543510":["hashtag1","hashtag2"]},{"1366543497":["hashtag1","hashtag2"]},{"1366543491":["hashtag1","hashtag2"]},{"1366543473":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366543481, 1366543505, 1366543510, 1366543497, 1366543491, 1366543473)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 103.50542831420898 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 13:36:03.132346
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/13/35/image_16062025_13_35_45_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/13/35/image_16062025_13_35_35_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/13/35/image_16062025_13_35_25_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/13/35/image_16062025_13_35_15_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/13/34/image_16062025_13_35_04_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/13/34/image_16062025_13_34_55_9613.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/13/35/image_16062025_13_35_45_9613.jpg', '/home/nano/Desktop/images/16062025/13/35/image_16062025_13_35_35_10618.jpg', '/home/nano/Desktop/images/16062025/13/35/image_16062025_13_35_25_9613.jpg', '/home/nano/Desktop/images/16062025/13/35/image_16062025_13_35_15_10643.jpg', '/home/nano/Desktop/images/16062025/13/34/image_16062025_13_35_04_9630.jpg', '/home/nano/Desktop/images/16062025/13/34/image_16062025_13_34_55_9613.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/13/35/image_16062025_13_35_45_9613.jpg
/home/nano/Desktop/images/16062025/13/35/image_16062025_13_35_35_10618.jpg
/home/nano/Desktop/images/16062025/13/35/image_16062025_13_35_25_9613.jpg
/home/nano/Desktop/images/16062025/13/35/image_16062025_13_35_15_10643.jpg
/home/nano/Desktop/images/16062025/13/34/image_16062025_13_35_04_9630.jpg
/home/nano/Desktop/images/16062025/13/34/image_16062025_13_34_55_9613.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366543583","1366543579","1366543546","1366543561","1366543590","1366543530"],"photo_ids_order":["1366543530","1366543546","1366543561","1366543579","1366543583","1366543590"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0e649e7fdf131994069e03a102beeeb0.jpg","text":"TemporaryFile(/tmp/multipartBody8358073088215338845asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073831171,"filename":"image_16062025_13_35_04_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0a0df3816efa2c0befb6e27cefd8eebb.jpg","text":"TemporaryFile(/tmp/multipartBody1310009728569410629asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073831171,"filename":"image_16062025_13_35_15_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5e14958f0cbbe4b7a2ab0a29966ffa39.jpg","text":"TemporaryFile(/tmp/multipartBody7734303730356313210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073831171,"filename":"image_16062025_13_35_35_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/38569fdeab6a0f0b0455bcef53bf19c2.jpg","text":"TemporaryFile(/tmp/multipartBody7545910976205967711asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073831171,"filename":"image_16062025_13_35_25_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8a3a54ae8226efe4948cae7098cde0dc.jpg","text":"TemporaryFile(/tmp/multipartBody6595017462628574024asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073831171,"filename":"image_16062025_13_34_55_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7ecf40598b7adeddff45d2919b01fcab.jpg","text":"TemporaryFile(/tmp/multipartBody8260223074534583274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073831171,"filename":"image_16062025_13_35_45_9613.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366543561","file1":"1366543546","file0":"1366543530","file4":"1366543583","file5":"1366543590","file3":"1366543579"},"map_files_photo_id_array":[{"photo_id":"1366543590","filename":"file5"},{"photo_id":"1366543561","filename":"file2"},{"photo_id":"1366543583","filename":"file4"},{"photo_id":"1366543546","filename":"file1"},{"photo_id":"1366543530","filename":"file0"},{"photo_id":"1366543579","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366543583":["hashtag1","hashtag2"]},{"1366543579":["hashtag1","hashtag2"]},{"1366543546":["hashtag1","hashtag2"]},{"1366543561":["hashtag1","hashtag2"]},{"1366543590":["hashtag1","hashtag2"]},{"1366543530":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366543583, 1366543579, 1366543546, 1366543561, 1366543590, 1366543530)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 82.25801920890808 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 13:37:32.695176
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/13/37/image_16062025_13_37_35_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/13/37/image_16062025_13_37_25_10620.jpg', 2), ('/home/nano/Desktop/images/16062025/13/37/image_16062025_13_37_15_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/13/36/image_16062025_13_37_05_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/13/36/image_16062025_13_36_55_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/13/36/image_16062025_13_36_45_9616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/13/37/image_16062025_13_37_35_9617.jpg', '/home/nano/Desktop/images/16062025/13/37/image_16062025_13_37_25_10620.jpg', '/home/nano/Desktop/images/16062025/13/37/image_16062025_13_37_15_9633.jpg', '/home/nano/Desktop/images/16062025/13/36/image_16062025_13_37_05_9627.jpg', '/home/nano/Desktop/images/16062025/13/36/image_16062025_13_36_55_10621.jpg', '/home/nano/Desktop/images/16062025/13/36/image_16062025_13_36_45_9616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/13/37/image_16062025_13_37_35_9617.jpg
/home/nano/Desktop/images/16062025/13/37/image_16062025_13_37_25_10620.jpg
/home/nano/Desktop/images/16062025/13/37/image_16062025_13_37_15_9633.jpg
/home/nano/Desktop/images/16062025/13/36/image_16062025_13_37_05_9627.jpg
/home/nano/Desktop/images/16062025/13/36/image_16062025_13_36_55_10621.jpg
/home/nano/Desktop/images/16062025/13/36/image_16062025_13_36_45_9616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366543637","1366543604","1366543627","1366543615","1366543609","1366543620"],"photo_ids_order":["1366543604","1366543609","1366543615","1366543620","1366543627","1366543637"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/417cbebb5b8869019f903b8c845e031e.jpg","text":"TemporaryFile(/tmp/multipartBody6294764619913255831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073915599,"filename":"image_16062025_13_36_45_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3a6e5ae201a6b0114374cf8df955267b.jpg","text":"TemporaryFile(/tmp/multipartBody3685708437627520787asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073915599,"filename":"image_16062025_13_37_35_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/97fa1e8449c4687dfb8a88961f5e4648.jpg","text":"TemporaryFile(/tmp/multipartBody2230541948652353272asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073915599,"filename":"image_16062025_13_36_55_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/51d805577278c2c2e6ace5ba08c0977a.jpg","text":"TemporaryFile(/tmp/multipartBody6489434660782192786asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073915599,"filename":"image_16062025_13_37_15_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/80d6e64a684f958a888fb59a751f7230.jpg","text":"TemporaryFile(/tmp/multipartBody8273025789357552768asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073915599,"filename":"image_16062025_13_37_25_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/72928b5b64767f3a4baaf797f92c19f9.jpg","text":"TemporaryFile(/tmp/multipartBody6343366281532974368asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750073915599,"filename":"image_16062025_13_37_05_9627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366543615","file1":"1366543609","file0":"1366543604","file4":"1366543627","file5":"1366543637","file3":"1366543620"},"map_files_photo_id_array":[{"photo_id":"1366543637","filename":"file5"},{"photo_id":"1366543615","filename":"file2"},{"photo_id":"1366543627","filename":"file4"},{"photo_id":"1366543609","filename":"file1"},{"photo_id":"1366543604","filename":"file0"},{"photo_id":"1366543620","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366543637":["hashtag1","hashtag2"]},{"1366543604":["hashtag1","hashtag2"]},{"1366543627":["hashtag1","hashtag2"]},{"1366543615":["hashtag1","hashtag2"]},{"1366543609":["hashtag1","hashtag2"]},{"1366543620":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366543637, 1366543604, 1366543627, 1366543615, 1366543609, 1366543620)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 84.23281025886536 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 13:39:02.660414
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/13/38/image_16062025_13_38_45_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/13/38/image_16062025_13_38_35_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/13/38/image_16062025_13_38_25_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/13/38/image_16062025_13_38_15_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/13/37/image_16062025_13_38_05_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/13/37/image_16062025_13_37_44_9618.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/13/38/image_16062025_13_38_45_10622.jpg', '/home/nano/Desktop/images/16062025/13/38/image_16062025_13_38_35_9620.jpg', '/home/nano/Desktop/images/16062025/13/38/image_16062025_13_38_25_9618.jpg', '/home/nano/Desktop/images/16062025/13/38/image_16062025_13_38_15_10636.jpg', '/home/nano/Desktop/images/16062025/13/37/image_16062025_13_38_05_9622.jpg', '/home/nano/Desktop/images/16062025/13/37/image_16062025_13_37_44_9618.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/13/38/image_16062025_13_38_45_10622.jpg
/home/nano/Desktop/images/16062025/13/38/image_16062025_13_38_35_9620.jpg
/home/nano/Desktop/images/16062025/13/38/image_16062025_13_38_25_9618.jpg
/home/nano/Desktop/images/16062025/13/38/image_16062025_13_38_15_10636.jpg
/home/nano/Desktop/images/16062025/13/37/image_16062025_13_38_05_9622.jpg
/home/nano/Desktop/images/16062025/13/37/image_16062025_13_37_44_9618.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366543701","1366543691","1366543676","1366543660","1366543683","1366543653"],"photo_ids_order":["1366543653","1366543660","1366543676","1366543683","1366543691","1366543701"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a8d8d1d3987b10ac87d77f5f13b85db0.jpg","text":"TemporaryFile(/tmp/multipartBody8892423454050144564asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074011402,"filename":"image_16062025_13_37_44_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6738bdbdc34900cba05d320437fb950c.jpg","text":"TemporaryFile(/tmp/multipartBody864867573211922110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074011402,"filename":"image_16062025_13_38_05_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c88ec5b65bc423223316ae537d13b804.jpg","text":"TemporaryFile(/tmp/multipartBody5283012568237663544asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074011402,"filename":"image_16062025_13_38_25_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/85b70e3cf42e2168b8bc169643a5a34a.jpg","text":"TemporaryFile(/tmp/multipartBody5664309054791680906asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074011402,"filename":"image_16062025_13_38_35_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/41540f67d03dc12dee4fe8055ed89540.jpg","text":"TemporaryFile(/tmp/multipartBody5959408717560953170asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074011402,"filename":"image_16062025_13_38_15_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/11661996bddb02aa4ec13df686f13f38.jpg","text":"TemporaryFile(/tmp/multipartBody6355770787963595110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074011402,"filename":"image_16062025_13_38_45_10622.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366543676","file1":"1366543660","file0":"1366543653","file4":"1366543691","file5":"1366543701","file3":"1366543683"},"map_files_photo_id_array":[{"photo_id":"1366543701","filename":"file5"},{"photo_id":"1366543676","filename":"file2"},{"photo_id":"1366543691","filename":"file4"},{"photo_id":"1366543660","filename":"file1"},{"photo_id":"1366543653","filename":"file0"},{"photo_id":"1366543683","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366543701":["hashtag1","hashtag2"]},{"1366543691":["hashtag1","hashtag2"]},{"1366543676":["hashtag1","hashtag2"]},{"1366543660":["hashtag1","hashtag2"]},{"1366543683":["hashtag1","hashtag2"]},{"1366543653":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366543701, 1366543691, 1366543676, 1366543660, 1366543683, 1366543653)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 126.5610671043396 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 13:41:17.093866
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/13/41/image_16062025_13_41_35_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/13/41/image_16062025_13_41_25_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/13/41/image_16062025_13_41_15_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/13/40/image_16062025_13_41_05_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/13/40/image_16062025_13_40_55_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/13/40/image_16062025_13_40_45_9617.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/13/41/image_16062025_13_41_35_9610.jpg', '/home/nano/Desktop/images/16062025/13/41/image_16062025_13_41_25_10618.jpg', '/home/nano/Desktop/images/16062025/13/41/image_16062025_13_41_15_9616.jpg', '/home/nano/Desktop/images/16062025/13/40/image_16062025_13_41_05_9627.jpg', '/home/nano/Desktop/images/16062025/13/40/image_16062025_13_40_55_10627.jpg', '/home/nano/Desktop/images/16062025/13/40/image_16062025_13_40_45_9617.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/13/41/image_16062025_13_41_35_9610.jpg
/home/nano/Desktop/images/16062025/13/41/image_16062025_13_41_25_10618.jpg
/home/nano/Desktop/images/16062025/13/41/image_16062025_13_41_15_9616.jpg
/home/nano/Desktop/images/16062025/13/40/image_16062025_13_41_05_9627.jpg
/home/nano/Desktop/images/16062025/13/40/image_16062025_13_40_55_10627.jpg
/home/nano/Desktop/images/16062025/13/40/image_16062025_13_40_45_9617.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366543733","1366543736","1366543730","1366543727","1366543723","1366543717"],"photo_ids_order":["1366543717","1366543723","1366543727","1366543730","1366543733","1366543736"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e42f97167734292256ffea308b44db34.jpg","text":"TemporaryFile(/tmp/multipartBody1705313910443294546asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074140441,"filename":"image_16062025_13_40_55_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d53ef3a457178f9b122fb5256fa7d5ec.jpg","text":"TemporaryFile(/tmp/multipartBody4398301611601783008asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074140441,"filename":"image_16062025_13_40_45_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fd0eb81c70084300698337c195cb1b7e.jpg","text":"TemporaryFile(/tmp/multipartBody5014196820038033262asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074140441,"filename":"image_16062025_13_41_05_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/24da8b38a89d75f5b2f78e2980f0712c.jpg","text":"TemporaryFile(/tmp/multipartBody1975756392541773836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074140441,"filename":"image_16062025_13_41_15_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6b0993c5ee0de72162f1b154a33a1871.jpg","text":"TemporaryFile(/tmp/multipartBody7103291390583703397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074140441,"filename":"image_16062025_13_41_25_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/416ba5ec37e5b89889911e2d882abc2c.jpg","text":"TemporaryFile(/tmp/multipartBody4124817643155437041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074140441,"filename":"image_16062025_13_41_35_9610.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366543727","file1":"1366543723","file0":"1366543717","file4":"1366543733","file5":"1366543736","file3":"1366543730"},"map_files_photo_id_array":[{"photo_id":"1366543736","filename":"file5"},{"photo_id":"1366543727","filename":"file2"},{"photo_id":"1366543733","filename":"file4"},{"photo_id":"1366543723","filename":"file1"},{"photo_id":"1366543717","filename":"file0"},{"photo_id":"1366543730","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366543733":["hashtag1","hashtag2"]},{"1366543736":["hashtag1","hashtag2"]},{"1366543730":["hashtag1","hashtag2"]},{"1366543727":["hashtag1","hashtag2"]},{"1366543723":["hashtag1","hashtag2"]},{"1366543717":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366543733, 1366543736, 1366543730, 1366543727, 1366543723, 1366543717)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 62.38558554649353 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 13:42:32.179075
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/13/42/image_16062025_13_42_45_10620.jpg', 2), ('/home/nano/Desktop/images/16062025/13/42/image_16062025_13_42_34_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/13/42/image_16062025_13_42_25_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/13/42/image_16062025_13_42_15_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/13/41/image_16062025_13_42_05_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/13/41/image_16062025_13_41_45_10628.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/13/42/image_16062025_13_42_45_10620.jpg', '/home/nano/Desktop/images/16062025/13/42/image_16062025_13_42_34_9608.jpg', '/home/nano/Desktop/images/16062025/13/42/image_16062025_13_42_25_9629.jpg', '/home/nano/Desktop/images/16062025/13/42/image_16062025_13_42_15_10636.jpg', '/home/nano/Desktop/images/16062025/13/41/image_16062025_13_42_05_9621.jpg', '/home/nano/Desktop/images/16062025/13/41/image_16062025_13_41_45_10628.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/13/42/image_16062025_13_42_45_10620.jpg
/home/nano/Desktop/images/16062025/13/42/image_16062025_13_42_34_9608.jpg
/home/nano/Desktop/images/16062025/13/42/image_16062025_13_42_25_9629.jpg
/home/nano/Desktop/images/16062025/13/42/image_16062025_13_42_15_10636.jpg
/home/nano/Desktop/images/16062025/13/41/image_16062025_13_42_05_9621.jpg
/home/nano/Desktop/images/16062025/13/41/image_16062025_13_41_45_10628.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366543780","1366543762","1366543768","1366543773","1366543776","1366543752"],"photo_ids_order":["1366543752","1366543762","1366543768","1366543773","1366543776","1366543780"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d74e5e3ec85f28c0bfa9f1b2c7e40c04.jpg","text":"TemporaryFile(/tmp/multipartBody2528278761382938352asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074215561,"filename":"image_16062025_13_41_45_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2ac8dd3a428cd19f587ee5baf140e03b.jpg","text":"TemporaryFile(/tmp/multipartBody6604372394882693050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074215561,"filename":"image_16062025_13_42_34_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/56e85fbcbf89a05d0f79b6157315054a.jpg","text":"TemporaryFile(/tmp/multipartBody6864304262067563165asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074215561,"filename":"image_16062025_13_42_25_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/de25258fa89d43c5727e670e06f76767.jpg","text":"TemporaryFile(/tmp/multipartBody2146824512735224097asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074215561,"filename":"image_16062025_13_42_15_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3ead127305a552b9ba2c313dabef15e1.jpg","text":"TemporaryFile(/tmp/multipartBody6904776621697284150asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074215561,"filename":"image_16062025_13_42_05_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8b0913c926decb91e8caaf94a5254bb6.jpg","text":"TemporaryFile(/tmp/multipartBody1602190318965171511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074215561,"filename":"image_16062025_13_42_45_10620.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366543768","file1":"1366543762","file0":"1366543752","file4":"1366543776","file5":"1366543780","file3":"1366543773"},"map_files_photo_id_array":[{"photo_id":"1366543780","filename":"file5"},{"photo_id":"1366543768","filename":"file2"},{"photo_id":"1366543776","filename":"file4"},{"photo_id":"1366543762","filename":"file1"},{"photo_id":"1366543752","filename":"file0"},{"photo_id":"1366543773","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366543780":["hashtag1","hashtag2"]},{"1366543762":["hashtag1","hashtag2"]},{"1366543768":["hashtag1","hashtag2"]},{"1366543773":["hashtag1","hashtag2"]},{"1366543776":["hashtag1","hashtag2"]},{"1366543752":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366543780, 1366543762, 1366543768, 1366543773, 1366543776, 1366543752)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 56.104634284973145 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 13:43:32.216371
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/13/43/image_16062025_13_43_45_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/13/43/image_16062025_13_43_25_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/13/43/image_16062025_13_43_15_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/13/42/image_16062025_13_43_05_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/13/42/image_16062025_13_42_55_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/13/40/image_16062025_13_40_35_10623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/13/43/image_16062025_13_43_45_9610.jpg', '/home/nano/Desktop/images/16062025/13/43/image_16062025_13_43_25_9616.jpg', '/home/nano/Desktop/images/16062025/13/43/image_16062025_13_43_15_9615.jpg', '/home/nano/Desktop/images/16062025/13/42/image_16062025_13_43_05_10634.jpg', '/home/nano/Desktop/images/16062025/13/42/image_16062025_13_42_55_9608.jpg', '/home/nano/Desktop/images/16062025/13/40/image_16062025_13_40_35_10623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/13/43/image_16062025_13_43_45_9610.jpg
/home/nano/Desktop/images/16062025/13/43/image_16062025_13_43_25_9616.jpg
/home/nano/Desktop/images/16062025/13/43/image_16062025_13_43_15_9615.jpg
/home/nano/Desktop/images/16062025/13/42/image_16062025_13_43_05_10634.jpg
/home/nano/Desktop/images/16062025/13/42/image_16062025_13_42_55_9608.jpg
/home/nano/Desktop/images/16062025/13/40/image_16062025_13_40_35_10623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366543809","1366543793","1366543826","1366543788","1366543854","1366543797"],"photo_ids_order":["1366543788","1366543793","1366543797","1366543809","1366543826","1366543854"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/580314c64c9a945d3eab10f494272693.jpg","text":"TemporaryFile(/tmp/multipartBody2315591230212331813asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074274494,"filename":"image_16062025_13_43_05_10634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f020b7a5d66fa70512a4511570385d42.jpg","text":"TemporaryFile(/tmp/multipartBody1790172627069542626asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074274494,"filename":"image_16062025_13_43_25_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bc68f387cfc03c53fbf1adbcc846aae1.jpg","text":"TemporaryFile(/tmp/multipartBody6735011353426072272asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074274494,"filename":"image_16062025_13_42_55_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f335d7d8289c127ed4bdf41cd711ed42.jpg","text":"TemporaryFile(/tmp/multipartBody4071751955402539838asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074274494,"filename":"image_16062025_13_43_45_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d43c746c6c35cab50676fe08908fe56e.jpg","text":"TemporaryFile(/tmp/multipartBody1380397469009869247asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074274494,"filename":"image_16062025_13_40_35_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/223e41c283da31c98118b19509172417.jpg","text":"TemporaryFile(/tmp/multipartBody6627501820215503308asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074274494,"filename":"image_16062025_13_43_15_9615.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366543797","file1":"1366543793","file0":"1366543788","file4":"1366543826","file5":"1366543854","file3":"1366543809"},"map_files_photo_id_array":[{"photo_id":"1366543854","filename":"file5"},{"photo_id":"1366543797","filename":"file2"},{"photo_id":"1366543826","filename":"file4"},{"photo_id":"1366543793","filename":"file1"},{"photo_id":"1366543788","filename":"file0"},{"photo_id":"1366543809","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366543809":["hashtag1","hashtag2"]},{"1366543793":["hashtag1","hashtag2"]},{"1366543826":["hashtag1","hashtag2"]},{"1366543788":["hashtag1","hashtag2"]},{"1366543854":["hashtag1","hashtag2"]},{"1366543797":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366543809, 1366543793, 1366543826, 1366543788, 1366543854, 1366543797)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 62.936623334884644 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 13:44:47.383706
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/13/44/image_16062025_13_44_35_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/13/44/image_16062025_13_44_25_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/13/43/image_16062025_13_44_05_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/13/43/image_16062025_13_43_54_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/13/40/image_16062025_13_40_24_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/13/40/image_16062025_13_40_15_9619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/13/44/image_16062025_13_44_35_9637.jpg', '/home/nano/Desktop/images/16062025/13/44/image_16062025_13_44_25_10639.jpg', '/home/nano/Desktop/images/16062025/13/43/image_16062025_13_44_05_10621.jpg', '/home/nano/Desktop/images/16062025/13/43/image_16062025_13_43_54_9611.jpg', '/home/nano/Desktop/images/16062025/13/40/image_16062025_13_40_24_9611.jpg', '/home/nano/Desktop/images/16062025/13/40/image_16062025_13_40_15_9619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/13/44/image_16062025_13_44_35_9637.jpg
/home/nano/Desktop/images/16062025/13/44/image_16062025_13_44_25_10639.jpg
/home/nano/Desktop/images/16062025/13/43/image_16062025_13_44_05_10621.jpg
/home/nano/Desktop/images/16062025/13/43/image_16062025_13_43_54_9611.jpg
/home/nano/Desktop/images/16062025/13/40/image_16062025_13_40_24_9611.jpg
/home/nano/Desktop/images/16062025/13/40/image_16062025_13_40_15_9619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366543961","1366543987","1366543972","1366543957","1366544002","1366543920"],"photo_ids_order":["1366543920","1366543957","1366543961","1366543972","1366543987","1366544002"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f50c75b9afe81e75b74750f6b7b4d4da.jpg","text":"TemporaryFile(/tmp/multipartBody7079305642330691768asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074351108,"filename":"image_16062025_13_44_05_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3f7d836355400148b614b3227b9f596c.jpg","text":"TemporaryFile(/tmp/multipartBody2544476623262906934asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074351108,"filename":"image_16062025_13_40_24_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0743f0a04f4e8701c94e5015b9034424.jpg","text":"TemporaryFile(/tmp/multipartBody576293385401829249asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074351108,"filename":"image_16062025_13_43_54_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/78f5e746596b29ea478b36a94550225d.jpg","text":"TemporaryFile(/tmp/multipartBody1032470525558121389asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074351108,"filename":"image_16062025_13_44_25_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5983bd6c595400185d0979983f8ce1df.jpg","text":"TemporaryFile(/tmp/multipartBody1981970887185655639asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074351108,"filename":"image_16062025_13_40_15_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/43f3abe56a6c5a0d35aa3f1a6ad415dd.jpg","text":"TemporaryFile(/tmp/multipartBody187303414283601606asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750074351108,"filename":"image_16062025_13_44_35_9637.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366543961","file1":"1366543957","file0":"1366543920","file4":"1366543987","file5":"1366544002","file3":"1366543972"},"map_files_photo_id_array":[{"photo_id":"1366544002","filename":"file5"},{"photo_id":"1366543961","filename":"file2"},{"photo_id":"1366543987","filename":"file4"},{"photo_id":"1366543957","filename":"file1"},{"photo_id":"1366543920","filename":"file0"},{"photo_id":"1366543972","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366543961":["hashtag1","hashtag2"]},{"1366543987":["hashtag1","hashtag2"]},{"1366543972":["hashtag1","hashtag2"]},{"1366543957":["hashtag1","hashtag2"]},{"1366544002":["hashtag1","hashtag2"]},{"1366543920":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366543961, 1366543987, 1366543972, 1366543957, 1366544002, 1366543920)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 57.07357454299927 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 13:45:47.507928
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/13/45/image_16062025_13_45_45_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/13/45/image_16062025_13_45_35_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/13/45/image_16062025_13_45_25_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/13/45/image_16062025_13_45_14_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/13/44/image_16062025_13_44_45_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/13/39/image_16062025_13_40_05_10629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/13/45/image_16062025_13_45_45_10621.jpg', '/home/nano/Desktop/images/16062025/13/45/image_16062025_13_45_35_9609.jpg', '/home/nano/Desktop/images/16062025/13/45/image_16062025_13_45_25_10636.jpg', '/home/nano/Desktop/images/16062025/13/45/image_16062025_13_45_14_9643.jpg', '/home/nano/Desktop/images/16062025/13/44/image_16062025_13_44_45_9629.jpg', '/home/nano/Desktop/images/16062025/13/39/image_16062025_13_40_05_10629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/13/45/image_16062025_13_45_45_10621.jpg
/home/nano/Desktop/images/16062025/13/45/image_16062025_13_45_35_9609.jpg
/home/nano/Desktop/images/16062025/13/45/image_16062025_13_45_25_10636.jpg
/home/nano/Desktop/images/16062025/13/45/image_16062025_13_45_14_9643.jpg
/home/nano/Desktop/images/16062025/13/44/image_16062025_13_44_45_9629.jpg
/home/nano/Desktop/images/16062025/13/39/image_16062025_13_40_05_10629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 13:58:02.643286
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/13/57/image_16062025_13_57_45_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/13/57/image_16062025_13_57_35_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/13/57/image_16062025_13_57_25_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/13/57/image_16062025_13_57_15_10664.jpg', 2), ('/home/nano/Desktop/images/16062025/13/56/image_16062025_13_57_05_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/13/56/image_16062025_13_56_55_10637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/13/57/image_16062025_13_57_45_10629.jpg', '/home/nano/Desktop/images/16062025/13/57/image_16062025_13_57_35_9632.jpg', '/home/nano/Desktop/images/16062025/13/57/image_16062025_13_57_25_9623.jpg', '/home/nano/Desktop/images/16062025/13/57/image_16062025_13_57_15_10664.jpg', '/home/nano/Desktop/images/16062025/13/56/image_16062025_13_57_05_9625.jpg', '/home/nano/Desktop/images/16062025/13/56/image_16062025_13_56_55_10637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/13/57/image_16062025_13_57_45_10629.jpg
/home/nano/Desktop/images/16062025/13/57/image_16062025_13_57_35_9632.jpg
/home/nano/Desktop/images/16062025/13/57/image_16062025_13_57_25_9623.jpg
/home/nano/Desktop/images/16062025/13/57/image_16062025_13_57_15_10664.jpg
/home/nano/Desktop/images/16062025/13/56/image_16062025_13_57_05_9625.jpg
/home/nano/Desktop/images/16062025/13/56/image_16062025_13_56_55_10637.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366545127","1366545096","1366545120","1366545102","1366545116","1366545110"],"photo_ids_order":["1366545096","1366545102","1366545110","1366545116","1366545120","1366545127"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/187d8151447677ee6669633825079db0.jpg","text":"TemporaryFile(/tmp/multipartBody8672063093352945630asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075145438,"filename":"image_16062025_13_56_55_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c34b19fa996cb0914b1486c7d1f87fd2.jpg","text":"TemporaryFile(/tmp/multipartBody1365740000888909862asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075145438,"filename":"image_16062025_13_57_45_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2088e41f3874f42d7b53de02a0823b3a.jpg","text":"TemporaryFile(/tmp/multipartBody4706237461738391356asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075145438,"filename":"image_16062025_13_57_05_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/52aec3295f9d0511b85f3355ac3cbaac.jpg","text":"TemporaryFile(/tmp/multipartBody2573489984161156294asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075145438,"filename":"image_16062025_13_57_35_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/090821bcc2bd83f88d294892f815b313.jpg","text":"TemporaryFile(/tmp/multipartBody1350032913338461318asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075145438,"filename":"image_16062025_13_57_15_10664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9296a93736affd28c8ae63b35ad42bf6.jpg","text":"TemporaryFile(/tmp/multipartBody6344970826054211594asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075145438,"filename":"image_16062025_13_57_25_9623.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366545110","file1":"1366545102","file0":"1366545096","file4":"1366545120","file5":"1366545127","file3":"1366545116"},"map_files_photo_id_array":[{"photo_id":"1366545127","filename":"file5"},{"photo_id":"1366545110","filename":"file2"},{"photo_id":"1366545120","filename":"file4"},{"photo_id":"1366545102","filename":"file1"},{"photo_id":"1366545096","filename":"file0"},{"photo_id":"1366545116","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366545127":["hashtag1","hashtag2"]},{"1366545096":["hashtag1","hashtag2"]},{"1366545120":["hashtag1","hashtag2"]},{"1366545102":["hashtag1","hashtag2"]},{"1366545116":["hashtag1","hashtag2"]},{"1366545110":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366545127, 1366545096, 1366545120, 1366545102, 1366545116, 1366545110)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 102.97700476646423 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 13:59:47.571163
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/13/59/image_16062025_13_59_45_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/13/59/image_16062025_13_59_35_10682.jpg', 2), ('/home/nano/Desktop/images/16062025/13/59/image_16062025_13_59_25_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/13/59/image_16062025_13_59_15_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/13/58/image_16062025_13_59_05_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/13/58/image_16062025_13_58_55_9629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/13/59/image_16062025_13_59_45_9667.jpg', '/home/nano/Desktop/images/16062025/13/59/image_16062025_13_59_35_10682.jpg', '/home/nano/Desktop/images/16062025/13/59/image_16062025_13_59_25_9632.jpg', '/home/nano/Desktop/images/16062025/13/59/image_16062025_13_59_15_9622.jpg', '/home/nano/Desktop/images/16062025/13/58/image_16062025_13_59_05_10649.jpg', '/home/nano/Desktop/images/16062025/13/58/image_16062025_13_58_55_9629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/13/59/image_16062025_13_59_45_9667.jpg
/home/nano/Desktop/images/16062025/13/59/image_16062025_13_59_35_10682.jpg
/home/nano/Desktop/images/16062025/13/59/image_16062025_13_59_25_9632.jpg
/home/nano/Desktop/images/16062025/13/59/image_16062025_13_59_15_9622.jpg
/home/nano/Desktop/images/16062025/13/58/image_16062025_13_59_05_10649.jpg
/home/nano/Desktop/images/16062025/13/58/image_16062025_13_58_55_9629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366545190","1366545151","1366545165","1366545191","1366545185","1366545176"],"photo_ids_order":["1366545151","1366545165","1366545176","1366545185","1366545190","1366545191"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3a325e6afad381ea900159ed0ea732bf.jpg","text":"TemporaryFile(/tmp/multipartBody3202503595123529574asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075253545,"filename":"image_16062025_13_59_05_10649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/92392c40bbe6fa3686043e5056f47f17.jpg","text":"TemporaryFile(/tmp/multipartBody4773342370556951895asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075253545,"filename":"image_16062025_13_59_45_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f15ab962251471aa971910733ba15541.jpg","text":"TemporaryFile(/tmp/multipartBody7856671774287875909asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075253545,"filename":"image_16062025_13_59_35_10682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2fbb322b5631dde18bb3f4c56bb2aa29.jpg","text":"TemporaryFile(/tmp/multipartBody3053638477950524640asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075253545,"filename":"image_16062025_13_58_55_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b93e3bfc2a2b4c18ab43ec1c3ac34b38.jpg","text":"TemporaryFile(/tmp/multipartBody6498337495252562799asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075253545,"filename":"image_16062025_13_59_15_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/95e7ee6fe493e78859d0307b50cc31ad.jpg","text":"TemporaryFile(/tmp/multipartBody3195520528727437730asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075253545,"filename":"image_16062025_13_59_25_9632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366545176","file1":"1366545165","file0":"1366545151","file4":"1366545190","file5":"1366545191","file3":"1366545185"},"map_files_photo_id_array":[{"photo_id":"1366545191","filename":"file5"},{"photo_id":"1366545176","filename":"file2"},{"photo_id":"1366545190","filename":"file4"},{"photo_id":"1366545165","filename":"file1"},{"photo_id":"1366545151","filename":"file0"},{"photo_id":"1366545185","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366545190":["hashtag1","hashtag2"]},{"1366545151":["hashtag1","hashtag2"]},{"1366545165":["hashtag1","hashtag2"]},{"1366545191":["hashtag1","hashtag2"]},{"1366545185":["hashtag1","hashtag2"]},{"1366545176":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366545190, 1366545151, 1366545165, 1366545191, 1366545185, 1366545176)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 119.26041173934937 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 14:01:47.726554
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/14/01/image_16062025_14_01_45_10694.jpg', 2), ('/home/nano/Desktop/images/16062025/14/01/image_16062025_14_01_34_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/14/01/image_16062025_14_01_25_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/14/01/image_16062025_14_01_15_10704.jpg', 2), ('/home/nano/Desktop/images/16062025/14/00/image_16062025_14_01_04_9676.jpg', 2), ('/home/nano/Desktop/images/16062025/14/00/image_16062025_14_00_45_9673.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/14/01/image_16062025_14_01_45_10694.jpg', '/home/nano/Desktop/images/16062025/14/01/image_16062025_14_01_34_9668.jpg', '/home/nano/Desktop/images/16062025/14/01/image_16062025_14_01_25_9669.jpg', '/home/nano/Desktop/images/16062025/14/01/image_16062025_14_01_15_10704.jpg', '/home/nano/Desktop/images/16062025/14/00/image_16062025_14_01_04_9676.jpg', '/home/nano/Desktop/images/16062025/14/00/image_16062025_14_00_45_9673.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/14/01/image_16062025_14_01_45_10694.jpg
/home/nano/Desktop/images/16062025/14/01/image_16062025_14_01_34_9668.jpg
/home/nano/Desktop/images/16062025/14/01/image_16062025_14_01_25_9669.jpg
/home/nano/Desktop/images/16062025/14/01/image_16062025_14_01_15_10704.jpg
/home/nano/Desktop/images/16062025/14/00/image_16062025_14_01_04_9676.jpg
/home/nano/Desktop/images/16062025/14/00/image_16062025_14_00_45_9673.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366545212","1366545561","1366545351","1366545207","1366545431","1366545500"],"photo_ids_order":["1366545207","1366545212","1366545351","1366545431","1366545500","1366545561"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/359415441e876e7f96ebd78d1a6f43cc.jpg","text":"TemporaryFile(/tmp/multipartBody5969567356536702701asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075371446,"filename":"image_16062025_14_01_34_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/392f267fc91dae9c89838ceef898d114.jpg","text":"TemporaryFile(/tmp/multipartBody3598117398493973249asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075371446,"filename":"image_16062025_14_00_45_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fb2b00f55006624abc6d304cdf6bac5a.jpg","text":"TemporaryFile(/tmp/multipartBody6379946478453451437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075371446,"filename":"image_16062025_14_01_25_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6f323b5e9d3d8ebc3aaa95918e17be17.jpg","text":"TemporaryFile(/tmp/multipartBody5532869129933899924asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075371446,"filename":"image_16062025_14_01_45_10694.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8ad711a938a8b0822a1fa9d200fb7a80.jpg","text":"TemporaryFile(/tmp/multipartBody1040947516282111970asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075371446,"filename":"image_16062025_14_01_15_10704.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/68f8c73d01d57afba755197ed99a66b8.jpg","text":"TemporaryFile(/tmp/multipartBody1110874288032502097asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075371446,"filename":"image_16062025_14_01_04_9676.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366545351","file1":"1366545212","file0":"1366545207","file4":"1366545500","file5":"1366545561","file3":"1366545431"},"map_files_photo_id_array":[{"photo_id":"1366545561","filename":"file5"},{"photo_id":"1366545351","filename":"file2"},{"photo_id":"1366545500","filename":"file4"},{"photo_id":"1366545212","filename":"file1"},{"photo_id":"1366545207","filename":"file0"},{"photo_id":"1366545431","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366545212":["hashtag1","hashtag2"]},{"1366545561":["hashtag1","hashtag2"]},{"1366545351":["hashtag1","hashtag2"]},{"1366545207":["hashtag1","hashtag2"]},{"1366545431":["hashtag1","hashtag2"]},{"1366545500":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366545212, 1366545561, 1366545351, 1366545207, 1366545431, 1366545500)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 87.40600991249084 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 14:03:16.972637
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/14/03/image_16062025_14_03_45_10678.jpg', 2), ('/home/nano/Desktop/images/16062025/14/03/image_16062025_14_03_35_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/14/03/image_16062025_14_03_25_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/14/03/image_16062025_14_03_15_10685.jpg', 2), ('/home/nano/Desktop/images/16062025/14/02/image_16062025_14_03_05_9676.jpg', 2), ('/home/nano/Desktop/images/16062025/14/02/image_16062025_14_02_55_9672.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/14/03/image_16062025_14_03_45_10678.jpg', '/home/nano/Desktop/images/16062025/14/03/image_16062025_14_03_35_9668.jpg', '/home/nano/Desktop/images/16062025/14/03/image_16062025_14_03_25_9673.jpg', '/home/nano/Desktop/images/16062025/14/03/image_16062025_14_03_15_10685.jpg', '/home/nano/Desktop/images/16062025/14/02/image_16062025_14_03_05_9676.jpg', '/home/nano/Desktop/images/16062025/14/02/image_16062025_14_02_55_9672.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/14/03/image_16062025_14_03_45_10678.jpg
/home/nano/Desktop/images/16062025/14/03/image_16062025_14_03_35_9668.jpg
/home/nano/Desktop/images/16062025/14/03/image_16062025_14_03_25_9673.jpg
/home/nano/Desktop/images/16062025/14/03/image_16062025_14_03_15_10685.jpg
/home/nano/Desktop/images/16062025/14/02/image_16062025_14_03_05_9676.jpg
/home/nano/Desktop/images/16062025/14/02/image_16062025_14_02_55_9672.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366546126","1366545925","1366545721","1366546062","1366545994","1366545806"],"photo_ids_order":["1366545721","1366545806","1366545925","1366545994","1366546062","1366546126"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8b171899b1e9c77de66993dc9d1a4c37.jpg","text":"TemporaryFile(/tmp/multipartBody137011489871619326asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075460324,"filename":"image_16062025_14_02_55_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c96cd3e8e8cec14771fab179d2f8134b.jpg","text":"TemporaryFile(/tmp/multipartBody321560903918388325asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075460324,"filename":"image_16062025_14_03_25_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cc98aa9eda8c02fc57b7a1a765812e3e.jpg","text":"TemporaryFile(/tmp/multipartBody5886380540908013661asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075460324,"filename":"image_16062025_14_03_45_10678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8458a8ce0763feaadddfd77334345659.jpg","text":"TemporaryFile(/tmp/multipartBody1242074528738353162asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075460324,"filename":"image_16062025_14_03_05_9676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4a3b9c975689e693e9d8364d03bdde2f.jpg","text":"TemporaryFile(/tmp/multipartBody2436557074370065688asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075460324,"filename":"image_16062025_14_03_15_10685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/04cee2dbbbd826a9eb88ee89f7b75231.jpg","text":"TemporaryFile(/tmp/multipartBody1331997602185676034asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075460324,"filename":"image_16062025_14_03_35_9668.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366545925","file1":"1366545806","file0":"1366545721","file4":"1366546062","file5":"1366546126","file3":"1366545994"},"map_files_photo_id_array":[{"photo_id":"1366546126","filename":"file5"},{"photo_id":"1366545925","filename":"file2"},{"photo_id":"1366546062","filename":"file4"},{"photo_id":"1366545806","filename":"file1"},{"photo_id":"1366545721","filename":"file0"},{"photo_id":"1366545994","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366546126":["hashtag1","hashtag2"]},{"1366545925":["hashtag1","hashtag2"]},{"1366545721":["hashtag1","hashtag2"]},{"1366546062":["hashtag1","hashtag2"]},{"1366545994":["hashtag1","hashtag2"]},{"1366545806":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366546126, 1366545925, 1366545721, 1366546062, 1366545994, 1366545806)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 112.50507354736328 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 14:05:17.254946
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/14/05/image_16062025_14_05_45_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/14/05/image_16062025_14_05_35_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/14/05/image_16062025_14_05_25_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/14/05/image_16062025_14_05_14_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/14/04/image_16062025_14_05_05_9693.jpg', 2), ('/home/nano/Desktop/images/16062025/14/04/image_16062025_14_04_45_10682.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/14/05/image_16062025_14_05_45_10636.jpg', '/home/nano/Desktop/images/16062025/14/05/image_16062025_14_05_35_9645.jpg', '/home/nano/Desktop/images/16062025/14/05/image_16062025_14_05_25_10636.jpg', '/home/nano/Desktop/images/16062025/14/05/image_16062025_14_05_14_9651.jpg', '/home/nano/Desktop/images/16062025/14/04/image_16062025_14_05_05_9693.jpg', '/home/nano/Desktop/images/16062025/14/04/image_16062025_14_04_45_10682.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/14/05/image_16062025_14_05_45_10636.jpg
/home/nano/Desktop/images/16062025/14/05/image_16062025_14_05_35_9645.jpg
/home/nano/Desktop/images/16062025/14/05/image_16062025_14_05_25_10636.jpg
/home/nano/Desktop/images/16062025/14/05/image_16062025_14_05_14_9651.jpg
/home/nano/Desktop/images/16062025/14/04/image_16062025_14_05_05_9693.jpg
/home/nano/Desktop/images/16062025/14/04/image_16062025_14_04_45_10682.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366546309","1366546299","1366546284","1366546293","1366546302","1366546277"],"photo_ids_order":["1366546277","1366546284","1366546293","1366546299","1366546302","1366546309"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/88680a7d47e57bb1ea5ccdb477c3a8a0.jpg","text":"TemporaryFile(/tmp/multipartBody3894253041825491794asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075583979,"filename":"image_16062025_14_04_45_10682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b5a68371f877f503f4631b7f74694884.jpg","text":"TemporaryFile(/tmp/multipartBody6483109647423102181asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075583979,"filename":"image_16062025_14_05_14_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/090a220f0caaef933de1d01bc0c032f9.jpg","text":"TemporaryFile(/tmp/multipartBody440639374235560439asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075583979,"filename":"image_16062025_14_05_35_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/51560310f76e6578dc8c0b65f4b55dfb.jpg","text":"TemporaryFile(/tmp/multipartBody6920627743104078992asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075583979,"filename":"image_16062025_14_05_25_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a4a060c843945cba4715d42be38216e6.jpg","text":"TemporaryFile(/tmp/multipartBody7867394977732658638asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075583979,"filename":"image_16062025_14_05_05_9693.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/15709a0eafa907184356d952160a6ed4.jpg","text":"TemporaryFile(/tmp/multipartBody1288997470563881895asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075583979,"filename":"image_16062025_14_05_45_10636.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366546293","file1":"1366546284","file0":"1366546277","file4":"1366546302","file5":"1366546309","file3":"1366546299"},"map_files_photo_id_array":[{"photo_id":"1366546309","filename":"file5"},{"photo_id":"1366546293","filename":"file2"},{"photo_id":"1366546302","filename":"file4"},{"photo_id":"1366546284","filename":"file1"},{"photo_id":"1366546277","filename":"file0"},{"photo_id":"1366546299","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366546309":["hashtag1","hashtag2"]},{"1366546299":["hashtag1","hashtag2"]},{"1366546284":["hashtag1","hashtag2"]},{"1366546293":["hashtag1","hashtag2"]},{"1366546302":["hashtag1","hashtag2"]},{"1366546277":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366546309, 1366546299, 1366546284, 1366546293, 1366546302, 1366546277)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 90.03783941268921 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 14:07:02.916331
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/14/06/image_16062025_14_06_45_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/14/06/image_16062025_14_06_35_9715.jpg', 2), ('/home/nano/Desktop/images/16062025/14/06/image_16062025_14_06_25_10731.jpg', 2), ('/home/nano/Desktop/images/16062025/14/06/image_16062025_14_06_14_9741.jpg', 2), ('/home/nano/Desktop/images/16062025/14/05/image_16062025_14_06_05_9693.jpg', 2), ('/home/nano/Desktop/images/16062025/14/05/image_16062025_14_05_55_9699.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/14/06/image_16062025_14_06_45_9677.jpg', '/home/nano/Desktop/images/16062025/14/06/image_16062025_14_06_35_9715.jpg', '/home/nano/Desktop/images/16062025/14/06/image_16062025_14_06_25_10731.jpg', '/home/nano/Desktop/images/16062025/14/06/image_16062025_14_06_14_9741.jpg', '/home/nano/Desktop/images/16062025/14/05/image_16062025_14_06_05_9693.jpg', '/home/nano/Desktop/images/16062025/14/05/image_16062025_14_05_55_9699.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/14/06/image_16062025_14_06_45_9677.jpg
/home/nano/Desktop/images/16062025/14/06/image_16062025_14_06_35_9715.jpg
/home/nano/Desktop/images/16062025/14/06/image_16062025_14_06_25_10731.jpg
/home/nano/Desktop/images/16062025/14/06/image_16062025_14_06_14_9741.jpg
/home/nano/Desktop/images/16062025/14/05/image_16062025_14_06_05_9693.jpg
/home/nano/Desktop/images/16062025/14/05/image_16062025_14_05_55_9699.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366546654","1366546596","1366546542","1366546685","1366546789","1366546759"],"photo_ids_order":["1366546542","1366546596","1366546654","1366546685","1366546759","1366546789"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7c684119acf3403f4962090c6aa81614.jpg","text":"TemporaryFile(/tmp/multipartBody95875725052253000asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075691189,"filename":"image_16062025_14_06_25_10731.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9c02a2cb7d011e12cc9b4eec96e266c7.jpg","text":"TemporaryFile(/tmp/multipartBody5913270923616672918asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075691189,"filename":"image_16062025_14_06_35_9715.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/66fc33a9c03a8a6c68c860b29195325f.jpg","text":"TemporaryFile(/tmp/multipartBody7013415000411866192asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075691189,"filename":"image_16062025_14_06_45_9677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0deb95ca25b94ea34a819f24ce4a322c.jpg","text":"TemporaryFile(/tmp/multipartBody5567559073190772116asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075691189,"filename":"image_16062025_14_06_14_9741.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e7c683846bc7809131e516cb0ece5118.jpg","text":"TemporaryFile(/tmp/multipartBody333815560991256155asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075691189,"filename":"image_16062025_14_05_55_9699.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6f34d1d4b3c024fe4ab54b21367ae6aa.jpg","text":"TemporaryFile(/tmp/multipartBody7699839716939861736asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075691189,"filename":"image_16062025_14_06_05_9693.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366546654","file1":"1366546596","file0":"1366546542","file4":"1366546759","file5":"1366546789","file3":"1366546685"},"map_files_photo_id_array":[{"photo_id":"1366546789","filename":"file5"},{"photo_id":"1366546654","filename":"file2"},{"photo_id":"1366546759","filename":"file4"},{"photo_id":"1366546596","filename":"file1"},{"photo_id":"1366546542","filename":"file0"},{"photo_id":"1366546685","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366546654":["hashtag1","hashtag2"]},{"1366546596":["hashtag1","hashtag2"]},{"1366546542":["hashtag1","hashtag2"]},{"1366546685":["hashtag1","hashtag2"]},{"1366546789":["hashtag1","hashtag2"]},{"1366546759":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366546654, 1366546596, 1366546542, 1366546685, 1366546789, 1366546759)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 80.64230418205261 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 14:08:32.530236
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/14/08/image_16062025_14_08_45_10710.jpg', 2), ('/home/nano/Desktop/images/16062025/14/08/image_16062025_14_08_35_9689.jpg', 2), ('/home/nano/Desktop/images/16062025/14/08/image_16062025_14_08_25_9702.jpg', 2), ('/home/nano/Desktop/images/16062025/14/08/image_16062025_14_08_15_10721.jpg', 2), ('/home/nano/Desktop/images/16062025/14/07/image_16062025_14_08_04_9706.jpg', 2), ('/home/nano/Desktop/images/16062025/14/07/image_16062025_14_07_55_9691.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/14/08/image_16062025_14_08_45_10710.jpg', '/home/nano/Desktop/images/16062025/14/08/image_16062025_14_08_35_9689.jpg', '/home/nano/Desktop/images/16062025/14/08/image_16062025_14_08_25_9702.jpg', '/home/nano/Desktop/images/16062025/14/08/image_16062025_14_08_15_10721.jpg', '/home/nano/Desktop/images/16062025/14/07/image_16062025_14_08_04_9706.jpg', '/home/nano/Desktop/images/16062025/14/07/image_16062025_14_07_55_9691.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/14/08/image_16062025_14_08_45_10710.jpg
/home/nano/Desktop/images/16062025/14/08/image_16062025_14_08_35_9689.jpg
/home/nano/Desktop/images/16062025/14/08/image_16062025_14_08_25_9702.jpg
/home/nano/Desktop/images/16062025/14/08/image_16062025_14_08_15_10721.jpg
/home/nano/Desktop/images/16062025/14/07/image_16062025_14_08_04_9706.jpg
/home/nano/Desktop/images/16062025/14/07/image_16062025_14_07_55_9691.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366546828","1366546854","1366546833","1366546839","1366546824","1366546847"],"photo_ids_order":["1366546824","1366546828","1366546833","1366546839","1366546847","1366546854"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a02d6de35e142291b9f5acf73c5482b5.jpg","text":"TemporaryFile(/tmp/multipartBody6163149823194042452asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075776226,"filename":"image_16062025_14_08_35_9689.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/049a61d56ad0090e7868e59a5cafcad4.jpg","text":"TemporaryFile(/tmp/multipartBody4485662709469307819asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075776226,"filename":"image_16062025_14_07_55_9691.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/37ad99c47f9b9cb8be79e63885c9a68f.jpg","text":"TemporaryFile(/tmp/multipartBody7103368226390343348asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075776226,"filename":"image_16062025_14_08_25_9702.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f64a881dc2acc008a1791c9093ae2382.jpg","text":"TemporaryFile(/tmp/multipartBody4255098291732096651asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075776226,"filename":"image_16062025_14_08_15_10721.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f552c7cfcd81d8c7482f2a59b075b20a.jpg","text":"TemporaryFile(/tmp/multipartBody1755880675751617948asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075776226,"filename":"image_16062025_14_08_45_10710.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/99e4cc96782cd39271f8168d7a9c7dce.jpg","text":"TemporaryFile(/tmp/multipartBody5005776712766445723asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075776226,"filename":"image_16062025_14_08_04_9706.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366546833","file1":"1366546828","file0":"1366546824","file4":"1366546847","file5":"1366546854","file3":"1366546839"},"map_files_photo_id_array":[{"photo_id":"1366546854","filename":"file5"},{"photo_id":"1366546833","filename":"file2"},{"photo_id":"1366546847","filename":"file4"},{"photo_id":"1366546828","filename":"file1"},{"photo_id":"1366546824","filename":"file0"},{"photo_id":"1366546839","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366546828":["hashtag1","hashtag2"]},{"1366546854":["hashtag1","hashtag2"]},{"1366546833":["hashtag1","hashtag2"]},{"1366546839":["hashtag1","hashtag2"]},{"1366546824":["hashtag1","hashtag2"]},{"1366546847":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366546828, 1366546854, 1366546833, 1366546839, 1366546824, 1366546847)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 79.74129033088684 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 14:10:03.047676
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/14/09/image_16062025_14_09_45_9790.jpg', 2), ('/home/nano/Desktop/images/16062025/14/09/image_16062025_14_09_35_9716.jpg', 2), ('/home/nano/Desktop/images/16062025/14/09/image_16062025_14_09_25_10705.jpg', 2), ('/home/nano/Desktop/images/16062025/14/09/image_16062025_14_09_15_9782.jpg', 2), ('/home/nano/Desktop/images/16062025/14/08/image_16062025_14_09_05_9721.jpg', 2), ('/home/nano/Desktop/images/16062025/14/08/image_16062025_14_08_55_9817.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/14/09/image_16062025_14_09_45_9790.jpg', '/home/nano/Desktop/images/16062025/14/09/image_16062025_14_09_35_9716.jpg', '/home/nano/Desktop/images/16062025/14/09/image_16062025_14_09_25_10705.jpg', '/home/nano/Desktop/images/16062025/14/09/image_16062025_14_09_15_9782.jpg', '/home/nano/Desktop/images/16062025/14/08/image_16062025_14_09_05_9721.jpg', '/home/nano/Desktop/images/16062025/14/08/image_16062025_14_08_55_9817.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/14/09/image_16062025_14_09_45_9790.jpg
/home/nano/Desktop/images/16062025/14/09/image_16062025_14_09_35_9716.jpg
/home/nano/Desktop/images/16062025/14/09/image_16062025_14_09_25_10705.jpg
/home/nano/Desktop/images/16062025/14/09/image_16062025_14_09_15_9782.jpg
/home/nano/Desktop/images/16062025/14/08/image_16062025_14_09_05_9721.jpg
/home/nano/Desktop/images/16062025/14/08/image_16062025_14_08_55_9817.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366546896","1366546890","1366546905","1366546886","1366546901","1366546879"],"photo_ids_order":["1366546879","1366546886","1366546890","1366546896","1366546901","1366546905"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4d18f20b4f79e055e6fd69313de51a87.jpg","text":"TemporaryFile(/tmp/multipartBody6983557458853921005asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075867987,"filename":"image_16062025_14_09_15_9782.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cca7fb17c7148602d726589389f83b0e.jpg","text":"TemporaryFile(/tmp/multipartBody3113004250512330657asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075867987,"filename":"image_16062025_14_09_25_10705.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/79220f351391dfdbb31d8510777056d5.jpg","text":"TemporaryFile(/tmp/multipartBody3174032948635870572asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075867987,"filename":"image_16062025_14_08_55_9817.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/13a241b5e04536d931870dc16beccd0f.jpg","text":"TemporaryFile(/tmp/multipartBody6551150845101263609asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075867987,"filename":"image_16062025_14_09_35_9716.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a25437cd96adc17c19054b577b48e667.jpg","text":"TemporaryFile(/tmp/multipartBody6168873323370254116asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075867987,"filename":"image_16062025_14_09_05_9721.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d04841d9cb316532b10666603ac915cb.jpg","text":"TemporaryFile(/tmp/multipartBody6479231437411917331asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075867987,"filename":"image_16062025_14_09_45_9790.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366546890","file1":"1366546886","file0":"1366546879","file4":"1366546901","file5":"1366546905","file3":"1366546896"},"map_files_photo_id_array":[{"photo_id":"1366546905","filename":"file5"},{"photo_id":"1366546890","filename":"file2"},{"photo_id":"1366546901","filename":"file4"},{"photo_id":"1366546886","filename":"file1"},{"photo_id":"1366546879","filename":"file0"},{"photo_id":"1366546896","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366546896":["hashtag1","hashtag2"]},{"1366546890":["hashtag1","hashtag2"]},{"1366546905":["hashtag1","hashtag2"]},{"1366546886":["hashtag1","hashtag2"]},{"1366546901":["hashtag1","hashtag2"]},{"1366546879":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366546896, 1366546890, 1366546905, 1366546886, 1366546901, 1366546879)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 82.64974999427795 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 14:11:31.848442
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/14/11/image_16062025_14_11_44_9729.jpg', 2), ('/home/nano/Desktop/images/16062025/14/11/image_16062025_14_11_35_9799.jpg', 2), ('/home/nano/Desktop/images/16062025/14/11/image_16062025_14_11_25_9687.jpg', 2), ('/home/nano/Desktop/images/16062025/14/11/image_16062025_14_11_15_10739.jpg', 2), ('/home/nano/Desktop/images/16062025/14/10/image_16062025_14_11_05_9723.jpg', 2), ('/home/nano/Desktop/images/16062025/14/10/image_16062025_14_10_55_9660.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/14/11/image_16062025_14_11_44_9729.jpg', '/home/nano/Desktop/images/16062025/14/11/image_16062025_14_11_35_9799.jpg', '/home/nano/Desktop/images/16062025/14/11/image_16062025_14_11_25_9687.jpg', '/home/nano/Desktop/images/16062025/14/11/image_16062025_14_11_15_10739.jpg', '/home/nano/Desktop/images/16062025/14/10/image_16062025_14_11_05_9723.jpg', '/home/nano/Desktop/images/16062025/14/10/image_16062025_14_10_55_9660.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/14/11/image_16062025_14_11_44_9729.jpg
/home/nano/Desktop/images/16062025/14/11/image_16062025_14_11_35_9799.jpg
/home/nano/Desktop/images/16062025/14/11/image_16062025_14_11_25_9687.jpg
/home/nano/Desktop/images/16062025/14/11/image_16062025_14_11_15_10739.jpg
/home/nano/Desktop/images/16062025/14/10/image_16062025_14_11_05_9723.jpg
/home/nano/Desktop/images/16062025/14/10/image_16062025_14_10_55_9660.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366546945","1366546927","1366546923","1366546931","1366546940","1366546936"],"photo_ids_order":["1366546923","1366546927","1366546931","1366546936","1366546940","1366546945"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e4cb5cc188d35911b5d4bde88fe04bf4.jpg","text":"TemporaryFile(/tmp/multipartBody5662977301982793683asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075956818,"filename":"image_16062025_14_10_55_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/841edb3a0d8e5df070c34cf90728e6c5.jpg","text":"TemporaryFile(/tmp/multipartBody6012702330726640947asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075956818,"filename":"image_16062025_14_11_35_9799.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b13b9d9c182618fd84f2a3fdd783e3b6.jpg","text":"TemporaryFile(/tmp/multipartBody5169077327587419649asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075956818,"filename":"image_16062025_14_11_44_9729.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1bb1c1448fd43d0bb93c45b652932063.jpg","text":"TemporaryFile(/tmp/multipartBody985054745091197534asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075956818,"filename":"image_16062025_14_11_25_9687.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2f09af149f9675a84ff7876f95350094.jpg","text":"TemporaryFile(/tmp/multipartBody6168903158003038748asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075956818,"filename":"image_16062025_14_11_05_9723.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b527df96a6708181960437f773912a06.jpg","text":"TemporaryFile(/tmp/multipartBody6230915697766366202asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750075956818,"filename":"image_16062025_14_11_15_10739.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366546931","file1":"1366546927","file0":"1366546923","file4":"1366546940","file5":"1366546945","file3":"1366546936"},"map_files_photo_id_array":[{"photo_id":"1366546945","filename":"file5"},{"photo_id":"1366546931","filename":"file2"},{"photo_id":"1366546940","filename":"file4"},{"photo_id":"1366546927","filename":"file1"},{"photo_id":"1366546923","filename":"file0"},{"photo_id":"1366546936","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366546945":["hashtag1","hashtag2"]},{"1366546927":["hashtag1","hashtag2"]},{"1366546923":["hashtag1","hashtag2"]},{"1366546931":["hashtag1","hashtag2"]},{"1366546940":["hashtag1","hashtag2"]},{"1366546936":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366546945, 1366546927, 1366546923, 1366546931, 1366546940, 1366546936)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 81.20803594589233 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 14:13:02.626091
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/14/12/image_16062025_14_12_45_9826.jpg', 2), ('/home/nano/Desktop/images/16062025/14/12/image_16062025_14_12_35_10798.jpg', 2), ('/home/nano/Desktop/images/16062025/14/12/image_16062025_14_12_25_9753.jpg', 2), ('/home/nano/Desktop/images/16062025/14/12/image_16062025_14_12_15_9747.jpg', 2), ('/home/nano/Desktop/images/16062025/14/11/image_16062025_14_12_05_9744.jpg', 2), ('/home/nano/Desktop/images/16062025/14/11/image_16062025_14_11_55_10725.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/14/12/image_16062025_14_12_45_9826.jpg', '/home/nano/Desktop/images/16062025/14/12/image_16062025_14_12_35_10798.jpg', '/home/nano/Desktop/images/16062025/14/12/image_16062025_14_12_25_9753.jpg', '/home/nano/Desktop/images/16062025/14/12/image_16062025_14_12_15_9747.jpg', '/home/nano/Desktop/images/16062025/14/11/image_16062025_14_12_05_9744.jpg', '/home/nano/Desktop/images/16062025/14/11/image_16062025_14_11_55_10725.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/14/12/image_16062025_14_12_45_9826.jpg
/home/nano/Desktop/images/16062025/14/12/image_16062025_14_12_35_10798.jpg
/home/nano/Desktop/images/16062025/14/12/image_16062025_14_12_25_9753.jpg
/home/nano/Desktop/images/16062025/14/12/image_16062025_14_12_15_9747.jpg
/home/nano/Desktop/images/16062025/14/11/image_16062025_14_12_05_9744.jpg
/home/nano/Desktop/images/16062025/14/11/image_16062025_14_11_55_10725.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366546986","1366546980","1366546997","1366546973","1366546967","1366546993"],"photo_ids_order":["1366546967","1366546973","1366546980","1366546986","1366546993","1366546997"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2bf07edfc331f3803ad537dccbe38b9e.jpg","text":"TemporaryFile(/tmp/multipartBody5015098783968630692asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076053851,"filename":"image_16062025_14_12_15_9747.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/129f23f3d74808cc272f9417e842d7d5.jpg","text":"TemporaryFile(/tmp/multipartBody1967600750518124249asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076053851,"filename":"image_16062025_14_12_25_9753.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/372d6f10e21a92aad17e9ad4a536b9d8.jpg","text":"TemporaryFile(/tmp/multipartBody1921763392017761337asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076053851,"filename":"image_16062025_14_11_55_10725.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/98bd04ce7b2ce4dcf2fbdc10a5b289ce.jpg","text":"TemporaryFile(/tmp/multipartBody7595173106601688974asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076053851,"filename":"image_16062025_14_12_35_10798.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/648368536974ca9b9f66d833d2d89d8d.jpg","text":"TemporaryFile(/tmp/multipartBody2342893992458212262asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076053851,"filename":"image_16062025_14_12_45_9826.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/59f9ddb01505e60945e856d77d5d58e2.jpg","text":"TemporaryFile(/tmp/multipartBody3770440300446902944asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076053851,"filename":"image_16062025_14_12_05_9744.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366546980","file1":"1366546973","file0":"1366546967","file4":"1366546993","file5":"1366546997","file3":"1366546986"},"map_files_photo_id_array":[{"photo_id":"1366546997","filename":"file5"},{"photo_id":"1366546980","filename":"file2"},{"photo_id":"1366546993","filename":"file4"},{"photo_id":"1366546973","filename":"file1"},{"photo_id":"1366546967","filename":"file0"},{"photo_id":"1366546986","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366546986":["hashtag1","hashtag2"]},{"1366546980":["hashtag1","hashtag2"]},{"1366546997":["hashtag1","hashtag2"]},{"1366546973":["hashtag1","hashtag2"]},{"1366546967":["hashtag1","hashtag2"]},{"1366546993":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366546986, 1366546980, 1366546997, 1366546973, 1366546967, 1366546993)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 82.82346701622009 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 14:14:32.127941
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/14/14/image_16062025_14_14_45_9682.jpg', 2), ('/home/nano/Desktop/images/16062025/14/14/image_16062025_14_14_35_9711.jpg', 2), ('/home/nano/Desktop/images/16062025/14/14/image_16062025_14_14_25_10720.jpg', 2), ('/home/nano/Desktop/images/16062025/14/14/image_16062025_14_14_15_9672.jpg', 2), ('/home/nano/Desktop/images/16062025/14/13/image_16062025_14_14_05_9704.jpg', 2), ('/home/nano/Desktop/images/16062025/14/13/image_16062025_14_13_55_10692.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/14/14/image_16062025_14_14_45_9682.jpg', '/home/nano/Desktop/images/16062025/14/14/image_16062025_14_14_35_9711.jpg', '/home/nano/Desktop/images/16062025/14/14/image_16062025_14_14_25_10720.jpg', '/home/nano/Desktop/images/16062025/14/14/image_16062025_14_14_15_9672.jpg', '/home/nano/Desktop/images/16062025/14/13/image_16062025_14_14_05_9704.jpg', '/home/nano/Desktop/images/16062025/14/13/image_16062025_14_13_55_10692.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/14/14/image_16062025_14_14_45_9682.jpg
/home/nano/Desktop/images/16062025/14/14/image_16062025_14_14_35_9711.jpg
/home/nano/Desktop/images/16062025/14/14/image_16062025_14_14_25_10720.jpg
/home/nano/Desktop/images/16062025/14/14/image_16062025_14_14_15_9672.jpg
/home/nano/Desktop/images/16062025/14/13/image_16062025_14_14_05_9704.jpg
/home/nano/Desktop/images/16062025/14/13/image_16062025_14_13_55_10692.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366547061","1366547034","1366547028","1366547043","1366547051","1366547017"],"photo_ids_order":["1366547017","1366547028","1366547034","1366547043","1366547051","1366547061"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ad80c28303d1b03e3534662698ec8e4e.jpg","text":"TemporaryFile(/tmp/multipartBody6423603347692195659asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076140642,"filename":"image_16062025_14_13_55_10692.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d531c9cc22fc2f148fbdf8b8ae40e374.jpg","text":"TemporaryFile(/tmp/multipartBody4380925242310617556asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076140642,"filename":"image_16062025_14_14_25_10720.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/14a38f978ceadbf564aa91fb831266fb.jpg","text":"TemporaryFile(/tmp/multipartBody5690763689436061924asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076140642,"filename":"image_16062025_14_14_35_9711.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3fdcf68e81295f1eaa31e73d999b7fdc.jpg","text":"TemporaryFile(/tmp/multipartBody2479163605807524759asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076140642,"filename":"image_16062025_14_14_15_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/717a82dc2ae2ad4060d4c8d7f8b807de.jpg","text":"TemporaryFile(/tmp/multipartBody3409647086539158516asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076140642,"filename":"image_16062025_14_14_05_9704.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3fd78efae809a59440db50a898b5e566.jpg","text":"TemporaryFile(/tmp/multipartBody8367162518734077116asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076140642,"filename":"image_16062025_14_14_45_9682.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366547034","file1":"1366547028","file0":"1366547017","file4":"1366547051","file5":"1366547061","file3":"1366547043"},"map_files_photo_id_array":[{"photo_id":"1366547061","filename":"file5"},{"photo_id":"1366547034","filename":"file2"},{"photo_id":"1366547051","filename":"file4"},{"photo_id":"1366547028","filename":"file1"},{"photo_id":"1366547017","filename":"file0"},{"photo_id":"1366547043","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366547061":["hashtag1","hashtag2"]},{"1366547034":["hashtag1","hashtag2"]},{"1366547028":["hashtag1","hashtag2"]},{"1366547043":["hashtag1","hashtag2"]},{"1366547051":["hashtag1","hashtag2"]},{"1366547017":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366547061, 1366547034, 1366547028, 1366547043, 1366547051, 1366547017)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 121.40589332580566 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 14:16:47.323983
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/14/16/image_16062025_14_16_45_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/14/16/image_16062025_14_16_35_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/14/16/image_16062025_14_16_25_9684.jpg', 2), ('/home/nano/Desktop/images/16062025/14/16/image_16062025_14_16_15_10758.jpg', 2), ('/home/nano/Desktop/images/16062025/14/15/image_16062025_14_16_04_9729.jpg', 2), ('/home/nano/Desktop/images/16062025/14/15/image_16062025_14_15_55_9668.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/14/16/image_16062025_14_16_45_10646.jpg', '/home/nano/Desktop/images/16062025/14/16/image_16062025_14_16_35_9622.jpg', '/home/nano/Desktop/images/16062025/14/16/image_16062025_14_16_25_9684.jpg', '/home/nano/Desktop/images/16062025/14/16/image_16062025_14_16_15_10758.jpg', '/home/nano/Desktop/images/16062025/14/15/image_16062025_14_16_04_9729.jpg', '/home/nano/Desktop/images/16062025/14/15/image_16062025_14_15_55_9668.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/14/16/image_16062025_14_16_45_10646.jpg
/home/nano/Desktop/images/16062025/14/16/image_16062025_14_16_35_9622.jpg
/home/nano/Desktop/images/16062025/14/16/image_16062025_14_16_25_9684.jpg
/home/nano/Desktop/images/16062025/14/16/image_16062025_14_16_15_10758.jpg
/home/nano/Desktop/images/16062025/14/15/image_16062025_14_16_04_9729.jpg
/home/nano/Desktop/images/16062025/14/15/image_16062025_14_15_55_9668.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366547090","1366547083","1366547117","1366547102","1366547095","1366547110"],"photo_ids_order":["1366547083","1366547090","1366547095","1366547102","1366547110","1366547117"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2fd3b30c73c49de415829441081a0c04.jpg","text":"TemporaryFile(/tmp/multipartBody1958571735673087929asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076272389,"filename":"image_16062025_14_16_35_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/403681f6bfe89698dce3af42bd77698c.jpg","text":"TemporaryFile(/tmp/multipartBody2866973081652424916asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076272389,"filename":"image_16062025_14_16_45_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/13da0dbb753a098c8c5bd83ce33d831a.jpg","text":"TemporaryFile(/tmp/multipartBody4674061820144409164asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076272389,"filename":"image_16062025_14_15_55_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f885d4e2931b7b274f70a0e5ce326ab5.jpg","text":"TemporaryFile(/tmp/multipartBody574490429935471406asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076272389,"filename":"image_16062025_14_16_15_10758.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/eee8155a128893f626426b9c31afe141.jpg","text":"TemporaryFile(/tmp/multipartBody9052501058968231781asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076272389,"filename":"image_16062025_14_16_25_9684.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c79a8719c03e7d91d808ae3d366b1c78.jpg","text":"TemporaryFile(/tmp/multipartBody5183705358827047863asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076272389,"filename":"image_16062025_14_16_04_9729.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366547095","file1":"1366547090","file0":"1366547083","file4":"1366547110","file5":"1366547117","file3":"1366547102"},"map_files_photo_id_array":[{"photo_id":"1366547117","filename":"file5"},{"photo_id":"1366547095","filename":"file2"},{"photo_id":"1366547110","filename":"file4"},{"photo_id":"1366547090","filename":"file1"},{"photo_id":"1366547083","filename":"file0"},{"photo_id":"1366547102","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366547090":["hashtag1","hashtag2"]},{"1366547083":["hashtag1","hashtag2"]},{"1366547117":["hashtag1","hashtag2"]},{"1366547102":["hashtag1","hashtag2"]},{"1366547095":["hashtag1","hashtag2"]},{"1366547110":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366547090, 1366547083, 1366547117, 1366547102, 1366547095, 1366547110)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 95.65383911132812 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 14:18:32.520185
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/14/18/image_16062025_14_18_45_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/14/18/image_16062025_14_18_35_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/14/18/image_16062025_14_18_24_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/14/18/image_16062025_14_18_15_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/14/17/image_16062025_14_18_05_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/14/17/image_16062025_14_17_55_9622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/14/18/image_16062025_14_18_45_9623.jpg', '/home/nano/Desktop/images/16062025/14/18/image_16062025_14_18_35_10635.jpg', '/home/nano/Desktop/images/16062025/14/18/image_16062025_14_18_24_9628.jpg', '/home/nano/Desktop/images/16062025/14/18/image_16062025_14_18_15_9628.jpg', '/home/nano/Desktop/images/16062025/14/17/image_16062025_14_18_05_10640.jpg', '/home/nano/Desktop/images/16062025/14/17/image_16062025_14_17_55_9622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/14/18/image_16062025_14_18_45_9623.jpg
/home/nano/Desktop/images/16062025/14/18/image_16062025_14_18_35_10635.jpg
/home/nano/Desktop/images/16062025/14/18/image_16062025_14_18_24_9628.jpg
/home/nano/Desktop/images/16062025/14/18/image_16062025_14_18_15_9628.jpg
/home/nano/Desktop/images/16062025/14/17/image_16062025_14_18_05_10640.jpg
/home/nano/Desktop/images/16062025/14/17/image_16062025_14_17_55_9622.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366547157","1366547174","1366547191","1366547185","1366547152","1366547146"],"photo_ids_order":["1366547146","1366547152","1366547157","1366547174","1366547185","1366547191"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7e74792369e87c55b177a01940c2d71b.jpg","text":"TemporaryFile(/tmp/multipartBody4347144889311313743asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076382876,"filename":"image_16062025_14_18_24_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/52deeca22947312a92c5bd84923565f3.jpg","text":"TemporaryFile(/tmp/multipartBody4408237770958025307asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076382876,"filename":"image_16062025_14_18_15_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c437a6ca06fa7639cdad73b195b74984.jpg","text":"TemporaryFile(/tmp/multipartBody9169620173758526679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076382876,"filename":"image_16062025_14_17_55_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/864daca1b3ee1e668ffaf5437c0d4c0e.jpg","text":"TemporaryFile(/tmp/multipartBody1160058070015538973asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076382876,"filename":"image_16062025_14_18_05_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/484b22220d33342404ff0d6fff03145c.jpg","text":"TemporaryFile(/tmp/multipartBody5573019125680826792asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076382876,"filename":"image_16062025_14_18_35_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2409436902e7a78dc5f27ad230ef28d2.jpg","text":"TemporaryFile(/tmp/multipartBody8878826882379523666asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076382876,"filename":"image_16062025_14_18_45_9623.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366547157","file1":"1366547152","file0":"1366547146","file4":"1366547185","file5":"1366547191","file3":"1366547174"},"map_files_photo_id_array":[{"photo_id":"1366547191","filename":"file5"},{"photo_id":"1366547157","filename":"file2"},{"photo_id":"1366547185","filename":"file4"},{"photo_id":"1366547152","filename":"file1"},{"photo_id":"1366547146","filename":"file0"},{"photo_id":"1366547174","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366547157":["hashtag1","hashtag2"]},{"1366547174":["hashtag1","hashtag2"]},{"1366547191":["hashtag1","hashtag2"]},{"1366547185":["hashtag1","hashtag2"]},{"1366547152":["hashtag1","hashtag2"]},{"1366547146":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366547157, 1366547174, 1366547191, 1366547185, 1366547152, 1366547146)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 144.49319887161255 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 14:21:02.463683
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/14/20/image_16062025_14_20_45_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/14/20/image_16062025_14_20_35_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/14/20/image_16062025_14_20_25_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/14/20/image_16062025_14_20_14_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/14/19/image_16062025_14_20_05_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/14/19/image_16062025_14_19_55_10640.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/14/20/image_16062025_14_20_45_10640.jpg', '/home/nano/Desktop/images/16062025/14/20/image_16062025_14_20_35_9620.jpg', '/home/nano/Desktop/images/16062025/14/20/image_16062025_14_20_25_10644.jpg', '/home/nano/Desktop/images/16062025/14/20/image_16062025_14_20_14_9640.jpg', '/home/nano/Desktop/images/16062025/14/19/image_16062025_14_20_05_9620.jpg', '/home/nano/Desktop/images/16062025/14/19/image_16062025_14_19_55_10640.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/14/20/image_16062025_14_20_45_10640.jpg
/home/nano/Desktop/images/16062025/14/20/image_16062025_14_20_35_9620.jpg
/home/nano/Desktop/images/16062025/14/20/image_16062025_14_20_25_10644.jpg
/home/nano/Desktop/images/16062025/14/20/image_16062025_14_20_14_9640.jpg
/home/nano/Desktop/images/16062025/14/19/image_16062025_14_20_05_9620.jpg
/home/nano/Desktop/images/16062025/14/19/image_16062025_14_19_55_10640.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366547226","1366547211","1366547229","1366547208","1366547223","1366547218"],"photo_ids_order":["1366547208","1366547211","1366547218","1366547223","1366547226","1366547229"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d7e725c2289f027eef232037f1228074.jpg","text":"TemporaryFile(/tmp/multipartBody8192909121073950888asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076528924,"filename":"image_16062025_14_20_05_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4b260385f4e94c2283b5538d1356fba2.jpg","text":"TemporaryFile(/tmp/multipartBody8360058519841551081asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076528924,"filename":"image_16062025_14_20_35_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/45f6b422d261b7221eeda6b64c035bbe.jpg","text":"TemporaryFile(/tmp/multipartBody7303982457430814662asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076528924,"filename":"image_16062025_14_19_55_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ebf6b1c793cbd77714b1bf305945a299.jpg","text":"TemporaryFile(/tmp/multipartBody1085418806550923490asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076528924,"filename":"image_16062025_14_20_45_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2f1afb6e92258c0be2b1fe8e96f033ee.jpg","text":"TemporaryFile(/tmp/multipartBody8693513267508053470asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076528924,"filename":"image_16062025_14_20_14_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6d002f26b9614c12933b1478179a8289.jpg","text":"TemporaryFile(/tmp/multipartBody7580481102025579985asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076528924,"filename":"image_16062025_14_20_25_10644.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366547218","file1":"1366547211","file0":"1366547208","file4":"1366547226","file5":"1366547229","file3":"1366547223"},"map_files_photo_id_array":[{"photo_id":"1366547229","filename":"file5"},{"photo_id":"1366547218","filename":"file2"},{"photo_id":"1366547226","filename":"file4"},{"photo_id":"1366547211","filename":"file1"},{"photo_id":"1366547208","filename":"file0"},{"photo_id":"1366547223","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366547226":["hashtag1","hashtag2"]},{"1366547211":["hashtag1","hashtag2"]},{"1366547229":["hashtag1","hashtag2"]},{"1366547208":["hashtag1","hashtag2"]},{"1366547223":["hashtag1","hashtag2"]},{"1366547218":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366547226, 1366547211, 1366547229, 1366547208, 1366547223, 1366547218)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 94.20943355560303 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 14:22:46.911429
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/14/22/image_16062025_14_22_45_10727.jpg', 2), ('/home/nano/Desktop/images/16062025/14/22/image_16062025_14_22_35_9700.jpg', 2), ('/home/nano/Desktop/images/16062025/14/22/image_16062025_14_22_25_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/14/22/image_16062025_14_22_15_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/14/21/image_16062025_14_22_05_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/14/21/image_16062025_14_21_55_9628.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/14/22/image_16062025_14_22_45_10727.jpg', '/home/nano/Desktop/images/16062025/14/22/image_16062025_14_22_35_9700.jpg', '/home/nano/Desktop/images/16062025/14/22/image_16062025_14_22_25_9664.jpg', '/home/nano/Desktop/images/16062025/14/22/image_16062025_14_22_15_10647.jpg', '/home/nano/Desktop/images/16062025/14/21/image_16062025_14_22_05_9640.jpg', '/home/nano/Desktop/images/16062025/14/21/image_16062025_14_21_55_9628.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/14/22/image_16062025_14_22_45_10727.jpg
/home/nano/Desktop/images/16062025/14/22/image_16062025_14_22_35_9700.jpg
/home/nano/Desktop/images/16062025/14/22/image_16062025_14_22_25_9664.jpg
/home/nano/Desktop/images/16062025/14/22/image_16062025_14_22_15_10647.jpg
/home/nano/Desktop/images/16062025/14/21/image_16062025_14_22_05_9640.jpg
/home/nano/Desktop/images/16062025/14/21/image_16062025_14_21_55_9628.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366547262","1366547310","1366547268","1366547301","1366547291","1366547281"],"photo_ids_order":["1366547262","1366547268","1366547281","1366547291","1366547301","1366547310"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8daa3ca97c54ff62249b9444b03a08ef.jpg","text":"TemporaryFile(/tmp/multipartBody8276565779451447753asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076632253,"filename":"image_16062025_14_22_45_10727.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/577b481dba941820202c891fea1500e0.jpg","text":"TemporaryFile(/tmp/multipartBody6009482550024925625asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076632253,"filename":"image_16062025_14_21_55_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/717d7b15251275ea1e2c1c8ca3d948e0.jpg","text":"TemporaryFile(/tmp/multipartBody25600056011694330asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076632253,"filename":"image_16062025_14_22_35_9700.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/419b16eb50e42dd74031abb715a727a3.jpg","text":"TemporaryFile(/tmp/multipartBody8856108551784947860asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076632253,"filename":"image_16062025_14_22_05_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/50e5694dd7647e1a06a273b00292dac8.jpg","text":"TemporaryFile(/tmp/multipartBody7356690252228120577asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076632253,"filename":"image_16062025_14_22_15_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e488f404a9878da606a9ca39f2609afb.jpg","text":"TemporaryFile(/tmp/multipartBody8158646303284242468asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076632253,"filename":"image_16062025_14_22_25_9664.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366547281","file1":"1366547268","file0":"1366547262","file4":"1366547301","file5":"1366547310","file3":"1366547291"},"map_files_photo_id_array":[{"photo_id":"1366547310","filename":"file5"},{"photo_id":"1366547281","filename":"file2"},{"photo_id":"1366547301","filename":"file4"},{"photo_id":"1366547268","filename":"file1"},{"photo_id":"1366547262","filename":"file0"},{"photo_id":"1366547291","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366547262":["hashtag1","hashtag2"]},{"1366547310":["hashtag1","hashtag2"]},{"1366547268":["hashtag1","hashtag2"]},{"1366547301":["hashtag1","hashtag2"]},{"1366547291":["hashtag1","hashtag2"]},{"1366547281":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366547262, 1366547310, 1366547268, 1366547301, 1366547291, 1366547281)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 253.22405362129211 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 14:27:03.006093
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/14/26/image_16062025_14_26_44_9745.jpg', 2), ('/home/nano/Desktop/images/16062025/14/26/image_16062025_14_26_35_9731.jpg', 2), ('/home/nano/Desktop/images/16062025/14/26/image_16062025_14_26_25_9725.jpg', 2), ('/home/nano/Desktop/images/16062025/14/26/image_16062025_14_26_15_10766.jpg', 2), ('/home/nano/Desktop/images/16062025/14/25/image_16062025_14_26_04_9731.jpg', 2), ('/home/nano/Desktop/images/16062025/14/25/image_16062025_14_25_55_9722.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/14/26/image_16062025_14_26_44_9745.jpg', '/home/nano/Desktop/images/16062025/14/26/image_16062025_14_26_35_9731.jpg', '/home/nano/Desktop/images/16062025/14/26/image_16062025_14_26_25_9725.jpg', '/home/nano/Desktop/images/16062025/14/26/image_16062025_14_26_15_10766.jpg', '/home/nano/Desktop/images/16062025/14/25/image_16062025_14_26_04_9731.jpg', '/home/nano/Desktop/images/16062025/14/25/image_16062025_14_25_55_9722.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/14/26/image_16062025_14_26_44_9745.jpg
/home/nano/Desktop/images/16062025/14/26/image_16062025_14_26_35_9731.jpg
/home/nano/Desktop/images/16062025/14/26/image_16062025_14_26_25_9725.jpg
/home/nano/Desktop/images/16062025/14/26/image_16062025_14_26_15_10766.jpg
/home/nano/Desktop/images/16062025/14/25/image_16062025_14_26_04_9731.jpg
/home/nano/Desktop/images/16062025/14/25/image_16062025_14_25_55_9722.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366547397","1366547355","1366547403","1366547363","1366547347","1366547385"],"photo_ids_order":["1366547347","1366547355","1366547363","1366547385","1366547397","1366547403"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9b4e421cfbceab9cb5222ea7a7706095.jpg","text":"TemporaryFile(/tmp/multipartBody526111405682278990asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076888819,"filename":"image_16062025_14_26_04_9731.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/460f05afa9346c75128bdbd54feaa926.jpg","text":"TemporaryFile(/tmp/multipartBody1672094251759468759asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076888819,"filename":"image_16062025_14_26_35_9731.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3d3090a55d2a09e2e29b7329b2aad405.jpg","text":"TemporaryFile(/tmp/multipartBody404425738525378423asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076888819,"filename":"image_16062025_14_25_55_9722.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/43a4cfca8ac471a853a16234795cd54d.jpg","text":"TemporaryFile(/tmp/multipartBody5193037525112981342asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076888819,"filename":"image_16062025_14_26_25_9725.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1058c1f91be030fe44b1ab2902415349.jpg","text":"TemporaryFile(/tmp/multipartBody2738453671938716656asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076888819,"filename":"image_16062025_14_26_44_9745.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b35fb8e3b59976148f0e02e7a2e38192.jpg","text":"TemporaryFile(/tmp/multipartBody8925924765789256614asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750076888819,"filename":"image_16062025_14_26_15_10766.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366547363","file1":"1366547355","file0":"1366547347","file4":"1366547397","file5":"1366547403","file3":"1366547385"},"map_files_photo_id_array":[{"photo_id":"1366547403","filename":"file5"},{"photo_id":"1366547363","filename":"file2"},{"photo_id":"1366547397","filename":"file4"},{"photo_id":"1366547355","filename":"file1"},{"photo_id":"1366547347","filename":"file0"},{"photo_id":"1366547385","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366547397":["hashtag1","hashtag2"]},{"1366547355":["hashtag1","hashtag2"]},{"1366547403":["hashtag1","hashtag2"]},{"1366547363":["hashtag1","hashtag2"]},{"1366547347":["hashtag1","hashtag2"]},{"1366547385":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366547397, 1366547355, 1366547403, 1366547363, 1366547347, 1366547385)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 127.6755964756012 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 14:29:17.664651
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/14/29/image_16062025_14_29_45_9762.jpg', 2), ('/home/nano/Desktop/images/16062025/14/29/image_16062025_14_29_35_10763.jpg', 2), ('/home/nano/Desktop/images/16062025/14/29/image_16062025_14_29_24_9750.jpg', 2), ('/home/nano/Desktop/images/16062025/14/29/image_16062025_14_29_15_9767.jpg', 2), ('/home/nano/Desktop/images/16062025/14/28/image_16062025_14_29_05_9744.jpg', 2), ('/home/nano/Desktop/images/16062025/14/28/image_16062025_14_28_55_10758.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/14/29/image_16062025_14_29_45_9762.jpg', '/home/nano/Desktop/images/16062025/14/29/image_16062025_14_29_35_10763.jpg', '/home/nano/Desktop/images/16062025/14/29/image_16062025_14_29_24_9750.jpg', '/home/nano/Desktop/images/16062025/14/29/image_16062025_14_29_15_9767.jpg', '/home/nano/Desktop/images/16062025/14/28/image_16062025_14_29_05_9744.jpg', '/home/nano/Desktop/images/16062025/14/28/image_16062025_14_28_55_10758.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/14/29/image_16062025_14_29_45_9762.jpg
/home/nano/Desktop/images/16062025/14/29/image_16062025_14_29_35_10763.jpg
/home/nano/Desktop/images/16062025/14/29/image_16062025_14_29_24_9750.jpg
/home/nano/Desktop/images/16062025/14/29/image_16062025_14_29_15_9767.jpg
/home/nano/Desktop/images/16062025/14/28/image_16062025_14_29_05_9744.jpg
/home/nano/Desktop/images/16062025/14/28/image_16062025_14_28_55_10758.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366547478","1366547424","1366547465","1366547441","1366547488","1366547452"],"photo_ids_order":["1366547424","1366547441","1366547452","1366547465","1366547478","1366547488"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9a5ac280ee693ed105ef0351d12ffaee.jpg","text":"TemporaryFile(/tmp/multipartBody1070523603499569005asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077031873,"filename":"image_16062025_14_29_05_9744.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2e4a5a289a373795f04d8e197d98f86d.jpg","text":"TemporaryFile(/tmp/multipartBody4920270006786413836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077031873,"filename":"image_16062025_14_29_45_9762.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3c5e17747130b28d12739bf3c1010334.jpg","text":"TemporaryFile(/tmp/multipartBody5823081781799106794asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077031873,"filename":"image_16062025_14_29_15_9767.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/563d68e5be941a54180eedfd4f546e7b.jpg","text":"TemporaryFile(/tmp/multipartBody1325030162822697527asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077031873,"filename":"image_16062025_14_29_35_10763.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/58ac3412fdc430d32bb2d442587e0f68.jpg","text":"TemporaryFile(/tmp/multipartBody7218861928346674282asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077031873,"filename":"image_16062025_14_28_55_10758.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/53c5b8646675aef4211f1cf9f9481288.jpg","text":"TemporaryFile(/tmp/multipartBody7869523236331547945asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077031873,"filename":"image_16062025_14_29_24_9750.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366547452","file1":"1366547441","file0":"1366547424","file4":"1366547478","file5":"1366547488","file3":"1366547465"},"map_files_photo_id_array":[{"photo_id":"1366547488","filename":"file5"},{"photo_id":"1366547452","filename":"file2"},{"photo_id":"1366547478","filename":"file4"},{"photo_id":"1366547441","filename":"file1"},{"photo_id":"1366547424","filename":"file0"},{"photo_id":"1366547465","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366547478":["hashtag1","hashtag2"]},{"1366547424":["hashtag1","hashtag2"]},{"1366547465":["hashtag1","hashtag2"]},{"1366547441":["hashtag1","hashtag2"]},{"1366547488":["hashtag1","hashtag2"]},{"1366547452":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366547478, 1366547424, 1366547465, 1366547441, 1366547488, 1366547452)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 249.3526976108551 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 14:33:32.094946
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/14/33/image_16062025_14_33_45_10769.jpg', 2), ('/home/nano/Desktop/images/16062025/14/33/image_16062025_14_33_34_9758.jpg', 2), ('/home/nano/Desktop/images/16062025/14/33/image_16062025_14_33_25_9747.jpg', 2), ('/home/nano/Desktop/images/16062025/14/33/image_16062025_14_33_15_9769.jpg', 2), ('/home/nano/Desktop/images/16062025/14/32/image_16062025_14_33_05_9769.jpg', 2), ('/home/nano/Desktop/images/16062025/14/32/image_16062025_14_32_55_10783.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/14/33/image_16062025_14_33_45_10769.jpg', '/home/nano/Desktop/images/16062025/14/33/image_16062025_14_33_34_9758.jpg', '/home/nano/Desktop/images/16062025/14/33/image_16062025_14_33_25_9747.jpg', '/home/nano/Desktop/images/16062025/14/33/image_16062025_14_33_15_9769.jpg', '/home/nano/Desktop/images/16062025/14/32/image_16062025_14_33_05_9769.jpg', '/home/nano/Desktop/images/16062025/14/32/image_16062025_14_32_55_10783.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/14/33/image_16062025_14_33_45_10769.jpg
/home/nano/Desktop/images/16062025/14/33/image_16062025_14_33_34_9758.jpg
/home/nano/Desktop/images/16062025/14/33/image_16062025_14_33_25_9747.jpg
/home/nano/Desktop/images/16062025/14/33/image_16062025_14_33_15_9769.jpg
/home/nano/Desktop/images/16062025/14/32/image_16062025_14_33_05_9769.jpg
/home/nano/Desktop/images/16062025/14/32/image_16062025_14_32_55_10783.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366547553","1366547559","1366547544","1366547523","1366547531","1366547513"],"photo_ids_order":["1366547513","1366547523","1366547531","1366547544","1366547553","1366547559"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ad2b68bcb6abde6b29269d66278a7a13.jpg","text":"TemporaryFile(/tmp/multipartBody8130302966722391857asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077278820,"filename":"image_16062025_14_33_05_9769.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ddb93e430dffdd44b54e6ffb537044a9.jpg","text":"TemporaryFile(/tmp/multipartBody3730657368300903851asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077278820,"filename":"image_16062025_14_32_55_10783.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6083ac415f08771fcc19f2b080a852e0.jpg","text":"TemporaryFile(/tmp/multipartBody2144786069826737840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077278820,"filename":"image_16062025_14_33_15_9769.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fe9d7dc75020b5f9f364ed09724516bf.jpg","text":"TemporaryFile(/tmp/multipartBody7744399061539109534asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077278820,"filename":"image_16062025_14_33_34_9758.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0d64af35a20c77be0a268cf21c335aea.jpg","text":"TemporaryFile(/tmp/multipartBody751602173005031364asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077278820,"filename":"image_16062025_14_33_25_9747.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b0f23aed31f49c2d6719f0f8f9744fb8.jpg","text":"TemporaryFile(/tmp/multipartBody2449179538993109839asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077278820,"filename":"image_16062025_14_33_45_10769.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366547531","file1":"1366547523","file0":"1366547513","file4":"1366547553","file5":"1366547559","file3":"1366547544"},"map_files_photo_id_array":[{"photo_id":"1366547559","filename":"file5"},{"photo_id":"1366547531","filename":"file2"},{"photo_id":"1366547553","filename":"file4"},{"photo_id":"1366547523","filename":"file1"},{"photo_id":"1366547513","filename":"file0"},{"photo_id":"1366547544","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366547553":["hashtag1","hashtag2"]},{"1366547559":["hashtag1","hashtag2"]},{"1366547544":["hashtag1","hashtag2"]},{"1366547523":["hashtag1","hashtag2"]},{"1366547531":["hashtag1","hashtag2"]},{"1366547513":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366547553, 1366547559, 1366547544, 1366547523, 1366547531, 1366547513)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 149.14450097084045 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 14:36:03.050412
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/14/35/image_16062025_14_35_45_10756.jpg', 2), ('/home/nano/Desktop/images/16062025/14/35/image_16062025_14_35_35_9746.jpg', 2), ('/home/nano/Desktop/images/16062025/14/35/image_16062025_14_35_25_9744.jpg', 2), ('/home/nano/Desktop/images/16062025/14/35/image_16062025_14_35_15_9764.jpg', 2), ('/home/nano/Desktop/images/16062025/14/34/image_16062025_14_35_05_10766.jpg', 2), ('/home/nano/Desktop/images/16062025/14/34/image_16062025_14_34_55_9756.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/14/35/image_16062025_14_35_45_10756.jpg', '/home/nano/Desktop/images/16062025/14/35/image_16062025_14_35_35_9746.jpg', '/home/nano/Desktop/images/16062025/14/35/image_16062025_14_35_25_9744.jpg', '/home/nano/Desktop/images/16062025/14/35/image_16062025_14_35_15_9764.jpg', '/home/nano/Desktop/images/16062025/14/34/image_16062025_14_35_05_10766.jpg', '/home/nano/Desktop/images/16062025/14/34/image_16062025_14_34_55_9756.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/14/35/image_16062025_14_35_45_10756.jpg
/home/nano/Desktop/images/16062025/14/35/image_16062025_14_35_35_9746.jpg
/home/nano/Desktop/images/16062025/14/35/image_16062025_14_35_25_9744.jpg
/home/nano/Desktop/images/16062025/14/35/image_16062025_14_35_15_9764.jpg
/home/nano/Desktop/images/16062025/14/34/image_16062025_14_35_05_10766.jpg
/home/nano/Desktop/images/16062025/14/34/image_16062025_14_34_55_9756.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366547601","1366547570","1366547680","1366547656","1366547644","1366547697"],"photo_ids_order":["1366547570","1366547601","1366547644","1366547656","1366547680","1366547697"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bbe96d459db6ff82b0f76b3f5aefd5a1.jpg","text":"TemporaryFile(/tmp/multipartBody2187827243811272616asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077426755,"filename":"image_16062025_14_35_35_9746.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7ff189525a6f14059c5d5858f42c8e0b.jpg","text":"TemporaryFile(/tmp/multipartBody4099393137715614671asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077426755,"filename":"image_16062025_14_35_45_10756.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2076dfd31880125610beb993ce9405c3.jpg","text":"TemporaryFile(/tmp/multipartBody2597637185477082580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077426755,"filename":"image_16062025_14_35_05_10766.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cd137ae7a042288fc66fd73eeca2cf10.jpg","text":"TemporaryFile(/tmp/multipartBody7874595357019628930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077426755,"filename":"image_16062025_14_35_15_9764.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/47060313a55c5c06dfbfa26576c1c634.jpg","text":"TemporaryFile(/tmp/multipartBody7774032805264570960asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077426755,"filename":"image_16062025_14_35_25_9744.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bbe368b4b89baa45510bed0fd7787d5f.jpg","text":"TemporaryFile(/tmp/multipartBody1960447738343041052asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077426755,"filename":"image_16062025_14_34_55_9756.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366547644","file1":"1366547601","file0":"1366547570","file4":"1366547680","file5":"1366547697","file3":"1366547656"},"map_files_photo_id_array":[{"photo_id":"1366547697","filename":"file5"},{"photo_id":"1366547644","filename":"file2"},{"photo_id":"1366547680","filename":"file4"},{"photo_id":"1366547601","filename":"file1"},{"photo_id":"1366547570","filename":"file0"},{"photo_id":"1366547656","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366547601":["hashtag1","hashtag2"]},{"1366547570":["hashtag1","hashtag2"]},{"1366547680":["hashtag1","hashtag2"]},{"1366547656":["hashtag1","hashtag2"]},{"1366547644":["hashtag1","hashtag2"]},{"1366547697":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366547601, 1366547570, 1366547680, 1366547656, 1366547644, 1366547697)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 177.0893054008484 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 14:39:02.813105
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/14/38/image_16062025_14_38_45_9755.jpg', 2), ('/home/nano/Desktop/images/16062025/14/38/image_16062025_14_38_35_10767.jpg', 2), ('/home/nano/Desktop/images/16062025/14/38/image_16062025_14_38_24_9751.jpg', 2), ('/home/nano/Desktop/images/16062025/14/38/image_16062025_14_38_15_9781.jpg', 2), ('/home/nano/Desktop/images/16062025/14/37/image_16062025_14_38_05_9745.jpg', 2), ('/home/nano/Desktop/images/16062025/14/37/image_16062025_14_37_55_9749.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/14/38/image_16062025_14_38_45_9755.jpg', '/home/nano/Desktop/images/16062025/14/38/image_16062025_14_38_35_10767.jpg', '/home/nano/Desktop/images/16062025/14/38/image_16062025_14_38_24_9751.jpg', '/home/nano/Desktop/images/16062025/14/38/image_16062025_14_38_15_9781.jpg', '/home/nano/Desktop/images/16062025/14/37/image_16062025_14_38_05_9745.jpg', '/home/nano/Desktop/images/16062025/14/37/image_16062025_14_37_55_9749.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/14/38/image_16062025_14_38_45_9755.jpg
/home/nano/Desktop/images/16062025/14/38/image_16062025_14_38_35_10767.jpg
/home/nano/Desktop/images/16062025/14/38/image_16062025_14_38_24_9751.jpg
/home/nano/Desktop/images/16062025/14/38/image_16062025_14_38_15_9781.jpg
/home/nano/Desktop/images/16062025/14/37/image_16062025_14_38_05_9745.jpg
/home/nano/Desktop/images/16062025/14/37/image_16062025_14_37_55_9749.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366547787","1366547745","1366547768","1366547759","1366547731","1366547796"],"photo_ids_order":["1366547731","1366547745","1366547759","1366547768","1366547787","1366547796"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e9ebe26e055d1df39620b3b671290127.jpg","text":"TemporaryFile(/tmp/multipartBody6212380188646335847asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077606198,"filename":"image_16062025_14_38_05_9745.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/803056afdfa170d7719190c06d563b6e.jpg","text":"TemporaryFile(/tmp/multipartBody3283755085947342668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077606198,"filename":"image_16062025_14_38_35_10767.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5656bc84579fdc92e42998c82e039759.jpg","text":"TemporaryFile(/tmp/multipartBody2528854518275674240asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077606198,"filename":"image_16062025_14_38_15_9781.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/67f26db5fc05b55f138d394681ab51ef.jpg","text":"TemporaryFile(/tmp/multipartBody2294015150702775940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077606198,"filename":"image_16062025_14_38_24_9751.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1a791fbbfed3c1f84349c124b90e9e93.jpg","text":"TemporaryFile(/tmp/multipartBody2733005290365801977asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077606198,"filename":"image_16062025_14_38_45_9755.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d97e7426795b47cb1474b488bc42211b.jpg","text":"TemporaryFile(/tmp/multipartBody2275218185412085188asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077606198,"filename":"image_16062025_14_37_55_9749.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366547759","file1":"1366547745","file0":"1366547731","file4":"1366547787","file5":"1366547796","file3":"1366547768"},"map_files_photo_id_array":[{"photo_id":"1366547796","filename":"file5"},{"photo_id":"1366547759","filename":"file2"},{"photo_id":"1366547787","filename":"file4"},{"photo_id":"1366547745","filename":"file1"},{"photo_id":"1366547731","filename":"file0"},{"photo_id":"1366547768","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366547787":["hashtag1","hashtag2"]},{"1366547745":["hashtag1","hashtag2"]},{"1366547768":["hashtag1","hashtag2"]},{"1366547759":["hashtag1","hashtag2"]},{"1366547731":["hashtag1","hashtag2"]},{"1366547796":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366547787, 1366547745, 1366547768, 1366547759, 1366547731, 1366547796)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 154.53386425971985 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 14:41:46.980265
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/14/41/image_16062025_14_41_45_9745.jpg', 2), ('/home/nano/Desktop/images/16062025/14/41/image_16062025_14_41_35_9756.jpg', 2), ('/home/nano/Desktop/images/16062025/14/41/image_16062025_14_41_25_9754.jpg', 2), ('/home/nano/Desktop/images/16062025/14/41/image_16062025_14_41_15_10763.jpg', 2), ('/home/nano/Desktop/images/16062025/14/40/image_16062025_14_41_05_9760.jpg', 2), ('/home/nano/Desktop/images/16062025/14/40/image_16062025_14_40_55_9754.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/14/41/image_16062025_14_41_45_9745.jpg', '/home/nano/Desktop/images/16062025/14/41/image_16062025_14_41_35_9756.jpg', '/home/nano/Desktop/images/16062025/14/41/image_16062025_14_41_25_9754.jpg', '/home/nano/Desktop/images/16062025/14/41/image_16062025_14_41_15_10763.jpg', '/home/nano/Desktop/images/16062025/14/40/image_16062025_14_41_05_9760.jpg', '/home/nano/Desktop/images/16062025/14/40/image_16062025_14_40_55_9754.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/14/41/image_16062025_14_41_45_9745.jpg
/home/nano/Desktop/images/16062025/14/41/image_16062025_14_41_35_9756.jpg
/home/nano/Desktop/images/16062025/14/41/image_16062025_14_41_25_9754.jpg
/home/nano/Desktop/images/16062025/14/41/image_16062025_14_41_15_10763.jpg
/home/nano/Desktop/images/16062025/14/40/image_16062025_14_41_05_9760.jpg
/home/nano/Desktop/images/16062025/14/40/image_16062025_14_40_55_9754.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366547809","1366547817","1366547849","1366547840","1366547825","1366547833"],"photo_ids_order":["1366547809","1366547817","1366547825","1366547833","1366547840","1366547849"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3582962e43dec698edbc45132fbf7166.jpg","text":"TemporaryFile(/tmp/multipartBody4341919208216659003asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077772158,"filename":"image_16062025_14_41_45_9745.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b6f62a9db267f978afb79d8bed9699c7.jpg","text":"TemporaryFile(/tmp/multipartBody6274183659595049405asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077772158,"filename":"image_16062025_14_41_35_9756.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8077ef5eb05be1338d47624070b96727.jpg","text":"TemporaryFile(/tmp/multipartBody2196358399302669147asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077772158,"filename":"image_16062025_14_40_55_9754.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/84d6a349267c2839722d9b0c7e316644.jpg","text":"TemporaryFile(/tmp/multipartBody4210845182361875382asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077772158,"filename":"image_16062025_14_41_05_9760.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2897c4675f89b2a5a7fe2c688bce6021.jpg","text":"TemporaryFile(/tmp/multipartBody6483418451442505360asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077772158,"filename":"image_16062025_14_41_25_9754.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f433b79f9f0911c8f7079472a95fa225.jpg","text":"TemporaryFile(/tmp/multipartBody4688027079845404636asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077772158,"filename":"image_16062025_14_41_15_10763.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366547825","file1":"1366547817","file0":"1366547809","file4":"1366547840","file5":"1366547849","file3":"1366547833"},"map_files_photo_id_array":[{"photo_id":"1366547849","filename":"file5"},{"photo_id":"1366547825","filename":"file2"},{"photo_id":"1366547840","filename":"file4"},{"photo_id":"1366547817","filename":"file1"},{"photo_id":"1366547809","filename":"file0"},{"photo_id":"1366547833","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366547809":["hashtag1","hashtag2"]},{"1366547817":["hashtag1","hashtag2"]},{"1366547849":["hashtag1","hashtag2"]},{"1366547840":["hashtag1","hashtag2"]},{"1366547825":["hashtag1","hashtag2"]},{"1366547833":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366547809, 1366547817, 1366547849, 1366547840, 1366547825, 1366547833)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 103.5801134109497 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 14:43:32.273146
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/14/43/image_16062025_14_43_45_9745.jpg', 2), ('/home/nano/Desktop/images/16062025/14/43/image_16062025_14_43_35_9753.jpg', 2), ('/home/nano/Desktop/images/16062025/14/43/image_16062025_14_43_25_9753.jpg', 2), ('/home/nano/Desktop/images/16062025/14/43/image_16062025_14_43_15_10766.jpg', 2), ('/home/nano/Desktop/images/16062025/14/42/image_16062025_14_43_05_9751.jpg', 2), ('/home/nano/Desktop/images/16062025/14/42/image_16062025_14_42_55_9750.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/14/43/image_16062025_14_43_45_9745.jpg', '/home/nano/Desktop/images/16062025/14/43/image_16062025_14_43_35_9753.jpg', '/home/nano/Desktop/images/16062025/14/43/image_16062025_14_43_25_9753.jpg', '/home/nano/Desktop/images/16062025/14/43/image_16062025_14_43_15_10766.jpg', '/home/nano/Desktop/images/16062025/14/42/image_16062025_14_43_05_9751.jpg', '/home/nano/Desktop/images/16062025/14/42/image_16062025_14_42_55_9750.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/14/43/image_16062025_14_43_45_9745.jpg
/home/nano/Desktop/images/16062025/14/43/image_16062025_14_43_35_9753.jpg
/home/nano/Desktop/images/16062025/14/43/image_16062025_14_43_25_9753.jpg
/home/nano/Desktop/images/16062025/14/43/image_16062025_14_43_15_10766.jpg
/home/nano/Desktop/images/16062025/14/42/image_16062025_14_43_05_9751.jpg
/home/nano/Desktop/images/16062025/14/42/image_16062025_14_42_55_9750.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366547976","1366547862","1366548021","1366547885","1366547963","1366547930"],"photo_ids_order":["1366547862","1366547885","1366547930","1366547963","1366547976","1366548021"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b7aafab3c9169a72a584771292772ee6.jpg","text":"TemporaryFile(/tmp/multipartBody8812448258753420727asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077877338,"filename":"image_16062025_14_43_05_9751.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ab9d70a69d181e088628ce5849d496cf.jpg","text":"TemporaryFile(/tmp/multipartBody3906245268792874976asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077877338,"filename":"image_16062025_14_43_45_9745.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c635cabc603885345c714c413467e9dd.jpg","text":"TemporaryFile(/tmp/multipartBody3110960128598164726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077877338,"filename":"image_16062025_14_42_55_9750.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cb9cf6f8ad052ad272824f4e6e06ebe2.jpg","text":"TemporaryFile(/tmp/multipartBody6528874718588585270asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077877338,"filename":"image_16062025_14_43_35_9753.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/44adca7840edbaafca80a4662b9fbfd3.jpg","text":"TemporaryFile(/tmp/multipartBody7607516213793964906asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077877338,"filename":"image_16062025_14_43_15_10766.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dd5c56d38aefa7066000a8fe5dbc846e.jpg","text":"TemporaryFile(/tmp/multipartBody3319124443511068673asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750077877338,"filename":"image_16062025_14_43_25_9753.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366547930","file1":"1366547885","file0":"1366547862","file4":"1366547976","file5":"1366548021","file3":"1366547963"},"map_files_photo_id_array":[{"photo_id":"1366548021","filename":"file5"},{"photo_id":"1366547930","filename":"file2"},{"photo_id":"1366547976","filename":"file4"},{"photo_id":"1366547885","filename":"file1"},{"photo_id":"1366547862","filename":"file0"},{"photo_id":"1366547963","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366547976":["hashtag1","hashtag2"]},{"1366547862":["hashtag1","hashtag2"]},{"1366548021":["hashtag1","hashtag2"]},{"1366547885":["hashtag1","hashtag2"]},{"1366547963":["hashtag1","hashtag2"]},{"1366547930":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366547976, 1366547862, 1366548021, 1366547885, 1366547963, 1366547930)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 175.2058765888214 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 14:46:32.488221
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/14/46/image_16062025_14_46_35_9773.jpg', 2), ('/home/nano/Desktop/images/16062025/14/46/image_16062025_14_46_25_9749.jpg', 2), ('/home/nano/Desktop/images/16062025/14/46/image_16062025_14_46_15_9750.jpg', 2), ('/home/nano/Desktop/images/16062025/14/45/image_16062025_14_46_05_10780.jpg', 2), ('/home/nano/Desktop/images/16062025/14/45/image_16062025_14_45_54_9772.jpg', 2), ('/home/nano/Desktop/images/16062025/14/45/image_16062025_14_45_45_9748.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/14/46/image_16062025_14_46_35_9773.jpg', '/home/nano/Desktop/images/16062025/14/46/image_16062025_14_46_25_9749.jpg', '/home/nano/Desktop/images/16062025/14/46/image_16062025_14_46_15_9750.jpg', '/home/nano/Desktop/images/16062025/14/45/image_16062025_14_46_05_10780.jpg', '/home/nano/Desktop/images/16062025/14/45/image_16062025_14_45_54_9772.jpg', '/home/nano/Desktop/images/16062025/14/45/image_16062025_14_45_45_9748.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/14/46/image_16062025_14_46_35_9773.jpg
/home/nano/Desktop/images/16062025/14/46/image_16062025_14_46_25_9749.jpg
/home/nano/Desktop/images/16062025/14/46/image_16062025_14_46_15_9750.jpg
/home/nano/Desktop/images/16062025/14/45/image_16062025_14_46_05_10780.jpg
/home/nano/Desktop/images/16062025/14/45/image_16062025_14_45_54_9772.jpg
/home/nano/Desktop/images/16062025/14/45/image_16062025_14_45_45_9748.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366548120","1366548071","1366548107","1366548112","1366548093","1366548084"],"photo_ids_order":["1366548071","1366548084","1366548093","1366548107","1366548112","1366548120"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/679b78ed07895d91e1ccd5e08e950c39.jpg","text":"TemporaryFile(/tmp/multipartBody2595284763445525735asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078061870,"filename":"image_16062025_14_45_45_9748.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4159e0efd59c31e1c2ea1df543d04cf1.jpg","text":"TemporaryFile(/tmp/multipartBody2169354488093821388asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078061870,"filename":"image_16062025_14_46_35_9773.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d1a63c8ca6968cb95b397f240964261c.jpg","text":"TemporaryFile(/tmp/multipartBody2663660681096091270asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078061870,"filename":"image_16062025_14_46_05_10780.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b708eb72fb55dc55e6fb83ebc54311c2.jpg","text":"TemporaryFile(/tmp/multipartBody552703830963215197asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078061870,"filename":"image_16062025_14_45_54_9772.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ffb1310f2b57f8a60ab610d516b5a062.jpg","text":"TemporaryFile(/tmp/multipartBody2234835282909171395asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078061870,"filename":"image_16062025_14_46_15_9750.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/67f8aa69e2e57794cdf2cbbd58fcc903.jpg","text":"TemporaryFile(/tmp/multipartBody3264762110127210343asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078061870,"filename":"image_16062025_14_46_25_9749.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366548093","file1":"1366548084","file0":"1366548071","file4":"1366548112","file5":"1366548120","file3":"1366548107"},"map_files_photo_id_array":[{"photo_id":"1366548120","filename":"file5"},{"photo_id":"1366548093","filename":"file2"},{"photo_id":"1366548112","filename":"file4"},{"photo_id":"1366548084","filename":"file1"},{"photo_id":"1366548071","filename":"file0"},{"photo_id":"1366548107","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366548120":["hashtag1","hashtag2"]},{"1366548071":["hashtag1","hashtag2"]},{"1366548107":["hashtag1","hashtag2"]},{"1366548112":["hashtag1","hashtag2"]},{"1366548093":["hashtag1","hashtag2"]},{"1366548084":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366548120, 1366548071, 1366548107, 1366548112, 1366548093, 1366548084)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 194.0968201160431 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 14:50:02.895519
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/14/49/image_16062025_14_49_45_9745.jpg', 2), ('/home/nano/Desktop/images/16062025/14/49/image_16062025_14_49_35_10759.jpg', 2), ('/home/nano/Desktop/images/16062025/14/49/image_16062025_14_49_24_9759.jpg', 2), ('/home/nano/Desktop/images/16062025/14/49/image_16062025_14_49_15_9782.jpg', 2), ('/home/nano/Desktop/images/16062025/14/48/image_16062025_14_49_05_9761.jpg', 2), ('/home/nano/Desktop/images/16062025/14/48/image_16062025_14_48_55_9748.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/14/49/image_16062025_14_49_45_9745.jpg', '/home/nano/Desktop/images/16062025/14/49/image_16062025_14_49_35_10759.jpg', '/home/nano/Desktop/images/16062025/14/49/image_16062025_14_49_24_9759.jpg', '/home/nano/Desktop/images/16062025/14/49/image_16062025_14_49_15_9782.jpg', '/home/nano/Desktop/images/16062025/14/48/image_16062025_14_49_05_9761.jpg', '/home/nano/Desktop/images/16062025/14/48/image_16062025_14_48_55_9748.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/14/49/image_16062025_14_49_45_9745.jpg
/home/nano/Desktop/images/16062025/14/49/image_16062025_14_49_35_10759.jpg
/home/nano/Desktop/images/16062025/14/49/image_16062025_14_49_24_9759.jpg
/home/nano/Desktop/images/16062025/14/49/image_16062025_14_49_15_9782.jpg
/home/nano/Desktop/images/16062025/14/48/image_16062025_14_49_05_9761.jpg
/home/nano/Desktop/images/16062025/14/48/image_16062025_14_48_55_9748.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366548165","1366548188","1366548176","1366548155","1366548203","1366548180"],"photo_ids_order":["1366548155","1366548165","1366548176","1366548180","1366548188","1366548203"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ff126289d260bbd3c3353737ada1950d.jpg","text":"TemporaryFile(/tmp/multipartBody2453695610651529739asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078279768,"filename":"image_16062025_14_49_35_10759.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9762cb9d7ea33e73b09c39a3aef6e86e.jpg","text":"TemporaryFile(/tmp/multipartBody4610232500948092180asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078279768,"filename":"image_16062025_14_49_05_9761.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4d6a6dde19f57aea1ffea89c8494b000.jpg","text":"TemporaryFile(/tmp/multipartBody6549887219324518359asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078279768,"filename":"image_16062025_14_49_24_9759.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/82f28e7996c8cb13316bbd38194a4dc4.jpg","text":"TemporaryFile(/tmp/multipartBody5524735665437832121asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078279768,"filename":"image_16062025_14_49_45_9745.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e1d27a7f8e0379262d607abfbc47aaea.jpg","text":"TemporaryFile(/tmp/multipartBody3839986597212691837asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078279768,"filename":"image_16062025_14_48_55_9748.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/50f89334604baf692535691edde980c3.jpg","text":"TemporaryFile(/tmp/multipartBody6108143689210745884asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078279768,"filename":"image_16062025_14_49_15_9782.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366548176","file1":"1366548165","file0":"1366548155","file4":"1366548188","file5":"1366548203","file3":"1366548180"},"map_files_photo_id_array":[{"photo_id":"1366548203","filename":"file5"},{"photo_id":"1366548176","filename":"file2"},{"photo_id":"1366548188","filename":"file4"},{"photo_id":"1366548165","filename":"file1"},{"photo_id":"1366548155","filename":"file0"},{"photo_id":"1366548180","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366548165":["hashtag1","hashtag2"]},{"1366548188":["hashtag1","hashtag2"]},{"1366548176":["hashtag1","hashtag2"]},{"1366548155":["hashtag1","hashtag2"]},{"1366548203":["hashtag1","hashtag2"]},{"1366548180":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366548165, 1366548188, 1366548176, 1366548155, 1366548203, 1366548180)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 121.21040606498718 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 14:52:17.364568
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/14/52/image_16062025_14_52_45_9749.jpg', 2), ('/home/nano/Desktop/images/16062025/14/52/image_16062025_14_52_35_9747.jpg', 2), ('/home/nano/Desktop/images/16062025/14/52/image_16062025_14_52_25_9741.jpg', 2), ('/home/nano/Desktop/images/16062025/14/52/image_16062025_14_52_15_10780.jpg', 2), ('/home/nano/Desktop/images/16062025/14/51/image_16062025_14_52_05_9756.jpg', 2), ('/home/nano/Desktop/images/16062025/14/51/image_16062025_14_51_55_9744.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/14/52/image_16062025_14_52_45_9749.jpg', '/home/nano/Desktop/images/16062025/14/52/image_16062025_14_52_35_9747.jpg', '/home/nano/Desktop/images/16062025/14/52/image_16062025_14_52_25_9741.jpg', '/home/nano/Desktop/images/16062025/14/52/image_16062025_14_52_15_10780.jpg', '/home/nano/Desktop/images/16062025/14/51/image_16062025_14_52_05_9756.jpg', '/home/nano/Desktop/images/16062025/14/51/image_16062025_14_51_55_9744.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/14/52/image_16062025_14_52_45_9749.jpg
/home/nano/Desktop/images/16062025/14/52/image_16062025_14_52_35_9747.jpg
/home/nano/Desktop/images/16062025/14/52/image_16062025_14_52_25_9741.jpg
/home/nano/Desktop/images/16062025/14/52/image_16062025_14_52_15_10780.jpg
/home/nano/Desktop/images/16062025/14/51/image_16062025_14_52_05_9756.jpg
/home/nano/Desktop/images/16062025/14/51/image_16062025_14_51_55_9744.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366548281","1366548260","1366548268","1366548271","1366548253","1366548285"],"photo_ids_order":["1366548253","1366548260","1366548268","1366548271","1366548281","1366548285"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/25ba5728baa8c901503cfab7e68c1ac3.jpg","text":"TemporaryFile(/tmp/multipartBody5997467169930667816asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078407787,"filename":"image_16062025_14_52_05_9756.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9563bf085474c618526308b39f519aaf.jpg","text":"TemporaryFile(/tmp/multipartBody5539621056819479265asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078407787,"filename":"image_16062025_14_52_35_9747.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f02657fc8c697a083bf50a3d3db69eaa.jpg","text":"TemporaryFile(/tmp/multipartBody974018881492861587asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078407787,"filename":"image_16062025_14_52_25_9741.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/85fc356ad07e907c23ae924159cdfff4.jpg","text":"TemporaryFile(/tmp/multipartBody6683142103794619606asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078407787,"filename":"image_16062025_14_52_15_10780.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b89a64c2d4a964fc47e5a479e3aaee9a.jpg","text":"TemporaryFile(/tmp/multipartBody7401138400911075986asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078407787,"filename":"image_16062025_14_52_45_9749.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d4718252d12e46da123b911a1b9d670b.jpg","text":"TemporaryFile(/tmp/multipartBody9138431889517640225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078407787,"filename":"image_16062025_14_51_55_9744.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366548268","file1":"1366548260","file0":"1366548253","file4":"1366548281","file5":"1366548285","file3":"1366548271"},"map_files_photo_id_array":[{"photo_id":"1366548285","filename":"file5"},{"photo_id":"1366548268","filename":"file2"},{"photo_id":"1366548281","filename":"file4"},{"photo_id":"1366548260","filename":"file1"},{"photo_id":"1366548253","filename":"file0"},{"photo_id":"1366548271","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366548281":["hashtag1","hashtag2"]},{"1366548260":["hashtag1","hashtag2"]},{"1366548268":["hashtag1","hashtag2"]},{"1366548271":["hashtag1","hashtag2"]},{"1366548253":["hashtag1","hashtag2"]},{"1366548285":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366548281, 1366548260, 1366548268, 1366548271, 1366548253, 1366548285)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 155.73922300338745 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 14:55:03.462200
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/14/54/image_16062025_14_54_45_9746.jpg', 2), ('/home/nano/Desktop/images/16062025/14/54/image_16062025_14_54_35_9743.jpg', 2), ('/home/nano/Desktop/images/16062025/14/54/image_16062025_14_54_25_9750.jpg', 2), ('/home/nano/Desktop/images/16062025/14/54/image_16062025_14_54_15_10789.jpg', 2), ('/home/nano/Desktop/images/16062025/14/53/image_16062025_14_54_05_9746.jpg', 2), ('/home/nano/Desktop/images/16062025/14/53/image_16062025_14_53_55_9743.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/14/54/image_16062025_14_54_45_9746.jpg', '/home/nano/Desktop/images/16062025/14/54/image_16062025_14_54_35_9743.jpg', '/home/nano/Desktop/images/16062025/14/54/image_16062025_14_54_25_9750.jpg', '/home/nano/Desktop/images/16062025/14/54/image_16062025_14_54_15_10789.jpg', '/home/nano/Desktop/images/16062025/14/53/image_16062025_14_54_05_9746.jpg', '/home/nano/Desktop/images/16062025/14/53/image_16062025_14_53_55_9743.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/14/54/image_16062025_14_54_45_9746.jpg
/home/nano/Desktop/images/16062025/14/54/image_16062025_14_54_35_9743.jpg
/home/nano/Desktop/images/16062025/14/54/image_16062025_14_54_25_9750.jpg
/home/nano/Desktop/images/16062025/14/54/image_16062025_14_54_15_10789.jpg
/home/nano/Desktop/images/16062025/14/53/image_16062025_14_54_05_9746.jpg
/home/nano/Desktop/images/16062025/14/53/image_16062025_14_53_55_9743.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 14:58:02.404918
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/14/57/image_16062025_14_57_45_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/14/57/image_16062025_14_57_35_10671.jpg', 2), ('/home/nano/Desktop/images/16062025/14/57/image_16062025_14_57_24_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/14/57/image_16062025_14_57_15_9736.jpg', 2), ('/home/nano/Desktop/images/16062025/14/56/image_16062025_14_57_05_9739.jpg', 2), ('/home/nano/Desktop/images/16062025/14/56/image_16062025_14_56_55_10753.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/14/57/image_16062025_14_57_45_9620.jpg', '/home/nano/Desktop/images/16062025/14/57/image_16062025_14_57_35_10671.jpg', '/home/nano/Desktop/images/16062025/14/57/image_16062025_14_57_24_9621.jpg', '/home/nano/Desktop/images/16062025/14/57/image_16062025_14_57_15_9736.jpg', '/home/nano/Desktop/images/16062025/14/56/image_16062025_14_57_05_9739.jpg', '/home/nano/Desktop/images/16062025/14/56/image_16062025_14_56_55_10753.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/14/57/image_16062025_14_57_45_9620.jpg
/home/nano/Desktop/images/16062025/14/57/image_16062025_14_57_35_10671.jpg
/home/nano/Desktop/images/16062025/14/57/image_16062025_14_57_24_9621.jpg
/home/nano/Desktop/images/16062025/14/57/image_16062025_14_57_15_9736.jpg
/home/nano/Desktop/images/16062025/14/56/image_16062025_14_57_05_9739.jpg
/home/nano/Desktop/images/16062025/14/56/image_16062025_14_56_55_10753.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366548522","1366548444","1366548458","1366548496","1366548481","1366548531"],"photo_ids_order":["1366548444","1366548458","1366548481","1366548496","1366548522","1366548531"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c4bc0c6a1b15cac26ef397a10b8680b6.jpg","text":"TemporaryFile(/tmp/multipartBody1001043012920864441asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078746513,"filename":"image_16062025_14_57_05_9739.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dd03b13cf61f48a12033cd3f6cec8c95.jpg","text":"TemporaryFile(/tmp/multipartBody414083612464688037asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078746513,"filename":"image_16062025_14_57_45_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5e80fbfce9410ff1f43e92b9ff4d2a30.jpg","text":"TemporaryFile(/tmp/multipartBody5659461209360971749asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078746513,"filename":"image_16062025_14_57_35_10671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/67fc89733a31da0a8c13251cdd37c137.jpg","text":"TemporaryFile(/tmp/multipartBody1232675268446292144asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078746513,"filename":"image_16062025_14_57_15_9736.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e5e958fb7bf32e8ef754f52c4ea77fbe.jpg","text":"TemporaryFile(/tmp/multipartBody1420789042359662397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078746513,"filename":"image_16062025_14_57_24_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/30cc83b4bc658b2cbcacf0d76749acbe.jpg","text":"TemporaryFile(/tmp/multipartBody3963981621407540228asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078746513,"filename":"image_16062025_14_56_55_10753.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366548481","file1":"1366548458","file0":"1366548444","file4":"1366548522","file5":"1366548531","file3":"1366548496"},"map_files_photo_id_array":[{"photo_id":"1366548531","filename":"file5"},{"photo_id":"1366548481","filename":"file2"},{"photo_id":"1366548522","filename":"file4"},{"photo_id":"1366548458","filename":"file1"},{"photo_id":"1366548444","filename":"file0"},{"photo_id":"1366548496","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366548522":["hashtag1","hashtag2"]},{"1366548444":["hashtag1","hashtag2"]},{"1366548458":["hashtag1","hashtag2"]},{"1366548496":["hashtag1","hashtag2"]},{"1366548481":["hashtag1","hashtag2"]},{"1366548531":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366548522, 1366548444, 1366548458, 1366548496, 1366548481, 1366548531)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 164.61204648017883 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 15:00:47.759014
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/15/00/image_16062025_15_00_44_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/15/00/image_16062025_15_00_35_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/15/00/image_16062025_15_00_25_10614.jpg', 2), ('/home/nano/Desktop/images/16062025/15/00/image_16062025_15_00_15_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/14/59/image_16062025_15_00_05_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/14/59/image_16062025_14_59_55_10657.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/15/00/image_16062025_15_00_44_9609.jpg', '/home/nano/Desktop/images/16062025/15/00/image_16062025_15_00_35_9601.jpg', '/home/nano/Desktop/images/16062025/15/00/image_16062025_15_00_25_10614.jpg', '/home/nano/Desktop/images/16062025/15/00/image_16062025_15_00_15_9645.jpg', '/home/nano/Desktop/images/16062025/14/59/image_16062025_15_00_05_9630.jpg', '/home/nano/Desktop/images/16062025/14/59/image_16062025_14_59_55_10657.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/15/00/image_16062025_15_00_44_9609.jpg
/home/nano/Desktop/images/16062025/15/00/image_16062025_15_00_35_9601.jpg
/home/nano/Desktop/images/16062025/15/00/image_16062025_15_00_25_10614.jpg
/home/nano/Desktop/images/16062025/15/00/image_16062025_15_00_15_9645.jpg
/home/nano/Desktop/images/16062025/14/59/image_16062025_15_00_05_9630.jpg
/home/nano/Desktop/images/16062025/14/59/image_16062025_14_59_55_10657.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366548549","1366548606","1366548586","1366548595","1366548577","1366548570"],"photo_ids_order":["1366548549","1366548570","1366548577","1366548586","1366548595","1366548606"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/89b8f09bb5d31445529abe074c5a4d62.jpg","text":"TemporaryFile(/tmp/multipartBody2957421478513703362asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078911370,"filename":"image_16062025_15_00_44_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c8d21a891248c1e0a46c0c46069eece4.jpg","text":"TemporaryFile(/tmp/multipartBody3430968374160107707asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078911370,"filename":"image_16062025_14_59_55_10657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c529a19c345eb386274cfa28a905f7af.jpg","text":"TemporaryFile(/tmp/multipartBody9155727089598882665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078911370,"filename":"image_16062025_15_00_15_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/641cc4330de288c12ce29b48266a007b.jpg","text":"TemporaryFile(/tmp/multipartBody4319557782534285893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078911370,"filename":"image_16062025_15_00_05_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/51ec33978e01f7d3e1e300b22997dec6.jpg","text":"TemporaryFile(/tmp/multipartBody5942424432318387417asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078911370,"filename":"image_16062025_15_00_25_10614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e9966621255c22104354d036838afae7.jpg","text":"TemporaryFile(/tmp/multipartBody2841781058103641766asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750078911370,"filename":"image_16062025_15_00_35_9601.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366548577","file1":"1366548570","file0":"1366548549","file4":"1366548595","file5":"1366548606","file3":"1366548586"},"map_files_photo_id_array":[{"photo_id":"1366548606","filename":"file5"},{"photo_id":"1366548577","filename":"file2"},{"photo_id":"1366548595","filename":"file4"},{"photo_id":"1366548570","filename":"file1"},{"photo_id":"1366548549","filename":"file0"},{"photo_id":"1366548586","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366548549":["hashtag1","hashtag2"]},{"1366548606":["hashtag1","hashtag2"]},{"1366548586":["hashtag1","hashtag2"]},{"1366548595":["hashtag1","hashtag2"]},{"1366548577":["hashtag1","hashtag2"]},{"1366548570":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366548549, 1366548606, 1366548586, 1366548595, 1366548577, 1366548570)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 132.4131100177765 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 15:03:02.761632
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/15/02/image_16062025_15_02_45_9605.jpg', 2), ('/home/nano/Desktop/images/16062025/15/02/image_16062025_15_02_35_10613.jpg', 2), ('/home/nano/Desktop/images/16062025/15/02/image_16062025_15_02_25_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/15/02/image_16062025_15_02_15_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/15/01/image_16062025_15_02_05_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/15/01/image_16062025_15_01_55_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/15/02/image_16062025_15_02_45_9605.jpg', '/home/nano/Desktop/images/16062025/15/02/image_16062025_15_02_35_10613.jpg', '/home/nano/Desktop/images/16062025/15/02/image_16062025_15_02_25_9603.jpg', '/home/nano/Desktop/images/16062025/15/02/image_16062025_15_02_15_9612.jpg', '/home/nano/Desktop/images/16062025/15/01/image_16062025_15_02_05_10636.jpg', '/home/nano/Desktop/images/16062025/15/01/image_16062025_15_01_55_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/15/02/image_16062025_15_02_45_9605.jpg
/home/nano/Desktop/images/16062025/15/02/image_16062025_15_02_35_10613.jpg
/home/nano/Desktop/images/16062025/15/02/image_16062025_15_02_25_9603.jpg
/home/nano/Desktop/images/16062025/15/02/image_16062025_15_02_15_9612.jpg
/home/nano/Desktop/images/16062025/15/01/image_16062025_15_02_05_10636.jpg
/home/nano/Desktop/images/16062025/15/01/image_16062025_15_01_55_9610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366548642","1366548635","1366548650","1366548623","1366548657","1366548630"],"photo_ids_order":["1366548623","1366548630","1366548635","1366548642","1366548650","1366548657"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/52e648617646b977e6c91b9514e8428c.jpg","text":"TemporaryFile(/tmp/multipartBody5013800923395975486asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079050383,"filename":"image_16062025_15_02_15_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/55bf6f39a38d8616dee401e24283f4cd.jpg","text":"TemporaryFile(/tmp/multipartBody7856070831383728808asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079050383,"filename":"image_16062025_15_02_25_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fa4faab4d9d3aa819ae6a0b7e18258ab.jpg","text":"TemporaryFile(/tmp/multipartBody7869124866088429138asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079050383,"filename":"image_16062025_15_02_05_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f0f941425af13ab18b3345b429668aa4.jpg","text":"TemporaryFile(/tmp/multipartBody2022361485866289046asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079050383,"filename":"image_16062025_15_02_45_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/04ebbf86dbb1b3fd056bb430d3544c55.jpg","text":"TemporaryFile(/tmp/multipartBody9082319713465353044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079050383,"filename":"image_16062025_15_01_55_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a0fb038d5168823c0d9904a3e53c9623.jpg","text":"TemporaryFile(/tmp/multipartBody7718905899387657356asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079050383,"filename":"image_16062025_15_02_35_10613.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366548635","file1":"1366548630","file0":"1366548623","file4":"1366548650","file5":"1366548657","file3":"1366548642"},"map_files_photo_id_array":[{"photo_id":"1366548657","filename":"file5"},{"photo_id":"1366548635","filename":"file2"},{"photo_id":"1366548650","filename":"file4"},{"photo_id":"1366548630","filename":"file1"},{"photo_id":"1366548623","filename":"file0"},{"photo_id":"1366548642","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366548642":["hashtag1","hashtag2"]},{"1366548635":["hashtag1","hashtag2"]},{"1366548650":["hashtag1","hashtag2"]},{"1366548623":["hashtag1","hashtag2"]},{"1366548657":["hashtag1","hashtag2"]},{"1366548630":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366548642, 1366548635, 1366548650, 1366548623, 1366548657, 1366548630)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 126.79612588882446 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 15:05:17.292968
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/15/05/image_16062025_15_05_45_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/15/05/image_16062025_15_05_35_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/15/05/image_16062025_15_05_25_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/15/05/image_16062025_15_05_15_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/15/04/image_16062025_15_05_04_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/15/04/image_16062025_15_04_55_9605.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/15/05/image_16062025_15_05_45_9604.jpg', '/home/nano/Desktop/images/16062025/15/05/image_16062025_15_05_35_10618.jpg', '/home/nano/Desktop/images/16062025/15/05/image_16062025_15_05_25_9622.jpg', '/home/nano/Desktop/images/16062025/15/05/image_16062025_15_05_15_10650.jpg', '/home/nano/Desktop/images/16062025/15/04/image_16062025_15_05_04_9610.jpg', '/home/nano/Desktop/images/16062025/15/04/image_16062025_15_04_55_9605.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/15/05/image_16062025_15_05_45_9604.jpg
/home/nano/Desktop/images/16062025/15/05/image_16062025_15_05_35_10618.jpg
/home/nano/Desktop/images/16062025/15/05/image_16062025_15_05_25_9622.jpg
/home/nano/Desktop/images/16062025/15/05/image_16062025_15_05_15_10650.jpg
/home/nano/Desktop/images/16062025/15/04/image_16062025_15_05_04_9610.jpg
/home/nano/Desktop/images/16062025/15/04/image_16062025_15_04_55_9605.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366549198","1366548683","1366548775","1366549444","1366548922","1366549020"],"photo_ids_order":["1366548683","1366548775","1366548922","1366549020","1366549198","1366549444"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d8cc0599a8d40cc4058e4e7e5cd7c8ca.jpg","text":"TemporaryFile(/tmp/multipartBody6754147350980731212asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079179228,"filename":"image_16062025_15_05_04_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5a21cd27f4fc9bb68ac528e4738c36e5.jpg","text":"TemporaryFile(/tmp/multipartBody5457273094233687137asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079179228,"filename":"image_16062025_15_05_45_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d2e7aca62c083c748d0df5f944d2fb6d.jpg","text":"TemporaryFile(/tmp/multipartBody7277340105465662592asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079179228,"filename":"image_16062025_15_05_35_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1df75b6739b408b3f06076a81d72126a.jpg","text":"TemporaryFile(/tmp/multipartBody1668853348845632873asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079179228,"filename":"image_16062025_15_04_55_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/069c4c7976cecbed5b850b1f3bc740b4.jpg","text":"TemporaryFile(/tmp/multipartBody6455993082353628604asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079179228,"filename":"image_16062025_15_05_25_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/29c54bda69f0521894a13192a76732a2.jpg","text":"TemporaryFile(/tmp/multipartBody1446322465358566056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079179228,"filename":"image_16062025_15_05_15_10650.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366548922","file1":"1366548775","file0":"1366548683","file4":"1366549198","file5":"1366549444","file3":"1366549020"},"map_files_photo_id_array":[{"photo_id":"1366549444","filename":"file5"},{"photo_id":"1366548922","filename":"file2"},{"photo_id":"1366549198","filename":"file4"},{"photo_id":"1366548775","filename":"file1"},{"photo_id":"1366548683","filename":"file0"},{"photo_id":"1366549020","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366549198":["hashtag1","hashtag2"]},{"1366548683":["hashtag1","hashtag2"]},{"1366548775":["hashtag1","hashtag2"]},{"1366549444":["hashtag1","hashtag2"]},{"1366548922":["hashtag1","hashtag2"]},{"1366549020":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366549198, 1366548683, 1366548775, 1366549444, 1366548922, 1366549020)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 144.14521479606628 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 15:07:47.608709
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/15/07/image_16062025_15_07_45_10614.jpg', 2), ('/home/nano/Desktop/images/16062025/15/07/image_16062025_15_07_35_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/15/07/image_16062025_15_07_25_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/15/07/image_16062025_15_07_15_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/15/06/image_16062025_15_07_05_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/15/06/image_16062025_15_06_55_10634.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/15/07/image_16062025_15_07_45_10614.jpg', '/home/nano/Desktop/images/16062025/15/07/image_16062025_15_07_35_9607.jpg', '/home/nano/Desktop/images/16062025/15/07/image_16062025_15_07_25_10608.jpg', '/home/nano/Desktop/images/16062025/15/07/image_16062025_15_07_15_9619.jpg', '/home/nano/Desktop/images/16062025/15/06/image_16062025_15_07_05_9629.jpg', '/home/nano/Desktop/images/16062025/15/06/image_16062025_15_06_55_10634.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/15/07/image_16062025_15_07_45_10614.jpg
/home/nano/Desktop/images/16062025/15/07/image_16062025_15_07_35_9607.jpg
/home/nano/Desktop/images/16062025/15/07/image_16062025_15_07_25_10608.jpg
/home/nano/Desktop/images/16062025/15/07/image_16062025_15_07_15_9619.jpg
/home/nano/Desktop/images/16062025/15/06/image_16062025_15_07_05_9629.jpg
/home/nano/Desktop/images/16062025/15/06/image_16062025_15_06_55_10634.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366550025","1366549703","1366550147","1366549843","1366550218","1366549929"],"photo_ids_order":["1366549703","1366549843","1366549929","1366550025","1366550147","1366550218"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6a8f79d81d0cfbbd2daf92766b69ea6a.jpg","text":"TemporaryFile(/tmp/multipartBody5716435028513295373asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079331320,"filename":"image_16062025_15_07_15_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/888e58dea892309687d72201c8f8cc3a.jpg","text":"TemporaryFile(/tmp/multipartBody1550021365261020520asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079331320,"filename":"image_16062025_15_07_45_10614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ab7879fc0b2bec3e41c82c66f7df2277.jpg","text":"TemporaryFile(/tmp/multipartBody4542867183650274669asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079331320,"filename":"image_16062025_15_07_05_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3da10077e0925552c56c468dc983a2e4.jpg","text":"TemporaryFile(/tmp/multipartBody3144357377273297136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079331320,"filename":"image_16062025_15_07_35_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/74f67f04f6dd916dd9b1ef4b49cebc35.jpg","text":"TemporaryFile(/tmp/multipartBody6784460537310930418asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079331320,"filename":"image_16062025_15_06_55_10634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cf3487d7dd5fb270303c1cc9ebc48735.jpg","text":"TemporaryFile(/tmp/multipartBody994363667652110386asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079331320,"filename":"image_16062025_15_07_25_10608.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366549929","file1":"1366549843","file0":"1366549703","file4":"1366550147","file5":"1366550218","file3":"1366550025"},"map_files_photo_id_array":[{"photo_id":"1366550218","filename":"file5"},{"photo_id":"1366549929","filename":"file2"},{"photo_id":"1366550147","filename":"file4"},{"photo_id":"1366549843","filename":"file1"},{"photo_id":"1366549703","filename":"file0"},{"photo_id":"1366550025","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366550025":["hashtag1","hashtag2"]},{"1366549703":["hashtag1","hashtag2"]},{"1366550147":["hashtag1","hashtag2"]},{"1366549843":["hashtag1","hashtag2"]},{"1366550218":["hashtag1","hashtag2"]},{"1366549929":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366550025, 1366549703, 1366550147, 1366549843, 1366550218, 1366549929)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 94.11735367774963 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 15:09:31.809313
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/15/09/image_16062025_15_09_45_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/15/09/image_16062025_15_09_35_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/15/09/image_16062025_15_09_25_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/15/09/image_16062025_15_09_15_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/15/08/image_16062025_15_09_05_10620.jpg', 2), ('/home/nano/Desktop/images/16062025/15/08/image_16062025_15_08_55_9624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/15/09/image_16062025_15_09_45_9617.jpg', '/home/nano/Desktop/images/16062025/15/09/image_16062025_15_09_35_10618.jpg', '/home/nano/Desktop/images/16062025/15/09/image_16062025_15_09_25_9607.jpg', '/home/nano/Desktop/images/16062025/15/09/image_16062025_15_09_15_9634.jpg', '/home/nano/Desktop/images/16062025/15/08/image_16062025_15_09_05_10620.jpg', '/home/nano/Desktop/images/16062025/15/08/image_16062025_15_08_55_9624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/15/09/image_16062025_15_09_45_9617.jpg
/home/nano/Desktop/images/16062025/15/09/image_16062025_15_09_35_10618.jpg
/home/nano/Desktop/images/16062025/15/09/image_16062025_15_09_25_9607.jpg
/home/nano/Desktop/images/16062025/15/09/image_16062025_15_09_15_9634.jpg
/home/nano/Desktop/images/16062025/15/08/image_16062025_15_09_05_10620.jpg
/home/nano/Desktop/images/16062025/15/08/image_16062025_15_08_55_9624.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366551203","1366551379","1366550822","1366551106","1366550422","1366550592"],"photo_ids_order":["1366550422","1366550592","1366550822","1366551106","1366551203","1366551379"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/173bf446443a0201f200802f2eb1f04c.jpg","text":"TemporaryFile(/tmp/multipartBody2462969146545261280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079439475,"filename":"image_16062025_15_09_05_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4ed542342c006e7f68296457a6249cef.jpg","text":"TemporaryFile(/tmp/multipartBody7419984845278473989asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079439475,"filename":"image_16062025_15_08_55_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f7cd2097335565a2c42b854853a03b7a.jpg","text":"TemporaryFile(/tmp/multipartBody7156063094128077785asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079439475,"filename":"image_16062025_15_09_25_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a24b7488c9a58baca1f563a5b2496645.jpg","text":"TemporaryFile(/tmp/multipartBody6538107591823105271asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079439475,"filename":"image_16062025_15_09_15_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0cf862bad81f56852c3205ada9311341.jpg","text":"TemporaryFile(/tmp/multipartBody2009707696006922103asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079439475,"filename":"image_16062025_15_09_45_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bb1858452a62441a476c465f3165e72a.jpg","text":"TemporaryFile(/tmp/multipartBody6833485451913453254asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079439475,"filename":"image_16062025_15_09_35_10618.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366550822","file1":"1366550592","file0":"1366550422","file4":"1366551203","file5":"1366551379","file3":"1366551106"},"map_files_photo_id_array":[{"photo_id":"1366551379","filename":"file5"},{"photo_id":"1366550822","filename":"file2"},{"photo_id":"1366551203","filename":"file4"},{"photo_id":"1366550592","filename":"file1"},{"photo_id":"1366550422","filename":"file0"},{"photo_id":"1366551106","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366551203":["hashtag1","hashtag2"]},{"1366551379":["hashtag1","hashtag2"]},{"1366550822":["hashtag1","hashtag2"]},{"1366551106":["hashtag1","hashtag2"]},{"1366550422":["hashtag1","hashtag2"]},{"1366550592":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366551203, 1366551379, 1366550822, 1366551106, 1366550422, 1366550592)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 121.63278007507324 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 15:11:47.110767
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/15/11/image_16062025_15_11_45_10615.jpg', 2), ('/home/nano/Desktop/images/16062025/15/11/image_16062025_15_11_35_9606.jpg', 2), ('/home/nano/Desktop/images/16062025/15/11/image_16062025_15_11_25_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/15/11/image_16062025_15_11_14_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/15/10/image_16062025_15_11_05_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/15/10/image_16062025_15_10_55_10619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/15/11/image_16062025_15_11_45_10615.jpg', '/home/nano/Desktop/images/16062025/15/11/image_16062025_15_11_35_9606.jpg', '/home/nano/Desktop/images/16062025/15/11/image_16062025_15_11_25_10622.jpg', '/home/nano/Desktop/images/16062025/15/11/image_16062025_15_11_14_9614.jpg', '/home/nano/Desktop/images/16062025/15/10/image_16062025_15_11_05_9626.jpg', '/home/nano/Desktop/images/16062025/15/10/image_16062025_15_10_55_10619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/15/11/image_16062025_15_11_45_10615.jpg
/home/nano/Desktop/images/16062025/15/11/image_16062025_15_11_35_9606.jpg
/home/nano/Desktop/images/16062025/15/11/image_16062025_15_11_25_10622.jpg
/home/nano/Desktop/images/16062025/15/11/image_16062025_15_11_14_9614.jpg
/home/nano/Desktop/images/16062025/15/10/image_16062025_15_11_05_9626.jpg
/home/nano/Desktop/images/16062025/15/10/image_16062025_15_10_55_10619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366551662","1366551955","1366551793","1366551853","1366551742","1366551672"],"photo_ids_order":["1366551662","1366551672","1366551742","1366551793","1366551853","1366551955"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/436888ba4d71476bc673dfb14928c4a3.jpg","text":"TemporaryFile(/tmp/multipartBody4846462338981932398asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079570588,"filename":"image_16062025_15_11_45_10615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ddbc971a3b7c7f846ce4a9ab800d7164.jpg","text":"TemporaryFile(/tmp/multipartBody8239026941188140363asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079570588,"filename":"image_16062025_15_10_55_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/877fe850c5053537562263f748552402.jpg","text":"TemporaryFile(/tmp/multipartBody5996124142918653754asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079570588,"filename":"image_16062025_15_11_14_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7365f03547afcd5c4c10b4e0c6f2bc75.jpg","text":"TemporaryFile(/tmp/multipartBody7851145687912802342asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079570588,"filename":"image_16062025_15_11_05_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e24ca3d9a8928196bb1b9cdecb555555.jpg","text":"TemporaryFile(/tmp/multipartBody5811697477193826158asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079570588,"filename":"image_16062025_15_11_25_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9866053d212378dfc6bfcd4dbf7ae13d.jpg","text":"TemporaryFile(/tmp/multipartBody4791404266031956946asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079570588,"filename":"image_16062025_15_11_35_9606.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366551742","file1":"1366551672","file0":"1366551662","file4":"1366551853","file5":"1366551955","file3":"1366551793"},"map_files_photo_id_array":[{"photo_id":"1366551955","filename":"file5"},{"photo_id":"1366551742","filename":"file2"},{"photo_id":"1366551853","filename":"file4"},{"photo_id":"1366551672","filename":"file1"},{"photo_id":"1366551662","filename":"file0"},{"photo_id":"1366551793","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366551662":["hashtag1","hashtag2"]},{"1366551955":["hashtag1","hashtag2"]},{"1366551793":["hashtag1","hashtag2"]},{"1366551853":["hashtag1","hashtag2"]},{"1366551742":["hashtag1","hashtag2"]},{"1366551672":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366551662, 1366551955, 1366551793, 1366551853, 1366551742, 1366551672)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 127.15964770317078 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 15:14:03.175094
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/15/13/image_16062025_15_13_45_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/15/13/image_16062025_15_13_35_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/15/13/image_16062025_15_13_25_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/15/13/image_16062025_15_13_15_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/15/12/image_16062025_15_13_05_10664.jpg', 2), ('/home/nano/Desktop/images/16062025/15/12/image_16062025_15_12_55_9657.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/15/13/image_16062025_15_13_45_9646.jpg', '/home/nano/Desktop/images/16062025/15/13/image_16062025_15_13_35_10640.jpg', '/home/nano/Desktop/images/16062025/15/13/image_16062025_15_13_25_9647.jpg', '/home/nano/Desktop/images/16062025/15/13/image_16062025_15_13_15_9657.jpg', '/home/nano/Desktop/images/16062025/15/12/image_16062025_15_13_05_10664.jpg', '/home/nano/Desktop/images/16062025/15/12/image_16062025_15_12_55_9657.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/15/13/image_16062025_15_13_45_9646.jpg
/home/nano/Desktop/images/16062025/15/13/image_16062025_15_13_35_10640.jpg
/home/nano/Desktop/images/16062025/15/13/image_16062025_15_13_25_9647.jpg
/home/nano/Desktop/images/16062025/15/13/image_16062025_15_13_15_9657.jpg
/home/nano/Desktop/images/16062025/15/12/image_16062025_15_13_05_10664.jpg
/home/nano/Desktop/images/16062025/15/12/image_16062025_15_12_55_9657.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366552546","1366552381","1366552554","1366552566","1366552512","1366552574"],"photo_ids_order":["1366552381","1366552512","1366552546","1366552554","1366552566","1366552574"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/291ea4b95d168fc0102b346329698f32.jpg","text":"TemporaryFile(/tmp/multipartBody2774427017797661871asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079711649,"filename":"image_16062025_15_13_25_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cbc9d4aa11bc516754f8fb0aa57be05b.jpg","text":"TemporaryFile(/tmp/multipartBody754515735089446033asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079711649,"filename":"image_16062025_15_13_45_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/627a039182a69c49d8b69e510d3467df.jpg","text":"TemporaryFile(/tmp/multipartBody1368766579783362293asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079711649,"filename":"image_16062025_15_13_15_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/06c878d77ab074745bf9ea0cd523aa3d.jpg","text":"TemporaryFile(/tmp/multipartBody2208296791058139503asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079711649,"filename":"image_16062025_15_13_05_10664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bc24d5202d83baeb4a6e72363b163ade.jpg","text":"TemporaryFile(/tmp/multipartBody8118673463744014018asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079711649,"filename":"image_16062025_15_13_35_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4bb37ed9d40aed593f5328c0d4fe7a09.jpg","text":"TemporaryFile(/tmp/multipartBody4925599918432101939asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079711649,"filename":"image_16062025_15_12_55_9657.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366552546","file1":"1366552512","file0":"1366552381","file4":"1366552566","file5":"1366552574","file3":"1366552554"},"map_files_photo_id_array":[{"photo_id":"1366552574","filename":"file5"},{"photo_id":"1366552546","filename":"file2"},{"photo_id":"1366552566","filename":"file4"},{"photo_id":"1366552512","filename":"file1"},{"photo_id":"1366552381","filename":"file0"},{"photo_id":"1366552554","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366552546":["hashtag1","hashtag2"]},{"1366552381":["hashtag1","hashtag2"]},{"1366552554":["hashtag1","hashtag2"]},{"1366552566":["hashtag1","hashtag2"]},{"1366552512":["hashtag1","hashtag2"]},{"1366552574":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366552546, 1366552381, 1366552554, 1366552566, 1366552512, 1366552574)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 93.4792468547821 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 15:15:47.539641
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/15/15/image_16062025_15_15_45_9705.jpg', 2), ('/home/nano/Desktop/images/16062025/15/15/image_16062025_15_15_35_10654.jpg', 2), ('/home/nano/Desktop/images/16062025/15/15/image_16062025_15_15_25_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/15/15/image_16062025_15_15_15_9734.jpg', 2), ('/home/nano/Desktop/images/16062025/15/14/image_16062025_15_15_05_10682.jpg', 2), ('/home/nano/Desktop/images/16062025/15/14/image_16062025_15_14_54_9640.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/15/15/image_16062025_15_15_45_9705.jpg', '/home/nano/Desktop/images/16062025/15/15/image_16062025_15_15_35_10654.jpg', '/home/nano/Desktop/images/16062025/15/15/image_16062025_15_15_25_9631.jpg', '/home/nano/Desktop/images/16062025/15/15/image_16062025_15_15_15_9734.jpg', '/home/nano/Desktop/images/16062025/15/14/image_16062025_15_15_05_10682.jpg', '/home/nano/Desktop/images/16062025/15/14/image_16062025_15_14_54_9640.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/15/15/image_16062025_15_15_45_9705.jpg
/home/nano/Desktop/images/16062025/15/15/image_16062025_15_15_35_10654.jpg
/home/nano/Desktop/images/16062025/15/15/image_16062025_15_15_25_9631.jpg
/home/nano/Desktop/images/16062025/15/15/image_16062025_15_15_15_9734.jpg
/home/nano/Desktop/images/16062025/15/14/image_16062025_15_15_05_10682.jpg
/home/nano/Desktop/images/16062025/15/14/image_16062025_15_14_54_9640.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366552823","1366552888","1366552882","1366553008","1366553028","1366552877"],"photo_ids_order":["1366552823","1366552877","1366552882","1366552888","1366553008","1366553028"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/55998d6c320f60202095f5ecb2748cc5.jpg","text":"TemporaryFile(/tmp/multipartBody8201838707947656671asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079811062,"filename":"image_16062025_15_15_45_9705.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ec6a8d330197a39e48482299cf093e2e.jpg","text":"TemporaryFile(/tmp/multipartBody8265067395327460526asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079811062,"filename":"image_16062025_15_15_15_9734.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d2f23de23ee568080eef54caeaf9710f.jpg","text":"TemporaryFile(/tmp/multipartBody5812225227644295842asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079811062,"filename":"image_16062025_15_15_25_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5558ab26cf1870c6c106ec16fe4318a4.jpg","text":"TemporaryFile(/tmp/multipartBody4335219244641885765asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079811062,"filename":"image_16062025_15_15_05_10682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cf81255d14ed704bc16cd4d26bcead6c.jpg","text":"TemporaryFile(/tmp/multipartBody4709852639838051347asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079811062,"filename":"image_16062025_15_14_54_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/78794dc145a818c1c5f1d6bc677a2837.jpg","text":"TemporaryFile(/tmp/multipartBody1933252909620435759asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079811062,"filename":"image_16062025_15_15_35_10654.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366552882","file1":"1366552877","file0":"1366552823","file4":"1366553008","file5":"1366553028","file3":"1366552888"},"map_files_photo_id_array":[{"photo_id":"1366553028","filename":"file5"},{"photo_id":"1366552882","filename":"file2"},{"photo_id":"1366553008","filename":"file4"},{"photo_id":"1366552877","filename":"file1"},{"photo_id":"1366552823","filename":"file0"},{"photo_id":"1366552888","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366552823":["hashtag1","hashtag2"]},{"1366552888":["hashtag1","hashtag2"]},{"1366552882":["hashtag1","hashtag2"]},{"1366553008":["hashtag1","hashtag2"]},{"1366553028":["hashtag1","hashtag2"]},{"1366552877":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366552823, 1366552888, 1366552882, 1366553008, 1366553028, 1366552877)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 95.02304196357727 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 15:17:31.853907
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/15/17/image_16062025_15_17_45_10681.jpg', 2), ('/home/nano/Desktop/images/16062025/15/17/image_16062025_15_17_35_9737.jpg', 2), ('/home/nano/Desktop/images/16062025/15/17/image_16062025_15_17_25_9672.jpg', 2), ('/home/nano/Desktop/images/16062025/15/17/image_16062025_15_17_15_9778.jpg', 2), ('/home/nano/Desktop/images/16062025/15/16/image_16062025_15_17_05_10789.jpg', 2), ('/home/nano/Desktop/images/16062025/15/16/image_16062025_15_16_55_9719.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/15/17/image_16062025_15_17_45_10681.jpg', '/home/nano/Desktop/images/16062025/15/17/image_16062025_15_17_35_9737.jpg', '/home/nano/Desktop/images/16062025/15/17/image_16062025_15_17_25_9672.jpg', '/home/nano/Desktop/images/16062025/15/17/image_16062025_15_17_15_9778.jpg', '/home/nano/Desktop/images/16062025/15/16/image_16062025_15_17_05_10789.jpg', '/home/nano/Desktop/images/16062025/15/16/image_16062025_15_16_55_9719.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/15/17/image_16062025_15_17_45_10681.jpg
/home/nano/Desktop/images/16062025/15/17/image_16062025_15_17_35_9737.jpg
/home/nano/Desktop/images/16062025/15/17/image_16062025_15_17_25_9672.jpg
/home/nano/Desktop/images/16062025/15/17/image_16062025_15_17_15_9778.jpg
/home/nano/Desktop/images/16062025/15/16/image_16062025_15_17_05_10789.jpg
/home/nano/Desktop/images/16062025/15/16/image_16062025_15_16_55_9719.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366553926","1366553209","1366553701","1366553685","1366553634","1366553447"],"photo_ids_order":["1366553209","1366553447","1366553634","1366553685","1366553701","1366553926"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f1b6979c0302c5fc26e9af1607229dd8.jpg","text":"TemporaryFile(/tmp/multipartBody3738993276372660902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079915380,"filename":"image_16062025_15_16_55_9719.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d599cca5c7c2a693d07b9b32627d134c.jpg","text":"TemporaryFile(/tmp/multipartBody3954838719487155393asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079915380,"filename":"image_16062025_15_17_45_10681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3eddffb5d24c4d9f25597aad1221539c.jpg","text":"TemporaryFile(/tmp/multipartBody1179628190760376255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079915380,"filename":"image_16062025_15_17_05_10789.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a089d938e6b67581807069f4a3007793.jpg","text":"TemporaryFile(/tmp/multipartBody975069518893759559asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079915380,"filename":"image_16062025_15_17_15_9778.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/13b5868eea4ed59139df201c0622147b.jpg","text":"TemporaryFile(/tmp/multipartBody3347055942187787223asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079915380,"filename":"image_16062025_15_17_25_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/57ccbba85f05770b5c29cf15a9a5cf0a.jpg","text":"TemporaryFile(/tmp/multipartBody2480442749892514243asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750079915380,"filename":"image_16062025_15_17_35_9737.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366553634","file1":"1366553447","file0":"1366553209","file4":"1366553701","file5":"1366553926","file3":"1366553685"},"map_files_photo_id_array":[{"photo_id":"1366553926","filename":"file5"},{"photo_id":"1366553634","filename":"file2"},{"photo_id":"1366553701","filename":"file4"},{"photo_id":"1366553447","filename":"file1"},{"photo_id":"1366553209","filename":"file0"},{"photo_id":"1366553685","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366553926":["hashtag1","hashtag2"]},{"1366553209":["hashtag1","hashtag2"]},{"1366553701":["hashtag1","hashtag2"]},{"1366553685":["hashtag1","hashtag2"]},{"1366553634":["hashtag1","hashtag2"]},{"1366553447":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366553926, 1366553209, 1366553701, 1366553685, 1366553634, 1366553447)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 148.19956874847412 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 15:20:02.448188
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/15/19/image_16062025_15_19_44_9740.jpg', 2), ('/home/nano/Desktop/images/16062025/15/19/image_16062025_15_19_35_9648.jpg', 2), ('/home/nano/Desktop/images/16062025/15/19/image_16062025_15_19_25_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/15/19/image_16062025_15_19_15_10773.jpg', 2), ('/home/nano/Desktop/images/16062025/15/18/image_16062025_15_19_05_9662.jpg', 2), ('/home/nano/Desktop/images/16062025/15/18/image_16062025_15_18_55_9654.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/15/19/image_16062025_15_19_44_9740.jpg', '/home/nano/Desktop/images/16062025/15/19/image_16062025_15_19_35_9648.jpg', '/home/nano/Desktop/images/16062025/15/19/image_16062025_15_19_25_9643.jpg', '/home/nano/Desktop/images/16062025/15/19/image_16062025_15_19_15_10773.jpg', '/home/nano/Desktop/images/16062025/15/18/image_16062025_15_19_05_9662.jpg', '/home/nano/Desktop/images/16062025/15/18/image_16062025_15_18_55_9654.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/15/19/image_16062025_15_19_44_9740.jpg
/home/nano/Desktop/images/16062025/15/19/image_16062025_15_19_35_9648.jpg
/home/nano/Desktop/images/16062025/15/19/image_16062025_15_19_25_9643.jpg
/home/nano/Desktop/images/16062025/15/19/image_16062025_15_19_15_10773.jpg
/home/nano/Desktop/images/16062025/15/18/image_16062025_15_19_05_9662.jpg
/home/nano/Desktop/images/16062025/15/18/image_16062025_15_18_55_9654.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366554037","1366554508","1366554369","1366554164","1366554311","1366554580"],"photo_ids_order":["1366554037","1366554164","1366554311","1366554369","1366554508","1366554580"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e98b2e5a590b65af4d927318a51a03ed.jpg","text":"TemporaryFile(/tmp/multipartBody3128775311506603844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080082730,"filename":"image_16062025_15_19_44_9740.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5699e851c940892fecec15df375e79b9.jpg","text":"TemporaryFile(/tmp/multipartBody5140917783724664046asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080082730,"filename":"image_16062025_15_19_05_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/49a8892a518de2e097dd41ca2c5fe37c.jpg","text":"TemporaryFile(/tmp/multipartBody8407335559501848954asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080082730,"filename":"image_16062025_15_19_15_10773.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bed5311d5815359aea231aae2be181c0.jpg","text":"TemporaryFile(/tmp/multipartBody8235095858524898897asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080082730,"filename":"image_16062025_15_19_35_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/91ca382475d0776c95cb51f507e64017.jpg","text":"TemporaryFile(/tmp/multipartBody5426065940903762427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080082730,"filename":"image_16062025_15_19_25_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7ddfaa2e1b1d22c8c92eba0cbf4118a7.jpg","text":"TemporaryFile(/tmp/multipartBody7074676824110212177asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080082730,"filename":"image_16062025_15_18_55_9654.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366554311","file1":"1366554164","file0":"1366554037","file4":"1366554508","file5":"1366554580","file3":"1366554369"},"map_files_photo_id_array":[{"photo_id":"1366554580","filename":"file5"},{"photo_id":"1366554311","filename":"file2"},{"photo_id":"1366554508","filename":"file4"},{"photo_id":"1366554164","filename":"file1"},{"photo_id":"1366554037","filename":"file0"},{"photo_id":"1366554369","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366554037":["hashtag1","hashtag2"]},{"1366554508":["hashtag1","hashtag2"]},{"1366554369":["hashtag1","hashtag2"]},{"1366554164":["hashtag1","hashtag2"]},{"1366554311":["hashtag1","hashtag2"]},{"1366554580":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366554037, 1366554508, 1366554369, 1366554164, 1366554311, 1366554580)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 206.83371758460999 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 15:23:32.558582
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/15/23/image_16062025_15_23_45_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/15/23/image_16062025_15_23_34_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/15/23/image_16062025_15_23_25_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/15/23/image_16062025_15_23_15_10672.jpg', 2), ('/home/nano/Desktop/images/16062025/15/22/image_16062025_15_23_04_9691.jpg', 2), ('/home/nano/Desktop/images/16062025/15/22/image_16062025_15_22_55_9629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/15/23/image_16062025_15_23_45_10625.jpg', '/home/nano/Desktop/images/16062025/15/23/image_16062025_15_23_34_9652.jpg', '/home/nano/Desktop/images/16062025/15/23/image_16062025_15_23_25_9624.jpg', '/home/nano/Desktop/images/16062025/15/23/image_16062025_15_23_15_10672.jpg', '/home/nano/Desktop/images/16062025/15/22/image_16062025_15_23_04_9691.jpg', '/home/nano/Desktop/images/16062025/15/22/image_16062025_15_22_55_9629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/15/23/image_16062025_15_23_45_10625.jpg
/home/nano/Desktop/images/16062025/15/23/image_16062025_15_23_34_9652.jpg
/home/nano/Desktop/images/16062025/15/23/image_16062025_15_23_25_9624.jpg
/home/nano/Desktop/images/16062025/15/23/image_16062025_15_23_15_10672.jpg
/home/nano/Desktop/images/16062025/15/22/image_16062025_15_23_04_9691.jpg
/home/nano/Desktop/images/16062025/15/22/image_16062025_15_22_55_9629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366554643","1366554610","1366554597","1366554635","1366554605","1366554628"],"photo_ids_order":["1366554597","1366554605","1366554610","1366554628","1366554635","1366554643"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9259312c3376cbbd5fed4f7506ac8f66.jpg","text":"TemporaryFile(/tmp/multipartBody6062041346574770133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080275306,"filename":"image_16062025_15_22_55_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/85ad78e041829c5a13cfd3b48917bc3c.jpg","text":"TemporaryFile(/tmp/multipartBody7533890359217436089asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080275306,"filename":"image_16062025_15_23_25_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/92436cbe2fb3f0a1235dbcd6a9359547.jpg","text":"TemporaryFile(/tmp/multipartBody2395844134494253305asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080275306,"filename":"image_16062025_15_23_45_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6bf2aebef2d094ccd5987e1eb2f7c709.jpg","text":"TemporaryFile(/tmp/multipartBody2601614957295128826asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080275306,"filename":"image_16062025_15_23_04_9691.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a0bdb966a209f1d3df3bfecf5381a080.jpg","text":"TemporaryFile(/tmp/multipartBody3909368236861741363asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080275306,"filename":"image_16062025_15_23_34_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/54b9423e3942352fd88e204f5030e9e7.jpg","text":"TemporaryFile(/tmp/multipartBody4159992959764542432asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080275306,"filename":"image_16062025_15_23_15_10672.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366554610","file1":"1366554605","file0":"1366554597","file4":"1366554635","file5":"1366554643","file3":"1366554628"},"map_files_photo_id_array":[{"photo_id":"1366554643","filename":"file5"},{"photo_id":"1366554610","filename":"file2"},{"photo_id":"1366554635","filename":"file4"},{"photo_id":"1366554605","filename":"file1"},{"photo_id":"1366554597","filename":"file0"},{"photo_id":"1366554628","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366554643":["hashtag1","hashtag2"]},{"1366554610":["hashtag1","hashtag2"]},{"1366554597":["hashtag1","hashtag2"]},{"1366554635":["hashtag1","hashtag2"]},{"1366554605":["hashtag1","hashtag2"]},{"1366554628":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366554643, 1366554610, 1366554597, 1366554635, 1366554605, 1366554628)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 173.0865068435669 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 15:26:31.917959
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/15/26/image_16062025_15_26_44_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/15/26/image_16062025_15_26_35_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/15/26/image_16062025_15_26_25_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/15/26/image_16062025_15_26_14_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/15/25/image_16062025_15_26_05_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/15/25/image_16062025_15_25_55_10643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/15/26/image_16062025_15_26_44_9633.jpg', '/home/nano/Desktop/images/16062025/15/26/image_16062025_15_26_35_9642.jpg', '/home/nano/Desktop/images/16062025/15/26/image_16062025_15_26_25_10647.jpg', '/home/nano/Desktop/images/16062025/15/26/image_16062025_15_26_14_9658.jpg', '/home/nano/Desktop/images/16062025/15/25/image_16062025_15_26_05_9634.jpg', '/home/nano/Desktop/images/16062025/15/25/image_16062025_15_25_55_10643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/15/26/image_16062025_15_26_44_9633.jpg
/home/nano/Desktop/images/16062025/15/26/image_16062025_15_26_35_9642.jpg
/home/nano/Desktop/images/16062025/15/26/image_16062025_15_26_25_10647.jpg
/home/nano/Desktop/images/16062025/15/26/image_16062025_15_26_14_9658.jpg
/home/nano/Desktop/images/16062025/15/25/image_16062025_15_26_05_9634.jpg
/home/nano/Desktop/images/16062025/15/25/image_16062025_15_25_55_10643.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366554709","1366554724","1366554675","1366554669","1366554690","1366554683"],"photo_ids_order":["1366554669","1366554675","1366554683","1366554690","1366554709","1366554724"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cdefe4c051831319915233144bd1aa91.jpg","text":"TemporaryFile(/tmp/multipartBody5682376576277521933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080460772,"filename":"image_16062025_15_26_05_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ee8f76a505ce1e6ccce9ca315e0ead9a.jpg","text":"TemporaryFile(/tmp/multipartBody5068742876218318693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080460772,"filename":"image_16062025_15_25_55_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5d4db9317431231e69e6e237e4b8bd94.jpg","text":"TemporaryFile(/tmp/multipartBody6942614744472865694asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080460772,"filename":"image_16062025_15_26_35_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d387fdc057b360960966c8517d1adf5f.jpg","text":"TemporaryFile(/tmp/multipartBody6357534646238074969asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080460772,"filename":"image_16062025_15_26_44_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6937509f03bead8124097e80cb04ccce.jpg","text":"TemporaryFile(/tmp/multipartBody8213197119245738468asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080460772,"filename":"image_16062025_15_26_14_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/de1d1e095d3d1388b0a9fa5b0f53543d.jpg","text":"TemporaryFile(/tmp/multipartBody7858725185376529950asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080460772,"filename":"image_16062025_15_26_25_10647.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366554683","file1":"1366554675","file0":"1366554669","file4":"1366554709","file5":"1366554724","file3":"1366554690"},"map_files_photo_id_array":[{"photo_id":"1366554724","filename":"file5"},{"photo_id":"1366554683","filename":"file2"},{"photo_id":"1366554709","filename":"file4"},{"photo_id":"1366554675","filename":"file1"},{"photo_id":"1366554669","filename":"file0"},{"photo_id":"1366554690","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366554709":["hashtag1","hashtag2"]},{"1366554724":["hashtag1","hashtag2"]},{"1366554675":["hashtag1","hashtag2"]},{"1366554669":["hashtag1","hashtag2"]},{"1366554690":["hashtag1","hashtag2"]},{"1366554683":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366554709, 1366554724, 1366554675, 1366554669, 1366554690, 1366554683)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 178.6292860507965 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 15:29:32.257964
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/15/29/image_16062025_15_29_45_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/15/29/image_16062025_15_29_35_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/15/29/image_16062025_15_29_25_9604.jpg', 2), ('/home/nano/Desktop/images/16062025/15/29/image_16062025_15_29_15_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/15/28/image_16062025_15_29_04_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/15/28/image_16062025_15_28_55_9638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/15/29/image_16062025_15_29_45_9629.jpg', '/home/nano/Desktop/images/16062025/15/29/image_16062025_15_29_35_10642.jpg', '/home/nano/Desktop/images/16062025/15/29/image_16062025_15_29_25_9604.jpg', '/home/nano/Desktop/images/16062025/15/29/image_16062025_15_29_15_10644.jpg', '/home/nano/Desktop/images/16062025/15/28/image_16062025_15_29_04_9609.jpg', '/home/nano/Desktop/images/16062025/15/28/image_16062025_15_28_55_9638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/15/29/image_16062025_15_29_45_9629.jpg
/home/nano/Desktop/images/16062025/15/29/image_16062025_15_29_35_10642.jpg
/home/nano/Desktop/images/16062025/15/29/image_16062025_15_29_25_9604.jpg
/home/nano/Desktop/images/16062025/15/29/image_16062025_15_29_15_10644.jpg
/home/nano/Desktop/images/16062025/15/28/image_16062025_15_29_04_9609.jpg
/home/nano/Desktop/images/16062025/15/28/image_16062025_15_28_55_9638.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366555137","1366554756","1366555775","1366555355","1366555495","1366554938"],"photo_ids_order":["1366554756","1366554938","1366555137","1366555355","1366555495","1366555775"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b21a8d3fac1a3073734b6b4220bb940d.jpg","text":"TemporaryFile(/tmp/multipartBody4361658082894870435asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080636215,"filename":"image_16062025_15_29_25_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/498fdd47ee3e22b1ef132ff06e1ffb35.jpg","text":"TemporaryFile(/tmp/multipartBody6878636462481357102asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080636215,"filename":"image_16062025_15_29_45_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4ea74de2e46249929cf32e00bbe72d6c.jpg","text":"TemporaryFile(/tmp/multipartBody7544194932651279625asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080636215,"filename":"image_16062025_15_28_55_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4a30c2ced5276945a848cbb98be34945.jpg","text":"TemporaryFile(/tmp/multipartBody6089345486677792581asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080636215,"filename":"image_16062025_15_29_15_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/415bb6be8e25cec067b3db446d48b44d.jpg","text":"TemporaryFile(/tmp/multipartBody210918187248187424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080636215,"filename":"image_16062025_15_29_04_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/57fa6dbdc6dd32878c5bf8ad9822b31a.jpg","text":"TemporaryFile(/tmp/multipartBody5516558826708753672asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080636215,"filename":"image_16062025_15_29_35_10642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366555137","file1":"1366554938","file0":"1366554756","file4":"1366555495","file5":"1366555775","file3":"1366555355"},"map_files_photo_id_array":[{"photo_id":"1366555775","filename":"file5"},{"photo_id":"1366555137","filename":"file2"},{"photo_id":"1366555495","filename":"file4"},{"photo_id":"1366554938","filename":"file1"},{"photo_id":"1366554756","filename":"file0"},{"photo_id":"1366555355","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366555137":["hashtag1","hashtag2"]},{"1366554756":["hashtag1","hashtag2"]},{"1366555775":["hashtag1","hashtag2"]},{"1366555355":["hashtag1","hashtag2"]},{"1366555495":["hashtag1","hashtag2"]},{"1366554938":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366555137, 1366554756, 1366555775, 1366555355, 1366555495, 1366554938)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 164.99298071861267 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 15:32:32.560437
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/15/32/image_16062025_15_32_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/15/32/image_16062025_15_32_35_9676.jpg', 2), ('/home/nano/Desktop/images/16062025/15/32/image_16062025_15_32_25_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/15/32/image_16062025_15_32_15_9662.jpg', 2), ('/home/nano/Desktop/images/16062025/15/31/image_16062025_15_32_05_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/15/31/image_16062025_15_31_55_10650.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/15/32/image_16062025_15_32_44_9618.jpg', '/home/nano/Desktop/images/16062025/15/32/image_16062025_15_32_35_9676.jpg', '/home/nano/Desktop/images/16062025/15/32/image_16062025_15_32_25_10628.jpg', '/home/nano/Desktop/images/16062025/15/32/image_16062025_15_32_15_9662.jpg', '/home/nano/Desktop/images/16062025/15/31/image_16062025_15_32_05_9647.jpg', '/home/nano/Desktop/images/16062025/15/31/image_16062025_15_31_55_10650.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/15/32/image_16062025_15_32_44_9618.jpg
/home/nano/Desktop/images/16062025/15/32/image_16062025_15_32_35_9676.jpg
/home/nano/Desktop/images/16062025/15/32/image_16062025_15_32_25_10628.jpg
/home/nano/Desktop/images/16062025/15/32/image_16062025_15_32_15_9662.jpg
/home/nano/Desktop/images/16062025/15/31/image_16062025_15_32_05_9647.jpg
/home/nano/Desktop/images/16062025/15/31/image_16062025_15_31_55_10650.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366556028","1366556036","1366556018","1366556113","1366556193","1366556008"],"photo_ids_order":["1366556008","1366556018","1366556028","1366556036","1366556113","1366556193"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4c4f479e70b4d684730de73dd625d604.jpg","text":"TemporaryFile(/tmp/multipartBody606015946698139233asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080831645,"filename":"image_16062025_15_32_25_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/56c56aaec89b1da68156923d41240d32.jpg","text":"TemporaryFile(/tmp/multipartBody4613287802214253589asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080831645,"filename":"image_16062025_15_32_15_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f18b566b59e009c40cb185bb4f548bda.jpg","text":"TemporaryFile(/tmp/multipartBody309699567371815478asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080831645,"filename":"image_16062025_15_32_35_9676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/05e99dc55be74d8301a0d51b11526ef6.jpg","text":"TemporaryFile(/tmp/multipartBody6341246182381054534asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080831645,"filename":"image_16062025_15_32_05_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/61c762d43f32e98d6d187e628b324628.jpg","text":"TemporaryFile(/tmp/multipartBody7632139139275394092asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080831645,"filename":"image_16062025_15_31_55_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/265d7a9aa4586a2163a40c2cebf3ed6f.jpg","text":"TemporaryFile(/tmp/multipartBody6100679658047768322asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080831645,"filename":"image_16062025_15_32_44_9618.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366556028","file1":"1366556018","file0":"1366556008","file4":"1366556113","file5":"1366556193","file3":"1366556036"},"map_files_photo_id_array":[{"photo_id":"1366556193","filename":"file5"},{"photo_id":"1366556028","filename":"file2"},{"photo_id":"1366556113","filename":"file4"},{"photo_id":"1366556018","filename":"file1"},{"photo_id":"1366556008","filename":"file0"},{"photo_id":"1366556036","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366556028":["hashtag1","hashtag2"]},{"1366556036":["hashtag1","hashtag2"]},{"1366556018":["hashtag1","hashtag2"]},{"1366556113":["hashtag1","hashtag2"]},{"1366556193":["hashtag1","hashtag2"]},{"1366556008":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366556028, 1366556036, 1366556018, 1366556113, 1366556193, 1366556008)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 133.84628772735596 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 15:34:47.735078
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/15/34/image_16062025_15_34_45_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/15/34/image_16062025_15_34_35_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/15/34/image_16062025_15_34_25_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/15/34/image_16062025_15_34_15_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/15/33/image_16062025_15_34_05_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/15/33/image_16062025_15_33_55_9622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/15/34/image_16062025_15_34_45_10630.jpg', '/home/nano/Desktop/images/16062025/15/34/image_16062025_15_34_35_9660.jpg', '/home/nano/Desktop/images/16062025/15/34/image_16062025_15_34_25_9629.jpg', '/home/nano/Desktop/images/16062025/15/34/image_16062025_15_34_15_10651.jpg', '/home/nano/Desktop/images/16062025/15/33/image_16062025_15_34_05_9645.jpg', '/home/nano/Desktop/images/16062025/15/33/image_16062025_15_33_55_9622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/15/34/image_16062025_15_34_45_10630.jpg
/home/nano/Desktop/images/16062025/15/34/image_16062025_15_34_35_9660.jpg
/home/nano/Desktop/images/16062025/15/34/image_16062025_15_34_25_9629.jpg
/home/nano/Desktop/images/16062025/15/34/image_16062025_15_34_15_10651.jpg
/home/nano/Desktop/images/16062025/15/33/image_16062025_15_34_05_9645.jpg
/home/nano/Desktop/images/16062025/15/33/image_16062025_15_33_55_9622.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366556594","1366556557","1366556857","1366556551","1366556503","1366556946"],"photo_ids_order":["1366556503","1366556551","1366556557","1366556594","1366556857","1366556946"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cb4efa78cf19ea95d1a533da8e256455.jpg","text":"TemporaryFile(/tmp/multipartBody1251073254134153321asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080956260,"filename":"image_16062025_15_34_15_10651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2a89fd07dbdf2cda2623a06aed2401c0.jpg","text":"TemporaryFile(/tmp/multipartBody5330308160948227892asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080956260,"filename":"image_16062025_15_34_25_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/122a3b3b538c39f2f0492a43b6bab2f4.jpg","text":"TemporaryFile(/tmp/multipartBody3114698993727848600asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080956260,"filename":"image_16062025_15_34_05_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1250bac64887669e4fbff2dcbbf424d9.jpg","text":"TemporaryFile(/tmp/multipartBody4954350273831076690asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080956260,"filename":"image_16062025_15_34_35_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/194b4496b47223a173889b3d209f3fed.jpg","text":"TemporaryFile(/tmp/multipartBody6813320866770684056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080956260,"filename":"image_16062025_15_34_45_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4cd6930a2d6792776a478669cedf5b2a.jpg","text":"TemporaryFile(/tmp/multipartBody2939235008656390161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750080956260,"filename":"image_16062025_15_33_55_9622.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366556557","file1":"1366556551","file0":"1366556503","file4":"1366556857","file5":"1366556946","file3":"1366556594"},"map_files_photo_id_array":[{"photo_id":"1366556946","filename":"file5"},{"photo_id":"1366556557","filename":"file2"},{"photo_id":"1366556857","filename":"file4"},{"photo_id":"1366556551","filename":"file1"},{"photo_id":"1366556503","filename":"file0"},{"photo_id":"1366556594","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366556594":["hashtag1","hashtag2"]},{"1366556557":["hashtag1","hashtag2"]},{"1366556857":["hashtag1","hashtag2"]},{"1366556551":["hashtag1","hashtag2"]},{"1366556503":["hashtag1","hashtag2"]},{"1366556946":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366556594, 1366556557, 1366556857, 1366556551, 1366556503, 1366556946)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 202.48078727722168 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 15:38:17.147460
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/15/38/image_16062025_15_38_45_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/15/38/image_16062025_15_38_35_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/15/38/image_16062025_15_38_25_10659.jpg', 2), ('/home/nano/Desktop/images/16062025/15/38/image_16062025_15_38_15_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/15/37/image_16062025_15_38_05_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/15/37/image_16062025_15_37_55_10640.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/15/38/image_16062025_15_38_45_9625.jpg', '/home/nano/Desktop/images/16062025/15/38/image_16062025_15_38_35_9618.jpg', '/home/nano/Desktop/images/16062025/15/38/image_16062025_15_38_25_10659.jpg', '/home/nano/Desktop/images/16062025/15/38/image_16062025_15_38_15_9637.jpg', '/home/nano/Desktop/images/16062025/15/37/image_16062025_15_38_05_9650.jpg', '/home/nano/Desktop/images/16062025/15/37/image_16062025_15_37_55_10640.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/15/38/image_16062025_15_38_45_9625.jpg
/home/nano/Desktop/images/16062025/15/38/image_16062025_15_38_35_9618.jpg
/home/nano/Desktop/images/16062025/15/38/image_16062025_15_38_25_10659.jpg
/home/nano/Desktop/images/16062025/15/38/image_16062025_15_38_15_9637.jpg
/home/nano/Desktop/images/16062025/15/37/image_16062025_15_38_05_9650.jpg
/home/nano/Desktop/images/16062025/15/37/image_16062025_15_37_55_10640.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366557576","1366557498","1366557477","1366557648","1366557627","1366557683"],"photo_ids_order":["1366557477","1366557498","1366557576","1366557627","1366557648","1366557683"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/66aa136069d4f3134fec8e81f7056ab6.jpg","text":"TemporaryFile(/tmp/multipartBody4789864569430404786asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750081193889,"filename":"image_16062025_15_38_25_10659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ee62436ab4503359c14e030ddf5e7e9e.jpg","text":"TemporaryFile(/tmp/multipartBody4367417431672072127asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750081193889,"filename":"image_16062025_15_38_35_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/57ea9552261e4c89e4ca2fb23983945f.jpg","text":"TemporaryFile(/tmp/multipartBody5849662913969180770asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750081193889,"filename":"image_16062025_15_38_45_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2c12d694f14237c8d0bc0e30873d3b47.jpg","text":"TemporaryFile(/tmp/multipartBody7131266259246314291asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750081193889,"filename":"image_16062025_15_38_05_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/19414c92d43fca4bc210c8ee9b1d6eea.jpg","text":"TemporaryFile(/tmp/multipartBody358917819473336720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750081193889,"filename":"image_16062025_15_38_15_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a70825d1c011fc1774a0c4ad18bb1c74.jpg","text":"TemporaryFile(/tmp/multipartBody4235631433077937368asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750081193889,"filename":"image_16062025_15_37_55_10640.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366557576","file1":"1366557498","file0":"1366557477","file4":"1366557648","file5":"1366557683","file3":"1366557627"},"map_files_photo_id_array":[{"photo_id":"1366557683","filename":"file5"},{"photo_id":"1366557576","filename":"file2"},{"photo_id":"1366557648","filename":"file4"},{"photo_id":"1366557498","filename":"file1"},{"photo_id":"1366557477","filename":"file0"},{"photo_id":"1366557627","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366557576":["hashtag1","hashtag2"]},{"1366557498":["hashtag1","hashtag2"]},{"1366557477":["hashtag1","hashtag2"]},{"1366557648":["hashtag1","hashtag2"]},{"1366557627":["hashtag1","hashtag2"]},{"1366557683":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366557576, 1366557498, 1366557477, 1366557648, 1366557627, 1366557683)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 232.09428071975708 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 15:42:17.510920
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/15/42/image_16062025_15_42_45_9686.jpg', 2), ('/home/nano/Desktop/images/16062025/15/42/image_16062025_15_42_35_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/15/42/image_16062025_15_42_25_9723.jpg', 2), ('/home/nano/Desktop/images/16062025/15/42/image_16062025_15_42_15_9760.jpg', 2), ('/home/nano/Desktop/images/16062025/15/41/image_16062025_15_42_05_9720.jpg', 2), ('/home/nano/Desktop/images/16062025/15/41/image_16062025_15_41_55_10729.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/15/42/image_16062025_15_42_45_9686.jpg', '/home/nano/Desktop/images/16062025/15/42/image_16062025_15_42_35_10646.jpg', '/home/nano/Desktop/images/16062025/15/42/image_16062025_15_42_25_9723.jpg', '/home/nano/Desktop/images/16062025/15/42/image_16062025_15_42_15_9760.jpg', '/home/nano/Desktop/images/16062025/15/41/image_16062025_15_42_05_9720.jpg', '/home/nano/Desktop/images/16062025/15/41/image_16062025_15_41_55_10729.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/15/42/image_16062025_15_42_45_9686.jpg
/home/nano/Desktop/images/16062025/15/42/image_16062025_15_42_35_10646.jpg
/home/nano/Desktop/images/16062025/15/42/image_16062025_15_42_25_9723.jpg
/home/nano/Desktop/images/16062025/15/42/image_16062025_15_42_15_9760.jpg
/home/nano/Desktop/images/16062025/15/41/image_16062025_15_42_05_9720.jpg
/home/nano/Desktop/images/16062025/15/41/image_16062025_15_41_55_10729.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366557833","1366557737","1366557844","1366557861","1366557893","1366557900"],"photo_ids_order":["1366557737","1366557833","1366557844","1366557861","1366557893","1366557900"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/64dbd7e9d3165f4f67f5659802a70616.jpg","text":"TemporaryFile(/tmp/multipartBody3865140067753871582asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750081412835,"filename":"image_16062025_15_42_35_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ef53f03939a74e18d065a7a1266ab70c.jpg","text":"TemporaryFile(/tmp/multipartBody3506483133386645415asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750081412835,"filename":"image_16062025_15_42_45_9686.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b7f368e58113d18fb2e96d5e52973c21.jpg","text":"TemporaryFile(/tmp/multipartBody3798646238271612305asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750081412835,"filename":"image_16062025_15_42_25_9723.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ba8be9221c4cf43e50e7afd6dd0e1171.jpg","text":"TemporaryFile(/tmp/multipartBody7704471363509552508asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750081412835,"filename":"image_16062025_15_42_15_9760.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f8d76ffcb73ee362766986c37acabee6.jpg","text":"TemporaryFile(/tmp/multipartBody5641403145766978791asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750081412835,"filename":"image_16062025_15_42_05_9720.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/243db50dc78c693cc7e732b3a4f21eb7.jpg","text":"TemporaryFile(/tmp/multipartBody886988503840737560asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750081412835,"filename":"image_16062025_15_41_55_10729.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366557844","file1":"1366557833","file0":"1366557737","file4":"1366557893","file5":"1366557900","file3":"1366557861"},"map_files_photo_id_array":[{"photo_id":"1366557900","filename":"file5"},{"photo_id":"1366557844","filename":"file2"},{"photo_id":"1366557893","filename":"file4"},{"photo_id":"1366557833","filename":"file1"},{"photo_id":"1366557737","filename":"file0"},{"photo_id":"1366557861","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366557833":["hashtag1","hashtag2"]},{"1366557737":["hashtag1","hashtag2"]},{"1366557844":["hashtag1","hashtag2"]},{"1366557861":["hashtag1","hashtag2"]},{"1366557893":["hashtag1","hashtag2"]},{"1366557900":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366557833, 1366557737, 1366557844, 1366557861, 1366557893, 1366557900)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 227.66109013557434 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 15:46:16.918658
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/15/46/image_16062025_15_46_44_9756.jpg', 2), ('/home/nano/Desktop/images/16062025/15/46/image_16062025_15_46_35_9717.jpg', 2), ('/home/nano/Desktop/images/16062025/15/46/image_16062025_15_46_25_9744.jpg', 2), ('/home/nano/Desktop/images/16062025/15/46/image_16062025_15_46_15_10769.jpg', 2), ('/home/nano/Desktop/images/16062025/15/45/image_16062025_15_46_04_9724.jpg', 2), ('/home/nano/Desktop/images/16062025/15/45/image_16062025_15_45_55_9719.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/15/46/image_16062025_15_46_44_9756.jpg', '/home/nano/Desktop/images/16062025/15/46/image_16062025_15_46_35_9717.jpg', '/home/nano/Desktop/images/16062025/15/46/image_16062025_15_46_25_9744.jpg', '/home/nano/Desktop/images/16062025/15/46/image_16062025_15_46_15_10769.jpg', '/home/nano/Desktop/images/16062025/15/45/image_16062025_15_46_04_9724.jpg', '/home/nano/Desktop/images/16062025/15/45/image_16062025_15_45_55_9719.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/15/46/image_16062025_15_46_44_9756.jpg
/home/nano/Desktop/images/16062025/15/46/image_16062025_15_46_35_9717.jpg
/home/nano/Desktop/images/16062025/15/46/image_16062025_15_46_25_9744.jpg
/home/nano/Desktop/images/16062025/15/46/image_16062025_15_46_15_10769.jpg
/home/nano/Desktop/images/16062025/15/45/image_16062025_15_46_04_9724.jpg
/home/nano/Desktop/images/16062025/15/45/image_16062025_15_45_55_9719.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366558099","1366558120","1366558167","1366558155","1366558181","1366558085"],"photo_ids_order":["1366558085","1366558099","1366558120","1366558155","1366558167","1366558181"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7ca6648aa3e695efe1f6cf4b4b103d8f.jpg","text":"TemporaryFile(/tmp/multipartBody1302797201882587561asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750081657432,"filename":"image_16062025_15_46_35_9717.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bc52a419be2b0156b26b727bd6a1337d.jpg","text":"TemporaryFile(/tmp/multipartBody3369048151015331435asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750081657432,"filename":"image_16062025_15_46_25_9744.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cdd131fc3b5b19b19c4469076c3bc904.jpg","text":"TemporaryFile(/tmp/multipartBody7659518064215831576asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750081657432,"filename":"image_16062025_15_46_04_9724.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4d1a03e8dc9f0a8ff847dedc339863a5.jpg","text":"TemporaryFile(/tmp/multipartBody8355290173374835719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750081657432,"filename":"image_16062025_15_46_15_10769.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fc04ae0e890e47c48598a49e380b9e71.jpg","text":"TemporaryFile(/tmp/multipartBody2640578015555950152asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750081657432,"filename":"image_16062025_15_45_55_9719.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/585b36b80e7aaa75f4e3d100a520bc99.jpg","text":"TemporaryFile(/tmp/multipartBody4901992731239031771asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750081657432,"filename":"image_16062025_15_46_44_9756.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366558120","file1":"1366558099","file0":"1366558085","file4":"1366558167","file5":"1366558181","file3":"1366558155"},"map_files_photo_id_array":[{"photo_id":"1366558181","filename":"file5"},{"photo_id":"1366558120","filename":"file2"},{"photo_id":"1366558167","filename":"file4"},{"photo_id":"1366558099","filename":"file1"},{"photo_id":"1366558085","filename":"file0"},{"photo_id":"1366558155","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366558099":["hashtag1","hashtag2"]},{"1366558120":["hashtag1","hashtag2"]},{"1366558167":["hashtag1","hashtag2"]},{"1366558155":["hashtag1","hashtag2"]},{"1366558181":["hashtag1","hashtag2"]},{"1366558085":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366558099, 1366558120, 1366558167, 1366558155, 1366558181, 1366558085)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 193.07431888580322 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 15:49:32.321844
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/15/49/image_16062025_15_49_45_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/15/49/image_16062025_15_49_35_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/15/49/image_16062025_15_49_24_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/15/49/image_16062025_15_49_15_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/15/48/image_16062025_15_49_05_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/15/48/image_16062025_15_48_54_9627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/15/49/image_16062025_15_49_45_9631.jpg', '/home/nano/Desktop/images/16062025/15/49/image_16062025_15_49_35_10631.jpg', '/home/nano/Desktop/images/16062025/15/49/image_16062025_15_49_24_9657.jpg', '/home/nano/Desktop/images/16062025/15/49/image_16062025_15_49_15_9654.jpg', '/home/nano/Desktop/images/16062025/15/48/image_16062025_15_49_05_10658.jpg', '/home/nano/Desktop/images/16062025/15/48/image_16062025_15_48_54_9627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/15/49/image_16062025_15_49_45_9631.jpg
/home/nano/Desktop/images/16062025/15/49/image_16062025_15_49_35_10631.jpg
/home/nano/Desktop/images/16062025/15/49/image_16062025_15_49_24_9657.jpg
/home/nano/Desktop/images/16062025/15/49/image_16062025_15_49_15_9654.jpg
/home/nano/Desktop/images/16062025/15/48/image_16062025_15_49_05_10658.jpg
/home/nano/Desktop/images/16062025/15/48/image_16062025_15_48_54_9627.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366558255","1366558606","1366558293","1366558242","1366558344","1366558724"],"photo_ids_order":["1366558242","1366558255","1366558293","1366558344","1366558606","1366558724"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e8bfdaa5d52ad2e76924f30547f7bfee.jpg","text":"TemporaryFile(/tmp/multipartBody6476484102207908249asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750081837560,"filename":"image_16062025_15_49_35_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cb8e5739165e4930a8fc5c246d03ce20.jpg","text":"TemporaryFile(/tmp/multipartBody5307211169824678442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750081837560,"filename":"image_16062025_15_49_05_10658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/036bab45cce559919921c8183528f6fd.jpg","text":"TemporaryFile(/tmp/multipartBody4304978245969471393asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750081837560,"filename":"image_16062025_15_49_24_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/47983ae68f86eda0e887d0ab80c083dc.jpg","text":"TemporaryFile(/tmp/multipartBody6429802263550042621asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750081837560,"filename":"image_16062025_15_49_45_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ebe4cca0ae72e2e00a22cd7a59cdfa35.jpg","text":"TemporaryFile(/tmp/multipartBody4428313356189390739asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750081837560,"filename":"image_16062025_15_49_15_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/907713bc3927647f4b99183f08ddc598.jpg","text":"TemporaryFile(/tmp/multipartBody2191673478583398976asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750081837560,"filename":"image_16062025_15_48_54_9627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366558293","file1":"1366558255","file0":"1366558242","file4":"1366558606","file5":"1366558724","file3":"1366558344"},"map_files_photo_id_array":[{"photo_id":"1366558724","filename":"file5"},{"photo_id":"1366558293","filename":"file2"},{"photo_id":"1366558606","filename":"file4"},{"photo_id":"1366558255","filename":"file1"},{"photo_id":"1366558242","filename":"file0"},{"photo_id":"1366558344","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366558255":["hashtag1","hashtag2"]},{"1366558606":["hashtag1","hashtag2"]},{"1366558293":["hashtag1","hashtag2"]},{"1366558242":["hashtag1","hashtag2"]},{"1366558344":["hashtag1","hashtag2"]},{"1366558724":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366558255, 1366558606, 1366558293, 1366558242, 1366558344, 1366558724)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 220.50889778137207 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 15:53:17.652208
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/15/53/image_16062025_15_53_45_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/15/53/image_16062025_15_53_34_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/15/53/image_16062025_15_53_25_9606.jpg', 2), ('/home/nano/Desktop/images/16062025/15/53/image_16062025_15_53_15_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/15/52/image_16062025_15_53_05_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/15/52/image_16062025_15_52_55_9603.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/15/53/image_16062025_15_53_45_10616.jpg', '/home/nano/Desktop/images/16062025/15/53/image_16062025_15_53_34_9631.jpg', '/home/nano/Desktop/images/16062025/15/53/image_16062025_15_53_25_9606.jpg', '/home/nano/Desktop/images/16062025/15/53/image_16062025_15_53_15_10628.jpg', '/home/nano/Desktop/images/16062025/15/52/image_16062025_15_53_05_9620.jpg', '/home/nano/Desktop/images/16062025/15/52/image_16062025_15_52_55_9603.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/15/53/image_16062025_15_53_45_10616.jpg
/home/nano/Desktop/images/16062025/15/53/image_16062025_15_53_34_9631.jpg
/home/nano/Desktop/images/16062025/15/53/image_16062025_15_53_25_9606.jpg
/home/nano/Desktop/images/16062025/15/53/image_16062025_15_53_15_10628.jpg
/home/nano/Desktop/images/16062025/15/52/image_16062025_15_53_05_9620.jpg
/home/nano/Desktop/images/16062025/15/52/image_16062025_15_52_55_9603.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366558934","1366558927","1366559139","1366558830","1366559081","1366558862"],"photo_ids_order":["1366558830","1366558862","1366558927","1366558934","1366559081","1366559139"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c6bea651ad62b83314422fd25cd4fc63.jpg","text":"TemporaryFile(/tmp/multipartBody4727396969553292746asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750082060163,"filename":"image_16062025_15_53_15_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/25097226aae6c1a3bc54788bb42415dd.jpg","text":"TemporaryFile(/tmp/multipartBody4004651775624241825asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750082060163,"filename":"image_16062025_15_53_25_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/01e8b5c2cc9cf8f198cdc1645570b644.jpg","text":"TemporaryFile(/tmp/multipartBody6388060195294904839asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750082060163,"filename":"image_16062025_15_52_55_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/eafe1240d48794aa2cb14a346291b003.jpg","text":"TemporaryFile(/tmp/multipartBody8398218134917419519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750082060163,"filename":"image_16062025_15_53_45_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/66bbe61d067c2667dc87733ac22ce498.jpg","text":"TemporaryFile(/tmp/multipartBody824150534593767894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750082060163,"filename":"image_16062025_15_53_05_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9bedd30db34a6b03a9c646becbdc99c0.jpg","text":"TemporaryFile(/tmp/multipartBody7851706054704608294asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750082060163,"filename":"image_16062025_15_53_34_9631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366558927","file1":"1366558862","file0":"1366558830","file4":"1366559081","file5":"1366559139","file3":"1366558934"},"map_files_photo_id_array":[{"photo_id":"1366559139","filename":"file5"},{"photo_id":"1366558927","filename":"file2"},{"photo_id":"1366559081","filename":"file4"},{"photo_id":"1366558862","filename":"file1"},{"photo_id":"1366558830","filename":"file0"},{"photo_id":"1366558934","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366558934":["hashtag1","hashtag2"]},{"1366558927":["hashtag1","hashtag2"]},{"1366559139":["hashtag1","hashtag2"]},{"1366558830":["hashtag1","hashtag2"]},{"1366559081":["hashtag1","hashtag2"]},{"1366558862":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366558934, 1366558927, 1366559139, 1366558830, 1366559081, 1366558862)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 136.72348427772522 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 15:55:46.947324
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/15/55/image_16062025_15_55_55_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/15/55/image_16062025_15_55_35_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/15/55/image_16062025_15_55_24_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/15/55/image_16062025_15_55_15_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/15/54/image_16062025_15_55_05_10673.jpg', 2), ('/home/nano/Desktop/images/16062025/15/54/image_16062025_15_54_54_9658.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/15/55/image_16062025_15_55_55_10618.jpg', '/home/nano/Desktop/images/16062025/15/55/image_16062025_15_55_35_10648.jpg', '/home/nano/Desktop/images/16062025/15/55/image_16062025_15_55_24_9626.jpg', '/home/nano/Desktop/images/16062025/15/55/image_16062025_15_55_15_9616.jpg', '/home/nano/Desktop/images/16062025/15/54/image_16062025_15_55_05_10673.jpg', '/home/nano/Desktop/images/16062025/15/54/image_16062025_15_54_54_9658.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/15/55/image_16062025_15_55_55_10618.jpg
/home/nano/Desktop/images/16062025/15/55/image_16062025_15_55_35_10648.jpg
/home/nano/Desktop/images/16062025/15/55/image_16062025_15_55_24_9626.jpg
/home/nano/Desktop/images/16062025/15/55/image_16062025_15_55_15_9616.jpg
/home/nano/Desktop/images/16062025/15/54/image_16062025_15_55_05_10673.jpg
/home/nano/Desktop/images/16062025/15/54/image_16062025_15_54_54_9658.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366559398","1366559203","1366559235","1366559223","1366559229","1366559306"],"photo_ids_order":["1366559203","1366559223","1366559229","1366559235","1366559306","1366559398"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b3f2905e5e1bfdff681e3269c6a1e380.jpg","text":"TemporaryFile(/tmp/multipartBody3450250889924068542asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750082212803,"filename":"image_16062025_15_54_54_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fadf660e02f2d91cfdb5d01f9a4b56c7.jpg","text":"TemporaryFile(/tmp/multipartBody2258166859946916639asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750082212803,"filename":"image_16062025_15_55_55_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/17e95c74d419a37848e33125f4ca91d7.jpg","text":"TemporaryFile(/tmp/multipartBody5409255324151770642asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750082212803,"filename":"image_16062025_15_55_15_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/758eb36ef1b3e9aab7a5faa1370e9111.jpg","text":"TemporaryFile(/tmp/multipartBody490221964081775515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750082212803,"filename":"image_16062025_15_55_35_10648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5e82d378e7f3941439e0c7fb3bbd9bfc.jpg","text":"TemporaryFile(/tmp/multipartBody2876412806757347318asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750082212803,"filename":"image_16062025_15_55_24_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/226692e0d3bce47d927dd409d8f91195.jpg","text":"TemporaryFile(/tmp/multipartBody4278009665852690812asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750082212803,"filename":"image_16062025_15_55_05_10673.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366559229","file1":"1366559223","file0":"1366559203","file4":"1366559306","file5":"1366559398","file3":"1366559235"},"map_files_photo_id_array":[{"photo_id":"1366559398","filename":"file5"},{"photo_id":"1366559229","filename":"file2"},{"photo_id":"1366559306","filename":"file4"},{"photo_id":"1366559223","filename":"file1"},{"photo_id":"1366559203","filename":"file0"},{"photo_id":"1366559235","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366559398":["hashtag1","hashtag2"]},{"1366559203":["hashtag1","hashtag2"]},{"1366559235":["hashtag1","hashtag2"]},{"1366559223":["hashtag1","hashtag2"]},{"1366559229":["hashtag1","hashtag2"]},{"1366559306":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366559398, 1366559203, 1366559235, 1366559223, 1366559229, 1366559306)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 108.45952010154724 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 15:57:47.160239
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/15/57/image_16062025_15_57_44_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/15/57/image_16062025_15_57_35_9777.jpg', 2), ('/home/nano/Desktop/images/16062025/15/57/image_16062025_15_57_25_10660.jpg', 2), ('/home/nano/Desktop/images/16062025/15/57/image_16062025_15_57_14_9663.jpg', 2), ('/home/nano/Desktop/images/16062025/15/56/image_16062025_15_57_05_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/15/56/image_16062025_15_56_55_10672.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/15/57/image_16062025_15_57_44_9658.jpg', '/home/nano/Desktop/images/16062025/15/57/image_16062025_15_57_35_9777.jpg', '/home/nano/Desktop/images/16062025/15/57/image_16062025_15_57_25_10660.jpg', '/home/nano/Desktop/images/16062025/15/57/image_16062025_15_57_14_9663.jpg', '/home/nano/Desktop/images/16062025/15/56/image_16062025_15_57_05_9673.jpg', '/home/nano/Desktop/images/16062025/15/56/image_16062025_15_56_55_10672.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/15/57/image_16062025_15_57_44_9658.jpg
/home/nano/Desktop/images/16062025/15/57/image_16062025_15_57_35_9777.jpg
/home/nano/Desktop/images/16062025/15/57/image_16062025_15_57_25_10660.jpg
/home/nano/Desktop/images/16062025/15/57/image_16062025_15_57_14_9663.jpg
/home/nano/Desktop/images/16062025/15/56/image_16062025_15_57_05_9673.jpg
/home/nano/Desktop/images/16062025/15/56/image_16062025_15_56_55_10672.jpg
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 15:59:03.650562
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/15/58/image_16062025_15_58_44_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/15/58/image_16062025_15_58_35_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/15/58/image_16062025_15_58_25_10753.jpg', 2), ('/home/nano/Desktop/images/16062025/15/58/image_16062025_15_58_15_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/15/57/image_16062025_15_58_05_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/15/57/image_16062025_15_57_55_10699.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/15/58/image_16062025_15_58_44_9619.jpg', '/home/nano/Desktop/images/16062025/15/58/image_16062025_15_58_35_9634.jpg', '/home/nano/Desktop/images/16062025/15/58/image_16062025_15_58_25_10753.jpg', '/home/nano/Desktop/images/16062025/15/58/image_16062025_15_58_15_9628.jpg', '/home/nano/Desktop/images/16062025/15/57/image_16062025_15_58_05_9642.jpg', '/home/nano/Desktop/images/16062025/15/57/image_16062025_15_57_55_10699.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/15/58/image_16062025_15_58_44_9619.jpg
/home/nano/Desktop/images/16062025/15/58/image_16062025_15_58_35_9634.jpg
/home/nano/Desktop/images/16062025/15/58/image_16062025_15_58_25_10753.jpg
/home/nano/Desktop/images/16062025/15/58/image_16062025_15_58_15_9628.jpg
/home/nano/Desktop/images/16062025/15/57/image_16062025_15_58_05_9642.jpg
/home/nano/Desktop/images/16062025/15/57/image_16062025_15_57_55_10699.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 322.7246284484863 secondes ---
<Response [502]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>502 Proxy Error</title>\n</head><body>\n<h1>Proxy Error</h1>\n<p>The proxy server received an invalid\r\nresponse from an upstream server.<br />\r\nThe proxy server could not handle the request<p>Reason: <strong>Error reading from remote server</strong></p></p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
502
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:04:32.239542
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/04/image_16062025_16_04_45_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/16/04/image_16062025_16_04_35_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/16/04/image_16062025_16_04_24_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/16/04/image_16062025_16_04_15_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/16/03/image_16062025_16_04_05_10682.jpg', 2), ('/home/nano/Desktop/images/16062025/16/03/image_16062025_16_03_54_9632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/04/image_16062025_16_04_45_9632.jpg', '/home/nano/Desktop/images/16062025/16/04/image_16062025_16_04_35_10652.jpg', '/home/nano/Desktop/images/16062025/16/04/image_16062025_16_04_24_9641.jpg', '/home/nano/Desktop/images/16062025/16/04/image_16062025_16_04_15_9622.jpg', '/home/nano/Desktop/images/16062025/16/03/image_16062025_16_04_05_10682.jpg', '/home/nano/Desktop/images/16062025/16/03/image_16062025_16_03_54_9632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/04/image_16062025_16_04_45_9632.jpg
/home/nano/Desktop/images/16062025/16/04/image_16062025_16_04_35_10652.jpg
/home/nano/Desktop/images/16062025/16/04/image_16062025_16_04_24_9641.jpg
/home/nano/Desktop/images/16062025/16/04/image_16062025_16_04_15_9622.jpg
/home/nano/Desktop/images/16062025/16/03/image_16062025_16_04_05_10682.jpg
/home/nano/Desktop/images/16062025/16/03/image_16062025_16_03_54_9632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 313.66841340065 secondes ---
<Response [502]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>502 Proxy Error</title>\n</head><body>\n<h1>Proxy Error</h1>\n<p>The proxy server received an invalid\r\nresponse from an upstream server.<br />\r\nThe proxy server could not handle the request<p>Reason: <strong>Error reading from remote server</strong></p></p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
502
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:09:46.871712
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/09/image_16062025_16_09_44_9753.jpg', 2), ('/home/nano/Desktop/images/16062025/16/09/image_16062025_16_09_35_9760.jpg', 2), ('/home/nano/Desktop/images/16062025/16/09/image_16062025_16_09_25_9756.jpg', 2), ('/home/nano/Desktop/images/16062025/16/09/image_16062025_16_09_15_10692.jpg', 2), ('/home/nano/Desktop/images/16062025/16/08/image_16062025_16_09_04_9687.jpg', 2), ('/home/nano/Desktop/images/16062025/16/08/image_16062025_16_08_55_9751.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/09/image_16062025_16_09_44_9753.jpg', '/home/nano/Desktop/images/16062025/16/09/image_16062025_16_09_35_9760.jpg', '/home/nano/Desktop/images/16062025/16/09/image_16062025_16_09_25_9756.jpg', '/home/nano/Desktop/images/16062025/16/09/image_16062025_16_09_15_10692.jpg', '/home/nano/Desktop/images/16062025/16/08/image_16062025_16_09_04_9687.jpg', '/home/nano/Desktop/images/16062025/16/08/image_16062025_16_08_55_9751.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/09/image_16062025_16_09_44_9753.jpg
/home/nano/Desktop/images/16062025/16/09/image_16062025_16_09_35_9760.jpg
/home/nano/Desktop/images/16062025/16/09/image_16062025_16_09_25_9756.jpg
/home/nano/Desktop/images/16062025/16/09/image_16062025_16_09_15_10692.jpg
/home/nano/Desktop/images/16062025/16/08/image_16062025_16_09_04_9687.jpg
/home/nano/Desktop/images/16062025/16/08/image_16062025_16_08_55_9751.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366562043","1366562069","1366562060","1366561988","1366561997","1366562033"],"photo_ids_order":["1366561988","1366561997","1366562033","1366562043","1366562060","1366562069"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/04e54ae3d3faabd095365222ddaa9fb3.jpg","text":"TemporaryFile(/tmp/multipartBody181789837741716145asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083055444,"filename":"image_16062025_16_09_15_10692.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/39ca41d45102dde1e982bc839ae3ab5d.jpg","text":"TemporaryFile(/tmp/multipartBody651257250043386561asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083055444,"filename":"image_16062025_16_08_55_9751.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7ee020da53cf6690a6e94579e90f4d6b.jpg","text":"TemporaryFile(/tmp/multipartBody1014671412819385037asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083055444,"filename":"image_16062025_16_09_04_9687.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/28f5f1623b6f562a460f322a1ba27aa4.jpg","text":"TemporaryFile(/tmp/multipartBody385231331367600787asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083055444,"filename":"image_16062025_16_09_44_9753.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fbf14704145c5d6349c2a1d11b355ea9.jpg","text":"TemporaryFile(/tmp/multipartBody8888833754829465364asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083055444,"filename":"image_16062025_16_09_35_9760.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/77e468f382b56a81a530eade341bd426.jpg","text":"TemporaryFile(/tmp/multipartBody7818792549791383965asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083055444,"filename":"image_16062025_16_09_25_9756.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366562033","file1":"1366561997","file0":"1366561988","file4":"1366562060","file5":"1366562069","file3":"1366562043"},"map_files_photo_id_array":[{"photo_id":"1366562069","filename":"file5"},{"photo_id":"1366562033","filename":"file2"},{"photo_id":"1366562060","filename":"file4"},{"photo_id":"1366561997","filename":"file1"},{"photo_id":"1366561988","filename":"file0"},{"photo_id":"1366562043","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366562043":["hashtag1","hashtag2"]},{"1366562069":["hashtag1","hashtag2"]},{"1366562060":["hashtag1","hashtag2"]},{"1366561988":["hashtag1","hashtag2"]},{"1366561997":["hashtag1","hashtag2"]},{"1366562033":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366562043, 1366562069, 1366562060, 1366561988, 1366561997, 1366562033)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 246.75458407402039 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:14:03.433831
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/13/image_16062025_16_13_45_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/16/13/image_16062025_16_13_35_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/16/13/image_16062025_16_13_25_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/16/13/image_16062025_16_13_15_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/16/12/image_16062025_16_13_05_10799.jpg', 2), ('/home/nano/Desktop/images/16062025/16/12/image_16062025_16_12_54_9752.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/13/image_16062025_16_13_45_9644.jpg', '/home/nano/Desktop/images/16062025/16/13/image_16062025_16_13_35_10635.jpg', '/home/nano/Desktop/images/16062025/16/13/image_16062025_16_13_25_9646.jpg', '/home/nano/Desktop/images/16062025/16/13/image_16062025_16_13_15_9649.jpg', '/home/nano/Desktop/images/16062025/16/12/image_16062025_16_13_05_10799.jpg', '/home/nano/Desktop/images/16062025/16/12/image_16062025_16_12_54_9752.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/13/image_16062025_16_13_45_9644.jpg
/home/nano/Desktop/images/16062025/16/13/image_16062025_16_13_35_10635.jpg
/home/nano/Desktop/images/16062025/16/13/image_16062025_16_13_25_9646.jpg
/home/nano/Desktop/images/16062025/16/13/image_16062025_16_13_15_9649.jpg
/home/nano/Desktop/images/16062025/16/12/image_16062025_16_13_05_10799.jpg
/home/nano/Desktop/images/16062025/16/12/image_16062025_16_12_54_9752.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366563296","1366562832","1366563071","1366562409","1366562564","1366563208"],"photo_ids_order":["1366562409","1366562564","1366562832","1366563071","1366563208","1366563296"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e4d1dc65ed6b598790bf074f45f6f4bf.jpg","text":"TemporaryFile(/tmp/multipartBody986354134351543665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083337133,"filename":"image_16062025_16_12_54_9752.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/32f00483c364a51594af1f6fc7229b28.jpg","text":"TemporaryFile(/tmp/multipartBody8944008173518334408asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083337133,"filename":"image_16062025_16_13_25_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4aa1ddc1357e1444e868cff350b4e177.jpg","text":"TemporaryFile(/tmp/multipartBody6994277803992623446asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083337133,"filename":"image_16062025_16_13_15_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7f2f4277e31dcf9b79e0ad7a276a7044.jpg","text":"TemporaryFile(/tmp/multipartBody8464201234518575610asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083337133,"filename":"image_16062025_16_13_45_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a5034c823dced2eb3b8c8aeaede838eb.jpg","text":"TemporaryFile(/tmp/multipartBody7874101526936612936asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083337133,"filename":"image_16062025_16_13_35_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/73518b2a4b5bd495d6df03f4be557923.jpg","text":"TemporaryFile(/tmp/multipartBody7419772873095727189asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083337133,"filename":"image_16062025_16_13_05_10799.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366562832","file1":"1366562564","file0":"1366562409","file4":"1366563208","file5":"1366563296","file3":"1366563071"},"map_files_photo_id_array":[{"photo_id":"1366563296","filename":"file5"},{"photo_id":"1366562832","filename":"file2"},{"photo_id":"1366563208","filename":"file4"},{"photo_id":"1366562564","filename":"file1"},{"photo_id":"1366562409","filename":"file0"},{"photo_id":"1366563071","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366563296":["hashtag1","hashtag2"]},{"1366562832":["hashtag1","hashtag2"]},{"1366563071":["hashtag1","hashtag2"]},{"1366562409":["hashtag1","hashtag2"]},{"1366562564":["hashtag1","hashtag2"]},{"1366563208":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366563296, 1366562832, 1366563071, 1366562409, 1366562564, 1366563208)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 197.69889736175537 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:17:31.766350
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/17/image_16062025_16_17_44_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/16/17/image_16062025_16_17_35_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/16/17/image_16062025_16_17_25_10655.jpg', 2), ('/home/nano/Desktop/images/16062025/16/17/image_16062025_16_17_14_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/16/16/image_16062025_16_17_05_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/16/16/image_16062025_16_16_55_10651.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/17/image_16062025_16_17_44_9621.jpg', '/home/nano/Desktop/images/16062025/16/17/image_16062025_16_17_35_9667.jpg', '/home/nano/Desktop/images/16062025/16/17/image_16062025_16_17_25_10655.jpg', '/home/nano/Desktop/images/16062025/16/17/image_16062025_16_17_14_9642.jpg', '/home/nano/Desktop/images/16062025/16/16/image_16062025_16_17_05_9618.jpg', '/home/nano/Desktop/images/16062025/16/16/image_16062025_16_16_55_10651.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/17/image_16062025_16_17_44_9621.jpg
/home/nano/Desktop/images/16062025/16/17/image_16062025_16_17_35_9667.jpg
/home/nano/Desktop/images/16062025/16/17/image_16062025_16_17_25_10655.jpg
/home/nano/Desktop/images/16062025/16/17/image_16062025_16_17_14_9642.jpg
/home/nano/Desktop/images/16062025/16/16/image_16062025_16_17_05_9618.jpg
/home/nano/Desktop/images/16062025/16/16/image_16062025_16_16_55_10651.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366564091","1366563440","1366563898","1366564054","1366563475","1366563610"],"photo_ids_order":["1366563440","1366563475","1366563610","1366563898","1366564054","1366564091"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/98e20833830f943878b561264db61be0.jpg","text":"TemporaryFile(/tmp/multipartBody3940172625012885722asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083517809,"filename":"image_16062025_16_16_55_10651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c38b780297213d0c65c49cf8e7cedd14.jpg","text":"TemporaryFile(/tmp/multipartBody6798013313399010543asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083517809,"filename":"image_16062025_16_17_44_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/677072867bb45d6d913f5e1ca2a5e18e.jpg","text":"TemporaryFile(/tmp/multipartBody1808115215915398508asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083517809,"filename":"image_16062025_16_17_14_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f82d326eda49083a78bc7643285c499f.jpg","text":"TemporaryFile(/tmp/multipartBody3950149268781003242asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083517809,"filename":"image_16062025_16_17_05_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5f7f62fb3dbf99c464086385b1a37d08.jpg","text":"TemporaryFile(/tmp/multipartBody1691139433359080702asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083517809,"filename":"image_16062025_16_17_35_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/19be7ed360391c5dd0b288dd657c5d4f.jpg","text":"TemporaryFile(/tmp/multipartBody3464584754434519143asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083517809,"filename":"image_16062025_16_17_25_10655.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366563610","file1":"1366563475","file0":"1366563440","file4":"1366564054","file5":"1366564091","file3":"1366563898"},"map_files_photo_id_array":[{"photo_id":"1366564091","filename":"file5"},{"photo_id":"1366563610","filename":"file2"},{"photo_id":"1366564054","filename":"file4"},{"photo_id":"1366563475","filename":"file1"},{"photo_id":"1366563440","filename":"file0"},{"photo_id":"1366563898","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366564091":["hashtag1","hashtag2"]},{"1366563440":["hashtag1","hashtag2"]},{"1366563898":["hashtag1","hashtag2"]},{"1366564054":["hashtag1","hashtag2"]},{"1366563475":["hashtag1","hashtag2"]},{"1366563610":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366564091, 1366563440, 1366563898, 1366564054, 1366563475, 1366563610)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 201.73555612564087 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:21:02.878108
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/20/image_16062025_16_20_45_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/16/20/image_16062025_16_20_35_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/16/20/image_16062025_16_20_25_10620.jpg', 2), ('/home/nano/Desktop/images/16062025/16/20/image_16062025_16_20_15_9598.jpg', 2), ('/home/nano/Desktop/images/16062025/16/19/image_16062025_16_20_05_10609.jpg', 2), ('/home/nano/Desktop/images/16062025/16/19/image_16062025_16_19_54_9592.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/20/image_16062025_16_20_45_9612.jpg', '/home/nano/Desktop/images/16062025/16/20/image_16062025_16_20_35_9643.jpg', '/home/nano/Desktop/images/16062025/16/20/image_16062025_16_20_25_10620.jpg', '/home/nano/Desktop/images/16062025/16/20/image_16062025_16_20_15_9598.jpg', '/home/nano/Desktop/images/16062025/16/19/image_16062025_16_20_05_10609.jpg', '/home/nano/Desktop/images/16062025/16/19/image_16062025_16_19_54_9592.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/20/image_16062025_16_20_45_9612.jpg
/home/nano/Desktop/images/16062025/16/20/image_16062025_16_20_35_9643.jpg
/home/nano/Desktop/images/16062025/16/20/image_16062025_16_20_25_10620.jpg
/home/nano/Desktop/images/16062025/16/20/image_16062025_16_20_15_9598.jpg
/home/nano/Desktop/images/16062025/16/19/image_16062025_16_20_05_10609.jpg
/home/nano/Desktop/images/16062025/16/19/image_16062025_16_19_54_9592.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366564719","1366564784","1366564544","1366564256","1366564797","1366564473"],"photo_ids_order":["1366564256","1366564473","1366564544","1366564719","1366564784","1366564797"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8f9e9992eaa03c9c774bd0c950c6400e.jpg","text":"TemporaryFile(/tmp/multipartBody5426830313788860736asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083733254,"filename":"image_16062025_16_20_15_9598.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f33ec8f1f8026a94f1d0c2a2b3657194.jpg","text":"TemporaryFile(/tmp/multipartBody5820179469413435210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083733254,"filename":"image_16062025_16_20_05_10609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/87cea82b3903035ab2e7dcee11551e78.jpg","text":"TemporaryFile(/tmp/multipartBody5201319663128796097asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083733254,"filename":"image_16062025_16_20_25_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ee7fb00b4802b4ddaf030484c2b7ee57.jpg","text":"TemporaryFile(/tmp/multipartBody7747662427330189561asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083733254,"filename":"image_16062025_16_20_45_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e980744cde82e842051be28d3c3e65a9.jpg","text":"TemporaryFile(/tmp/multipartBody3271683568261541393asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083733254,"filename":"image_16062025_16_19_54_9592.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/eaa849e9bcb8e806da2df0550b057871.jpg","text":"TemporaryFile(/tmp/multipartBody3091505878072464013asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083733254,"filename":"image_16062025_16_20_35_9643.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366564544","file1":"1366564473","file0":"1366564256","file4":"1366564784","file5":"1366564797","file3":"1366564719"},"map_files_photo_id_array":[{"photo_id":"1366564797","filename":"file5"},{"photo_id":"1366564544","filename":"file2"},{"photo_id":"1366564784","filename":"file4"},{"photo_id":"1366564473","filename":"file1"},{"photo_id":"1366564256","filename":"file0"},{"photo_id":"1366564719","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366564719":["hashtag1","hashtag2"]},{"1366564784":["hashtag1","hashtag2"]},{"1366564544":["hashtag1","hashtag2"]},{"1366564256":["hashtag1","hashtag2"]},{"1366564797":["hashtag1","hashtag2"]},{"1366564473":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366564719, 1366564784, 1366564544, 1366564256, 1366564797, 1366564473)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 120.62653136253357 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:23:17.430358
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/23/image_16062025_16_23_45_9606.jpg', 2), ('/home/nano/Desktop/images/16062025/16/23/image_16062025_16_23_35_10633.jpg', 2), ('/home/nano/Desktop/images/16062025/16/23/image_16062025_16_23_24_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/16/23/image_16062025_16_23_15_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/16/22/image_16062025_16_23_05_10629.jpg', 2), ('/home/nano/Desktop/images/16062025/16/22/image_16062025_16_22_55_9626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/23/image_16062025_16_23_45_9606.jpg', '/home/nano/Desktop/images/16062025/16/23/image_16062025_16_23_35_10633.jpg', '/home/nano/Desktop/images/16062025/16/23/image_16062025_16_23_24_9607.jpg', '/home/nano/Desktop/images/16062025/16/23/image_16062025_16_23_15_9608.jpg', '/home/nano/Desktop/images/16062025/16/22/image_16062025_16_23_05_10629.jpg', '/home/nano/Desktop/images/16062025/16/22/image_16062025_16_22_55_9626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/23/image_16062025_16_23_45_9606.jpg
/home/nano/Desktop/images/16062025/16/23/image_16062025_16_23_35_10633.jpg
/home/nano/Desktop/images/16062025/16/23/image_16062025_16_23_24_9607.jpg
/home/nano/Desktop/images/16062025/16/23/image_16062025_16_23_15_9608.jpg
/home/nano/Desktop/images/16062025/16/22/image_16062025_16_23_05_10629.jpg
/home/nano/Desktop/images/16062025/16/22/image_16062025_16_22_55_9626.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366564868","1366564847","1366564832","1366564840","1366564860","1366564854"],"photo_ids_order":["1366564832","1366564840","1366564847","1366564854","1366564860","1366564868"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fe98ffcf18999d051d91b685475edf1c.jpg","text":"TemporaryFile(/tmp/multipartBody4381478889351052733asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083870281,"filename":"image_16062025_16_22_55_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b447380be4da14ee2ab79cb21e8cd3a7.jpg","text":"TemporaryFile(/tmp/multipartBody3539502012490998714asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083870281,"filename":"image_16062025_16_23_24_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b74d7986c827ef55bbbea7a5ffcabe20.jpg","text":"TemporaryFile(/tmp/multipartBody5187795226753643939asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083870281,"filename":"image_16062025_16_23_45_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fde9f96a13fe234a6419270d2a24debe.jpg","text":"TemporaryFile(/tmp/multipartBody134478092304963187asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083870281,"filename":"image_16062025_16_23_35_10633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/29d519ca6a7a4a13681c82acd934a7e9.jpg","text":"TemporaryFile(/tmp/multipartBody6376742643097572178asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083870281,"filename":"image_16062025_16_23_05_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d05b10b093ba31a6499bbed1f1bc9619.jpg","text":"TemporaryFile(/tmp/multipartBody3491092799616419266asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750083870281,"filename":"image_16062025_16_23_15_9608.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366564847","file1":"1366564840","file0":"1366564832","file4":"1366564860","file5":"1366564868","file3":"1366564854"},"map_files_photo_id_array":[{"photo_id":"1366564868","filename":"file5"},{"photo_id":"1366564847","filename":"file2"},{"photo_id":"1366564860","filename":"file4"},{"photo_id":"1366564840","filename":"file1"},{"photo_id":"1366564832","filename":"file0"},{"photo_id":"1366564854","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366564868":["hashtag1","hashtag2"]},{"1366564847":["hashtag1","hashtag2"]},{"1366564832":["hashtag1","hashtag2"]},{"1366564840":["hashtag1","hashtag2"]},{"1366564860":["hashtag1","hashtag2"]},{"1366564854":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366564868, 1366564847, 1366564832, 1366564840, 1366564860, 1366564854)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 153.0182900428772 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:26:03.191522
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/25/image_16062025_16_25_45_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/16/25/image_16062025_16_25_35_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/16/25/image_16062025_16_25_25_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/16/25/image_16062025_16_25_14_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/16/24/image_16062025_16_25_05_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/16/24/image_16062025_16_24_55_10621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/25/image_16062025_16_25_45_10642.jpg', '/home/nano/Desktop/images/16062025/16/25/image_16062025_16_25_35_9636.jpg', '/home/nano/Desktop/images/16062025/16/25/image_16062025_16_25_25_10631.jpg', '/home/nano/Desktop/images/16062025/16/25/image_16062025_16_25_14_9626.jpg', '/home/nano/Desktop/images/16062025/16/24/image_16062025_16_25_05_9623.jpg', '/home/nano/Desktop/images/16062025/16/24/image_16062025_16_24_55_10621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/25/image_16062025_16_25_45_10642.jpg
/home/nano/Desktop/images/16062025/16/25/image_16062025_16_25_35_9636.jpg
/home/nano/Desktop/images/16062025/16/25/image_16062025_16_25_25_10631.jpg
/home/nano/Desktop/images/16062025/16/25/image_16062025_16_25_14_9626.jpg
/home/nano/Desktop/images/16062025/16/24/image_16062025_16_25_05_9623.jpg
/home/nano/Desktop/images/16062025/16/24/image_16062025_16_24_55_10621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366565039","1366565032","1366565026","1366565067","1366565055","1366565019"],"photo_ids_order":["1366565019","1366565026","1366565032","1366565039","1366565055","1366565067"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2a77d6ee085fdfddea1fb1cb9e3a3f75.jpg","text":"TemporaryFile(/tmp/multipartBody6946118399242121692asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084040456,"filename":"image_16062025_16_25_14_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d48966da72742523e849ca08ffab1b65.jpg","text":"TemporaryFile(/tmp/multipartBody4015267056966651426asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084040456,"filename":"image_16062025_16_25_25_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/091375879c6a663cdcbc7f734d667092.jpg","text":"TemporaryFile(/tmp/multipartBody4033225504348505580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084040456,"filename":"image_16062025_16_25_35_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c01b9f4e5f54d27f56c7b8334c1d3672.jpg","text":"TemporaryFile(/tmp/multipartBody5339225669503142976asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084040456,"filename":"image_16062025_16_24_55_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5695f2b30bf719413d14b711987e337f.jpg","text":"TemporaryFile(/tmp/multipartBody2107819773703189512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084040456,"filename":"image_16062025_16_25_05_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0d3c77fe3707b388f0ef6753012034c8.jpg","text":"TemporaryFile(/tmp/multipartBody1136852591852232951asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084040456,"filename":"image_16062025_16_25_45_10642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366565032","file1":"1366565026","file0":"1366565019","file4":"1366565055","file5":"1366565067","file3":"1366565039"},"map_files_photo_id_array":[{"photo_id":"1366565067","filename":"file5"},{"photo_id":"1366565032","filename":"file2"},{"photo_id":"1366565055","filename":"file4"},{"photo_id":"1366565026","filename":"file1"},{"photo_id":"1366565019","filename":"file0"},{"photo_id":"1366565039","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366565039":["hashtag1","hashtag2"]},{"1366565032":["hashtag1","hashtag2"]},{"1366565026":["hashtag1","hashtag2"]},{"1366565067":["hashtag1","hashtag2"]},{"1366565055":["hashtag1","hashtag2"]},{"1366565019":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366565039, 1366565032, 1366565026, 1366565067, 1366565055, 1366565019)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 86.8187415599823 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:27:31.819291
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/27/image_16062025_16_27_45_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/16/27/image_16062025_16_27_35_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/16/27/image_16062025_16_27_25_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/16/27/image_16062025_16_27_15_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/16/26/image_16062025_16_27_04_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/16/26/image_16062025_16_26_55_9636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/27/image_16062025_16_27_45_9651.jpg', '/home/nano/Desktop/images/16062025/16/27/image_16062025_16_27_35_10642.jpg', '/home/nano/Desktop/images/16062025/16/27/image_16062025_16_27_25_9636.jpg', '/home/nano/Desktop/images/16062025/16/27/image_16062025_16_27_15_10658.jpg', '/home/nano/Desktop/images/16062025/16/26/image_16062025_16_27_04_9655.jpg', '/home/nano/Desktop/images/16062025/16/26/image_16062025_16_26_55_9636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/27/image_16062025_16_27_45_9651.jpg
/home/nano/Desktop/images/16062025/16/27/image_16062025_16_27_35_10642.jpg
/home/nano/Desktop/images/16062025/16/27/image_16062025_16_27_25_9636.jpg
/home/nano/Desktop/images/16062025/16/27/image_16062025_16_27_15_10658.jpg
/home/nano/Desktop/images/16062025/16/26/image_16062025_16_27_04_9655.jpg
/home/nano/Desktop/images/16062025/16/26/image_16062025_16_26_55_9636.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366565089","1366565083","1366565077","1366565110","1366565118","1366565099"],"photo_ids_order":["1366565077","1366565083","1366565089","1366565099","1366565110","1366565118"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0641d861d1712fbfd4030cb4fbbf7216.jpg","text":"TemporaryFile(/tmp/multipartBody5185408505747970271asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084117468,"filename":"image_16062025_16_27_25_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6705467658e8f940299a7f66e04f2050.jpg","text":"TemporaryFile(/tmp/multipartBody7515550017198788894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084117468,"filename":"image_16062025_16_27_35_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e8cbdf8862969a2f6b0ac0912e5d4099.jpg","text":"TemporaryFile(/tmp/multipartBody586080490973277644asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084117468,"filename":"image_16062025_16_27_45_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6e4d03c1faa628fe7b45efacaab8d1fb.jpg","text":"TemporaryFile(/tmp/multipartBody7016745114376467850asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084117468,"filename":"image_16062025_16_27_04_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3d4fa1e98ff5478f429f3b26abde2aaf.jpg","text":"TemporaryFile(/tmp/multipartBody2897359298355470773asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084117468,"filename":"image_16062025_16_26_55_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f1a7f36801f2d4eb6e83afb9d71051b1.jpg","text":"TemporaryFile(/tmp/multipartBody4889389482283626888asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084117468,"filename":"image_16062025_16_27_15_10658.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366565089","file1":"1366565083","file0":"1366565077","file4":"1366565110","file5":"1366565118","file3":"1366565099"},"map_files_photo_id_array":[{"photo_id":"1366565118","filename":"file5"},{"photo_id":"1366565089","filename":"file2"},{"photo_id":"1366565110","filename":"file4"},{"photo_id":"1366565083","filename":"file1"},{"photo_id":"1366565077","filename":"file0"},{"photo_id":"1366565099","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366565089":["hashtag1","hashtag2"]},{"1366565083":["hashtag1","hashtag2"]},{"1366565077":["hashtag1","hashtag2"]},{"1366565110":["hashtag1","hashtag2"]},{"1366565118":["hashtag1","hashtag2"]},{"1366565099":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366565089, 1366565083, 1366565077, 1366565110, 1366565118, 1366565099)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 99.56975769996643 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:29:17.017795
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/29/image_16062025_16_29_45_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/16/29/image_16062025_16_29_35_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/16/29/image_16062025_16_29_24_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/16/29/image_16062025_16_29_15_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/16/28/image_16062025_16_29_05_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/16/28/image_16062025_16_28_55_9639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/29/image_16062025_16_29_45_9644.jpg', '/home/nano/Desktop/images/16062025/16/29/image_16062025_16_29_35_10635.jpg', '/home/nano/Desktop/images/16062025/16/29/image_16062025_16_29_24_9652.jpg', '/home/nano/Desktop/images/16062025/16/29/image_16062025_16_29_15_9677.jpg', '/home/nano/Desktop/images/16062025/16/28/image_16062025_16_29_05_10653.jpg', '/home/nano/Desktop/images/16062025/16/28/image_16062025_16_28_55_9639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/29/image_16062025_16_29_45_9644.jpg
/home/nano/Desktop/images/16062025/16/29/image_16062025_16_29_35_10635.jpg
/home/nano/Desktop/images/16062025/16/29/image_16062025_16_29_24_9652.jpg
/home/nano/Desktop/images/16062025/16/29/image_16062025_16_29_15_9677.jpg
/home/nano/Desktop/images/16062025/16/28/image_16062025_16_29_05_10653.jpg
/home/nano/Desktop/images/16062025/16/28/image_16062025_16_28_55_9639.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366565132","1366565146","1366565166","1366565160","1366565154","1366565142"],"photo_ids_order":["1366565132","1366565142","1366565146","1366565154","1366565160","1366565166"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/227e939573106802061768bab39ee1fa.jpg","text":"TemporaryFile(/tmp/multipartBody8513300275287981096asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084224308,"filename":"image_16062025_16_29_45_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f142c52c330cca78cec459de3c054c73.jpg","text":"TemporaryFile(/tmp/multipartBody1221832936121236140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084224308,"filename":"image_16062025_16_29_24_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/34ac3eb07ec48943559106be059a69ad.jpg","text":"TemporaryFile(/tmp/multipartBody1189035973751934007asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084224308,"filename":"image_16062025_16_28_55_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ae11d464c26c77a00225e7e27c9d10df.jpg","text":"TemporaryFile(/tmp/multipartBody7889130398276248005asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084224308,"filename":"image_16062025_16_29_05_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/40a57900459bf467cf0eb84b7808b285.jpg","text":"TemporaryFile(/tmp/multipartBody6167548158066008415asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084224308,"filename":"image_16062025_16_29_15_9677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c4274964705a73a74b979e49a2f118e7.jpg","text":"TemporaryFile(/tmp/multipartBody266939249809798867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084224308,"filename":"image_16062025_16_29_35_10635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366565146","file1":"1366565142","file0":"1366565132","file4":"1366565160","file5":"1366565166","file3":"1366565154"},"map_files_photo_id_array":[{"photo_id":"1366565166","filename":"file5"},{"photo_id":"1366565146","filename":"file2"},{"photo_id":"1366565160","filename":"file4"},{"photo_id":"1366565142","filename":"file1"},{"photo_id":"1366565132","filename":"file0"},{"photo_id":"1366565154","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366565132":["hashtag1","hashtag2"]},{"1366565146":["hashtag1","hashtag2"]},{"1366565166":["hashtag1","hashtag2"]},{"1366565160":["hashtag1","hashtag2"]},{"1366565154":["hashtag1","hashtag2"]},{"1366565142":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366565132, 1366565146, 1366565166, 1366565160, 1366565154, 1366565142)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 85.85173892974854 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:30:47.146611
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/30/image_16062025_16_30_45_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/16/30/image_16062025_16_30_35_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/16/30/image_16062025_16_30_25_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/16/30/image_16062025_16_30_15_9663.jpg', 2), ('/home/nano/Desktop/images/16062025/16/29/image_16062025_16_30_05_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/16/29/image_16062025_16_29_54_9622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/30/image_16062025_16_30_45_9626.jpg', '/home/nano/Desktop/images/16062025/16/30/image_16062025_16_30_35_9621.jpg', '/home/nano/Desktop/images/16062025/16/30/image_16062025_16_30_25_10646.jpg', '/home/nano/Desktop/images/16062025/16/30/image_16062025_16_30_15_9663.jpg', '/home/nano/Desktop/images/16062025/16/29/image_16062025_16_30_05_10645.jpg', '/home/nano/Desktop/images/16062025/16/29/image_16062025_16_29_54_9622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/30/image_16062025_16_30_45_9626.jpg
/home/nano/Desktop/images/16062025/16/30/image_16062025_16_30_35_9621.jpg
/home/nano/Desktop/images/16062025/16/30/image_16062025_16_30_25_10646.jpg
/home/nano/Desktop/images/16062025/16/30/image_16062025_16_30_15_9663.jpg
/home/nano/Desktop/images/16062025/16/29/image_16062025_16_30_05_10645.jpg
/home/nano/Desktop/images/16062025/16/29/image_16062025_16_29_54_9622.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366565392","1366565416","1366565410","1366565401","1366565265","1366565181"],"photo_ids_order":["1366565181","1366565265","1366565392","1366565401","1366565410","1366565416"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/70f2fd8db2363c1f151d9ad8e8411160.jpg","text":"TemporaryFile(/tmp/multipartBody7987003979723172692asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084309936,"filename":"image_16062025_16_30_25_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e93b2b536c7c44d82ebc73d940ab940a.jpg","text":"TemporaryFile(/tmp/multipartBody2250167801930437572asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084309936,"filename":"image_16062025_16_29_54_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/17291a01725c70090272521cd0ac6f30.jpg","text":"TemporaryFile(/tmp/multipartBody9140430304286135926asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084309936,"filename":"image_16062025_16_30_05_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6dd8cb250d234d4f4987965c99749382.jpg","text":"TemporaryFile(/tmp/multipartBody2766175753529984999asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084309936,"filename":"image_16062025_16_30_15_9663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/98b6b2511333cbd42312926f9a7b33e3.jpg","text":"TemporaryFile(/tmp/multipartBody6169341703864740206asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084309936,"filename":"image_16062025_16_30_35_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/29a6762fa7412eece27f28903d280a3c.jpg","text":"TemporaryFile(/tmp/multipartBody3932923233149272923asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084309936,"filename":"image_16062025_16_30_45_9626.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366565392","file1":"1366565265","file0":"1366565181","file4":"1366565410","file5":"1366565416","file3":"1366565401"},"map_files_photo_id_array":[{"photo_id":"1366565416","filename":"file5"},{"photo_id":"1366565392","filename":"file2"},{"photo_id":"1366565410","filename":"file4"},{"photo_id":"1366565265","filename":"file1"},{"photo_id":"1366565181","filename":"file0"},{"photo_id":"1366565401","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366565392":["hashtag1","hashtag2"]},{"1366565416":["hashtag1","hashtag2"]},{"1366565410":["hashtag1","hashtag2"]},{"1366565401":["hashtag1","hashtag2"]},{"1366565265":["hashtag1","hashtag2"]},{"1366565181":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366565392, 1366565416, 1366565410, 1366565401, 1366565265, 1366565181)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 120.27853775024414 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:33:03.148287
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/32/image_16062025_16_32_45_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/16/32/image_16062025_16_32_35_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/16/32/image_16062025_16_32_25_9648.jpg', 2), ('/home/nano/Desktop/images/16062025/16/32/image_16062025_16_32_15_9731.jpg', 2), ('/home/nano/Desktop/images/16062025/16/31/image_16062025_16_32_05_10727.jpg', 2), ('/home/nano/Desktop/images/16062025/16/31/image_16062025_16_31_54_9711.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/32/image_16062025_16_32_45_9658.jpg', '/home/nano/Desktop/images/16062025/16/32/image_16062025_16_32_35_10650.jpg', '/home/nano/Desktop/images/16062025/16/32/image_16062025_16_32_25_9648.jpg', '/home/nano/Desktop/images/16062025/16/32/image_16062025_16_32_15_9731.jpg', '/home/nano/Desktop/images/16062025/16/31/image_16062025_16_32_05_10727.jpg', '/home/nano/Desktop/images/16062025/16/31/image_16062025_16_31_54_9711.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/32/image_16062025_16_32_45_9658.jpg
/home/nano/Desktop/images/16062025/16/32/image_16062025_16_32_35_10650.jpg
/home/nano/Desktop/images/16062025/16/32/image_16062025_16_32_25_9648.jpg
/home/nano/Desktop/images/16062025/16/32/image_16062025_16_32_15_9731.jpg
/home/nano/Desktop/images/16062025/16/31/image_16062025_16_32_05_10727.jpg
/home/nano/Desktop/images/16062025/16/31/image_16062025_16_31_54_9711.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366565450","1366565432","1366565435","1366565458","1366565443","1366565468"],"photo_ids_order":["1366565432","1366565435","1366565443","1366565450","1366565458","1366565468"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/62afc0529f79c442d375f68d1e542a8c.jpg","text":"TemporaryFile(/tmp/multipartBody8231428136585169957asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084449557,"filename":"image_16062025_16_32_15_9731.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/16e9198563109aa0748c44d26a080b3a.jpg","text":"TemporaryFile(/tmp/multipartBody782294601104901978asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084449557,"filename":"image_16062025_16_32_45_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cfb408e6c75f6ea47de5de7cad6cbbf5.jpg","text":"TemporaryFile(/tmp/multipartBody511624458443552107asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084449557,"filename":"image_16062025_16_32_35_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/96585e187b8e8be603660b72453b0b84.jpg","text":"TemporaryFile(/tmp/multipartBody5367532518630642603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084449557,"filename":"image_16062025_16_32_05_10727.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/063a86ff47bd4d92e1862eb5df6cab86.jpg","text":"TemporaryFile(/tmp/multipartBody3487615271421800171asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084449557,"filename":"image_16062025_16_32_25_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/81e0decbc135d44ade823750de46e2f1.jpg","text":"TemporaryFile(/tmp/multipartBody6367593448084680182asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084449557,"filename":"image_16062025_16_31_54_9711.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366565443","file1":"1366565435","file0":"1366565432","file4":"1366565458","file5":"1366565468","file3":"1366565450"},"map_files_photo_id_array":[{"photo_id":"1366565468","filename":"file5"},{"photo_id":"1366565443","filename":"file2"},{"photo_id":"1366565458","filename":"file4"},{"photo_id":"1366565435","filename":"file1"},{"photo_id":"1366565432","filename":"file0"},{"photo_id":"1366565450","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366565450":["hashtag1","hashtag2"]},{"1366565432":["hashtag1","hashtag2"]},{"1366565435":["hashtag1","hashtag2"]},{"1366565458":["hashtag1","hashtag2"]},{"1366565443":["hashtag1","hashtag2"]},{"1366565468":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366565450, 1366565432, 1366565435, 1366565458, 1366565443, 1366565468)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 103.12157487869263 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:34:47.585078
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/34/image_16062025_16_34_45_9648.jpg', 2), ('/home/nano/Desktop/images/16062025/16/34/image_16062025_16_34_35_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/16/34/image_16062025_16_34_25_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/16/34/image_16062025_16_34_15_9760.jpg', 2), ('/home/nano/Desktop/images/16062025/16/33/image_16062025_16_34_05_10690.jpg', 2), ('/home/nano/Desktop/images/16062025/16/33/image_16062025_16_33_54_9681.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/34/image_16062025_16_34_45_9648.jpg', '/home/nano/Desktop/images/16062025/16/34/image_16062025_16_34_35_10636.jpg', '/home/nano/Desktop/images/16062025/16/34/image_16062025_16_34_25_9657.jpg', '/home/nano/Desktop/images/16062025/16/34/image_16062025_16_34_15_9760.jpg', '/home/nano/Desktop/images/16062025/16/33/image_16062025_16_34_05_10690.jpg', '/home/nano/Desktop/images/16062025/16/33/image_16062025_16_33_54_9681.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/34/image_16062025_16_34_45_9648.jpg
/home/nano/Desktop/images/16062025/16/34/image_16062025_16_34_35_10636.jpg
/home/nano/Desktop/images/16062025/16/34/image_16062025_16_34_25_9657.jpg
/home/nano/Desktop/images/16062025/16/34/image_16062025_16_34_15_9760.jpg
/home/nano/Desktop/images/16062025/16/33/image_16062025_16_34_05_10690.jpg
/home/nano/Desktop/images/16062025/16/33/image_16062025_16_33_54_9681.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366565513","1366565506","1366565481","1366565499","1366565492","1366565486"],"photo_ids_order":["1366565481","1366565486","1366565492","1366565499","1366565506","1366565513"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3e02525b787408ac133e0f73686c82be.jpg","text":"TemporaryFile(/tmp/multipartBody2890953530833093811asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084555720,"filename":"image_16062025_16_33_54_9681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c10fe9df3d106582cd9283446b61ba8a.jpg","text":"TemporaryFile(/tmp/multipartBody3159115697939572415asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084555720,"filename":"image_16062025_16_34_05_10690.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4cc8abe80d9591e68e43521a448cecb3.jpg","text":"TemporaryFile(/tmp/multipartBody406643262612249895asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084555720,"filename":"image_16062025_16_34_45_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b17074b3c14a0c39b44c0e6331b67b14.jpg","text":"TemporaryFile(/tmp/multipartBody243772319044361554asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084555720,"filename":"image_16062025_16_34_15_9760.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/637fb1068469fa06e4881ddf78a444eb.jpg","text":"TemporaryFile(/tmp/multipartBody3384985100275267115asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084555720,"filename":"image_16062025_16_34_25_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d934c38924475969f8f94d03874f25f5.jpg","text":"TemporaryFile(/tmp/multipartBody3260744369339218612asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084555720,"filename":"image_16062025_16_34_35_10636.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366565492","file1":"1366565486","file0":"1366565481","file4":"1366565506","file5":"1366565513","file3":"1366565499"},"map_files_photo_id_array":[{"photo_id":"1366565513","filename":"file5"},{"photo_id":"1366565492","filename":"file2"},{"photo_id":"1366565506","filename":"file4"},{"photo_id":"1366565486","filename":"file1"},{"photo_id":"1366565481","filename":"file0"},{"photo_id":"1366565499","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366565513":["hashtag1","hashtag2"]},{"1366565506":["hashtag1","hashtag2"]},{"1366565481":["hashtag1","hashtag2"]},{"1366565499":["hashtag1","hashtag2"]},{"1366565492":["hashtag1","hashtag2"]},{"1366565486":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366565513, 1366565506, 1366565481, 1366565499, 1366565492, 1366565486)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 84.3123528957367 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:36:16.781526
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/36/image_16062025_16_36_45_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/16/36/image_16062025_16_36_35_10659.jpg', 2), ('/home/nano/Desktop/images/16062025/16/36/image_16062025_16_36_25_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/16/36/image_16062025_16_36_15_9693.jpg', 2), ('/home/nano/Desktop/images/16062025/16/35/image_16062025_16_36_05_10678.jpg', 2), ('/home/nano/Desktop/images/16062025/16/35/image_16062025_16_35_55_9626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/36/image_16062025_16_36_45_9671.jpg', '/home/nano/Desktop/images/16062025/16/36/image_16062025_16_36_35_10659.jpg', '/home/nano/Desktop/images/16062025/16/36/image_16062025_16_36_25_9640.jpg', '/home/nano/Desktop/images/16062025/16/36/image_16062025_16_36_15_9693.jpg', '/home/nano/Desktop/images/16062025/16/35/image_16062025_16_36_05_10678.jpg', '/home/nano/Desktop/images/16062025/16/35/image_16062025_16_35_55_9626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/36/image_16062025_16_36_45_9671.jpg
/home/nano/Desktop/images/16062025/16/36/image_16062025_16_36_35_10659.jpg
/home/nano/Desktop/images/16062025/16/36/image_16062025_16_36_25_9640.jpg
/home/nano/Desktop/images/16062025/16/36/image_16062025_16_36_15_9693.jpg
/home/nano/Desktop/images/16062025/16/35/image_16062025_16_36_05_10678.jpg
/home/nano/Desktop/images/16062025/16/35/image_16062025_16_35_55_9626.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366565558","1366565534","1366565544","1366565553","1366565526","1366565538"],"photo_ids_order":["1366565526","1366565534","1366565538","1366565544","1366565553","1366565558"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f97a9022921b9342e49f6ff119844d15.jpg","text":"TemporaryFile(/tmp/multipartBody4195496537994554559asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084640882,"filename":"image_16062025_16_35_55_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a439b39550fe1e24c9121dfb4f7705d4.jpg","text":"TemporaryFile(/tmp/multipartBody4777717969704345403asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084640882,"filename":"image_16062025_16_36_35_10659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/239960d3bee4dee17f8335fbcc63032e.jpg","text":"TemporaryFile(/tmp/multipartBody3822358772236520992asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084640882,"filename":"image_16062025_16_36_15_9693.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cf201692b7ce7c8f3f1638838506bbe1.jpg","text":"TemporaryFile(/tmp/multipartBody463536717508253091asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084640882,"filename":"image_16062025_16_36_05_10678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/09f9ef3738a10b1832df13767f319d46.jpg","text":"TemporaryFile(/tmp/multipartBody2958925424644656805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084640882,"filename":"image_16062025_16_36_45_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b76020108bb9ceaf4b5374785907c666.jpg","text":"TemporaryFile(/tmp/multipartBody3662561714657326766asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084640882,"filename":"image_16062025_16_36_25_9640.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366565538","file1":"1366565534","file0":"1366565526","file4":"1366565553","file5":"1366565558","file3":"1366565544"},"map_files_photo_id_array":[{"photo_id":"1366565558","filename":"file5"},{"photo_id":"1366565538","filename":"file2"},{"photo_id":"1366565553","filename":"file4"},{"photo_id":"1366565534","filename":"file1"},{"photo_id":"1366565526","filename":"file0"},{"photo_id":"1366565544","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366565558":["hashtag1","hashtag2"]},{"1366565534":["hashtag1","hashtag2"]},{"1366565544":["hashtag1","hashtag2"]},{"1366565553":["hashtag1","hashtag2"]},{"1366565526":["hashtag1","hashtag2"]},{"1366565538":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366565558, 1366565534, 1366565544, 1366565553, 1366565526, 1366565538)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 69.20443916320801 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:37:31.888687
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/37/image_16062025_16_37_45_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/16/37/image_16062025_16_37_35_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/16/37/image_16062025_16_37_24_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/16/37/image_16062025_16_37_15_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/16/36/image_16062025_16_37_05_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/16/36/image_16062025_16_36_55_9661.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/37/image_16062025_16_37_45_9649.jpg', '/home/nano/Desktop/images/16062025/16/37/image_16062025_16_37_35_10656.jpg', '/home/nano/Desktop/images/16062025/16/37/image_16062025_16_37_24_9628.jpg', '/home/nano/Desktop/images/16062025/16/37/image_16062025_16_37_15_9628.jpg', '/home/nano/Desktop/images/16062025/16/36/image_16062025_16_37_05_10653.jpg', '/home/nano/Desktop/images/16062025/16/36/image_16062025_16_36_55_9661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/37/image_16062025_16_37_45_9649.jpg
/home/nano/Desktop/images/16062025/16/37/image_16062025_16_37_35_10656.jpg
/home/nano/Desktop/images/16062025/16/37/image_16062025_16_37_24_9628.jpg
/home/nano/Desktop/images/16062025/16/37/image_16062025_16_37_15_9628.jpg
/home/nano/Desktop/images/16062025/16/36/image_16062025_16_37_05_10653.jpg
/home/nano/Desktop/images/16062025/16/36/image_16062025_16_36_55_9661.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366565570","1366565587","1366565581","1366565595","1366565577","1366565601"],"photo_ids_order":["1366565570","1366565577","1366565581","1366565587","1366565595","1366565601"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0839896aec0355b29e1998964364f1b0.jpg","text":"TemporaryFile(/tmp/multipartBody3816739150270959184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084714956,"filename":"image_16062025_16_37_45_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a1815ace140ffb00cd185c981def7174.jpg","text":"TemporaryFile(/tmp/multipartBody1794861108219513287asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084714956,"filename":"image_16062025_16_37_15_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bbc3169d9c7cd35720c92301d9afd1c8.jpg","text":"TemporaryFile(/tmp/multipartBody1076756623728283073asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084714956,"filename":"image_16062025_16_37_24_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7418c537cfdacf7225b9de7d389437cc.jpg","text":"TemporaryFile(/tmp/multipartBody4165605893652564083asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084714956,"filename":"image_16062025_16_37_05_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/15effb568704154afcb86466ab892eb9.jpg","text":"TemporaryFile(/tmp/multipartBody6800095362409829305asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084714956,"filename":"image_16062025_16_37_35_10656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5a6b9a5bf78fae225c575c9a1da309db.jpg","text":"TemporaryFile(/tmp/multipartBody6254860913462250085asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084714956,"filename":"image_16062025_16_36_55_9661.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366565581","file1":"1366565577","file0":"1366565570","file4":"1366565595","file5":"1366565601","file3":"1366565587"},"map_files_photo_id_array":[{"photo_id":"1366565601","filename":"file5"},{"photo_id":"1366565581","filename":"file2"},{"photo_id":"1366565595","filename":"file4"},{"photo_id":"1366565577","filename":"file1"},{"photo_id":"1366565570","filename":"file0"},{"photo_id":"1366565587","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366565570":["hashtag1","hashtag2"]},{"1366565587":["hashtag1","hashtag2"]},{"1366565581":["hashtag1","hashtag2"]},{"1366565595":["hashtag1","hashtag2"]},{"1366565577":["hashtag1","hashtag2"]},{"1366565601":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366565570, 1366565587, 1366565581, 1366565595, 1366565577, 1366565601)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 65.67786574363708 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:38:46.979447
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/38/image_16062025_16_38_45_9653.jpg', 2), ('/home/nano/Desktop/images/16062025/16/38/image_16062025_16_38_35_10657.jpg', 2), ('/home/nano/Desktop/images/16062025/16/38/image_16062025_16_38_24_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/16/38/image_16062025_16_38_15_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/16/37/image_16062025_16_38_05_10673.jpg', 2), ('/home/nano/Desktop/images/16062025/16/37/image_16062025_16_37_54_9661.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/38/image_16062025_16_38_45_9653.jpg', '/home/nano/Desktop/images/16062025/16/38/image_16062025_16_38_35_10657.jpg', '/home/nano/Desktop/images/16062025/16/38/image_16062025_16_38_24_9618.jpg', '/home/nano/Desktop/images/16062025/16/38/image_16062025_16_38_15_9667.jpg', '/home/nano/Desktop/images/16062025/16/37/image_16062025_16_38_05_10673.jpg', '/home/nano/Desktop/images/16062025/16/37/image_16062025_16_37_54_9661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/38/image_16062025_16_38_45_9653.jpg
/home/nano/Desktop/images/16062025/16/38/image_16062025_16_38_35_10657.jpg
/home/nano/Desktop/images/16062025/16/38/image_16062025_16_38_24_9618.jpg
/home/nano/Desktop/images/16062025/16/38/image_16062025_16_38_15_9667.jpg
/home/nano/Desktop/images/16062025/16/37/image_16062025_16_38_05_10673.jpg
/home/nano/Desktop/images/16062025/16/37/image_16062025_16_37_54_9661.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366565759","1366565645","1366565618","1366565860","1366565614","1366565940"],"photo_ids_order":["1366565614","1366565618","1366565645","1366565759","1366565860","1366565940"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a9c84392bb3cfc2d27e3f75a1ad7e639.jpg","text":"TemporaryFile(/tmp/multipartBody4575467138036901883asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084793727,"filename":"image_16062025_16_38_15_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/97b3a7429ad51331da03a6a4ae8a8164.jpg","text":"TemporaryFile(/tmp/multipartBody5261620792684214581asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084793727,"filename":"image_16062025_16_38_24_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/47758ab2607789e5b5b10d8555841035.jpg","text":"TemporaryFile(/tmp/multipartBody4583916470984820415asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084793727,"filename":"image_16062025_16_38_35_10657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5485f08944d4b158b8cfc3ef2a14795d.jpg","text":"TemporaryFile(/tmp/multipartBody4415899619896235662asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084793727,"filename":"image_16062025_16_38_05_10673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bd502cb0361f5be41b2fc5d3670e9eb8.jpg","text":"TemporaryFile(/tmp/multipartBody709786823107599725asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084793727,"filename":"image_16062025_16_38_45_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/002883fdefb0d262816102f4ef9da9ff.jpg","text":"TemporaryFile(/tmp/multipartBody7338174322500806835asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084793727,"filename":"image_16062025_16_37_54_9661.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366565645","file1":"1366565618","file0":"1366565614","file4":"1366565860","file5":"1366565940","file3":"1366565759"},"map_files_photo_id_array":[{"photo_id":"1366565940","filename":"file5"},{"photo_id":"1366565645","filename":"file2"},{"photo_id":"1366565860","filename":"file4"},{"photo_id":"1366565618","filename":"file1"},{"photo_id":"1366565614","filename":"file0"},{"photo_id":"1366565759","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366565759":["hashtag1","hashtag2"]},{"1366565645":["hashtag1","hashtag2"]},{"1366565618":["hashtag1","hashtag2"]},{"1366565860":["hashtag1","hashtag2"]},{"1366565614":["hashtag1","hashtag2"]},{"1366565940":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366565759, 1366565645, 1366565618, 1366565860, 1366565614, 1366565940)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 90.02503156661987 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:40:32.221388
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/40/image_16062025_16_40_45_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/16/40/image_16062025_16_40_35_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/16/40/image_16062025_16_40_25_10657.jpg', 2), ('/home/nano/Desktop/images/16062025/16/40/image_16062025_16_40_15_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/16/39/image_16062025_16_40_05_9687.jpg', 2), ('/home/nano/Desktop/images/16062025/16/39/image_16062025_16_39_55_10684.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/40/image_16062025_16_40_45_9647.jpg', '/home/nano/Desktop/images/16062025/16/40/image_16062025_16_40_35_9635.jpg', '/home/nano/Desktop/images/16062025/16/40/image_16062025_16_40_25_10657.jpg', '/home/nano/Desktop/images/16062025/16/40/image_16062025_16_40_15_9640.jpg', '/home/nano/Desktop/images/16062025/16/39/image_16062025_16_40_05_9687.jpg', '/home/nano/Desktop/images/16062025/16/39/image_16062025_16_39_55_10684.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/40/image_16062025_16_40_45_9647.jpg
/home/nano/Desktop/images/16062025/16/40/image_16062025_16_40_35_9635.jpg
/home/nano/Desktop/images/16062025/16/40/image_16062025_16_40_25_10657.jpg
/home/nano/Desktop/images/16062025/16/40/image_16062025_16_40_15_9640.jpg
/home/nano/Desktop/images/16062025/16/39/image_16062025_16_40_05_9687.jpg
/home/nano/Desktop/images/16062025/16/39/image_16062025_16_39_55_10684.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366566481","1366566364","1366566325","1366566357","1366566395","1366566353"],"photo_ids_order":["1366566325","1366566353","1366566357","1366566364","1366566395","1366566481"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d37596e57a5970c3e42260f9ceb7e8b2.jpg","text":"TemporaryFile(/tmp/multipartBody545638810113420011asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084897525,"filename":"image_16062025_16_39_55_10684.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/afc68c47fddcbc405cf48308c6dd940c.jpg","text":"TemporaryFile(/tmp/multipartBody6833792089290129740asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084897525,"filename":"image_16062025_16_40_15_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/21c630766779594bdda10ffccbf54e30.jpg","text":"TemporaryFile(/tmp/multipartBody5393600581948389104asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084897525,"filename":"image_16062025_16_40_45_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e9b3af6ebfaee897979450174ff9dfff.jpg","text":"TemporaryFile(/tmp/multipartBody1063216708310058992asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084897525,"filename":"image_16062025_16_40_25_10657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b6c7317ac3f2c7749d28f1921e76debd.jpg","text":"TemporaryFile(/tmp/multipartBody5074904231710595310asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084897525,"filename":"image_16062025_16_40_05_9687.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d518cbf82ebcc31b6c3ec4059b05bd45.jpg","text":"TemporaryFile(/tmp/multipartBody529891991139598093asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750084897525,"filename":"image_16062025_16_40_35_9635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366566357","file1":"1366566353","file0":"1366566325","file4":"1366566395","file5":"1366566481","file3":"1366566364"},"map_files_photo_id_array":[{"photo_id":"1366566481","filename":"file5"},{"photo_id":"1366566357","filename":"file2"},{"photo_id":"1366566395","filename":"file4"},{"photo_id":"1366566353","filename":"file1"},{"photo_id":"1366566325","filename":"file0"},{"photo_id":"1366566364","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366566481":["hashtag1","hashtag2"]},{"1366566364":["hashtag1","hashtag2"]},{"1366566325":["hashtag1","hashtag2"]},{"1366566357":["hashtag1","hashtag2"]},{"1366566395":["hashtag1","hashtag2"]},{"1366566353":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366566481, 1366566364, 1366566325, 1366566357, 1366566395, 1366566353)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 98.11011552810669 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:42:17.457902
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/42/image_16062025_16_42_44_9662.jpg', 2), ('/home/nano/Desktop/images/16062025/16/42/image_16062025_16_42_35_9661.jpg', 2), ('/home/nano/Desktop/images/16062025/16/42/image_16062025_16_42_25_10664.jpg', 2), ('/home/nano/Desktop/images/16062025/16/42/image_16062025_16_42_14_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/16/41/image_16062025_16_42_05_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/16/41/image_16062025_16_41_55_10645.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/42/image_16062025_16_42_44_9662.jpg', '/home/nano/Desktop/images/16062025/16/42/image_16062025_16_42_35_9661.jpg', '/home/nano/Desktop/images/16062025/16/42/image_16062025_16_42_25_10664.jpg', '/home/nano/Desktop/images/16062025/16/42/image_16062025_16_42_14_9645.jpg', '/home/nano/Desktop/images/16062025/16/41/image_16062025_16_42_05_9629.jpg', '/home/nano/Desktop/images/16062025/16/41/image_16062025_16_41_55_10645.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/42/image_16062025_16_42_44_9662.jpg
/home/nano/Desktop/images/16062025/16/42/image_16062025_16_42_35_9661.jpg
/home/nano/Desktop/images/16062025/16/42/image_16062025_16_42_25_10664.jpg
/home/nano/Desktop/images/16062025/16/42/image_16062025_16_42_14_9645.jpg
/home/nano/Desktop/images/16062025/16/41/image_16062025_16_42_05_9629.jpg
/home/nano/Desktop/images/16062025/16/41/image_16062025_16_41_55_10645.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366567053","1366566717","1366566630","1366566890","1366566593","1366566587"],"photo_ids_order":["1366566587","1366566593","1366566630","1366566717","1366566890","1366567053"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9d03a9e121aa6e27b431593630154db7.jpg","text":"TemporaryFile(/tmp/multipartBody4166782345882836979asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085001640,"filename":"image_16062025_16_41_55_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8086f004e9b7f71fa65c48219469296b.jpg","text":"TemporaryFile(/tmp/multipartBody7484140086694263354asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085001640,"filename":"image_16062025_16_42_14_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/736cb887d29d14eab2322e83b2b1d02c.jpg","text":"TemporaryFile(/tmp/multipartBody2718101685862451033asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085001640,"filename":"image_16062025_16_42_25_10664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f38d9ec31d1cc20ae1f0d6ad6bd91f0e.jpg","text":"TemporaryFile(/tmp/multipartBody5071684603555067027asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085001640,"filename":"image_16062025_16_42_05_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5cd729f277f69332fe703cdc2a28957b.jpg","text":"TemporaryFile(/tmp/multipartBody3444364847719274088asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085001640,"filename":"image_16062025_16_42_35_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9dc7cffb069cfa277a353efecccdd95c.jpg","text":"TemporaryFile(/tmp/multipartBody5972902551456738010asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085001640,"filename":"image_16062025_16_42_44_9662.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366566630","file1":"1366566593","file0":"1366566587","file4":"1366566890","file5":"1366567053","file3":"1366566717"},"map_files_photo_id_array":[{"photo_id":"1366567053","filename":"file5"},{"photo_id":"1366566630","filename":"file2"},{"photo_id":"1366566890","filename":"file4"},{"photo_id":"1366566593","filename":"file1"},{"photo_id":"1366566587","filename":"file0"},{"photo_id":"1366566717","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366567053":["hashtag1","hashtag2"]},{"1366566717":["hashtag1","hashtag2"]},{"1366566630":["hashtag1","hashtag2"]},{"1366566890":["hashtag1","hashtag2"]},{"1366566593":["hashtag1","hashtag2"]},{"1366566587":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366567053, 1366566717, 1366566630, 1366566890, 1366566593, 1366566587)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 90.21112847328186 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:44:03.587617
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/43/image_16062025_16_43_45_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/16/43/image_16062025_16_43_35_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/16/43/image_16062025_16_43_25_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/16/43/image_16062025_16_43_15_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/16/42/image_16062025_16_43_05_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/16/42/image_16062025_16_42_55_10640.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/43/image_16062025_16_43_45_10640.jpg', '/home/nano/Desktop/images/16062025/16/43/image_16062025_16_43_35_9644.jpg', '/home/nano/Desktop/images/16062025/16/43/image_16062025_16_43_25_9630.jpg', '/home/nano/Desktop/images/16062025/16/43/image_16062025_16_43_15_10648.jpg', '/home/nano/Desktop/images/16062025/16/42/image_16062025_16_43_05_9628.jpg', '/home/nano/Desktop/images/16062025/16/42/image_16062025_16_42_55_10640.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/43/image_16062025_16_43_45_10640.jpg
/home/nano/Desktop/images/16062025/16/43/image_16062025_16_43_35_9644.jpg
/home/nano/Desktop/images/16062025/16/43/image_16062025_16_43_25_9630.jpg
/home/nano/Desktop/images/16062025/16/43/image_16062025_16_43_15_10648.jpg
/home/nano/Desktop/images/16062025/16/42/image_16062025_16_43_05_9628.jpg
/home/nano/Desktop/images/16062025/16/42/image_16062025_16_42_55_10640.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366567429","1366567293","1366567897","1366567939","1366567654","1366567264"],"photo_ids_order":["1366567264","1366567293","1366567429","1366567654","1366567897","1366567939"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9747b5d88f157b5a5c3b57498687fee1.jpg","text":"TemporaryFile(/tmp/multipartBody1938344111366413907asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085107199,"filename":"image_16062025_16_43_25_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8a7dfc3747a405e6dd8ab66d49a619fd.jpg","text":"TemporaryFile(/tmp/multipartBody4491511158350246117asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085107199,"filename":"image_16062025_16_43_35_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6cec1fc1c616ff0e307c7e69c341035d.jpg","text":"TemporaryFile(/tmp/multipartBody206655207725699472asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085107199,"filename":"image_16062025_16_43_05_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0e4fe8c816787b22e2a60e55b277c4d1.jpg","text":"TemporaryFile(/tmp/multipartBody8097621264738380998asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085107199,"filename":"image_16062025_16_42_55_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e0f2ad8ed92b82c7e9d64f48ccbb5953.jpg","text":"TemporaryFile(/tmp/multipartBody4783582534031856171asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085107199,"filename":"image_16062025_16_43_15_10648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/82b3f690cd872a0d20ee06dd392518fb.jpg","text":"TemporaryFile(/tmp/multipartBody5806295467282273380asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085107199,"filename":"image_16062025_16_43_45_10640.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366567429","file1":"1366567293","file0":"1366567264","file4":"1366567897","file5":"1366567939","file3":"1366567654"},"map_files_photo_id_array":[{"photo_id":"1366567939","filename":"file5"},{"photo_id":"1366567429","filename":"file2"},{"photo_id":"1366567897","filename":"file4"},{"photo_id":"1366567293","filename":"file1"},{"photo_id":"1366567264","filename":"file0"},{"photo_id":"1366567654","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366567429":["hashtag1","hashtag2"]},{"1366567293":["hashtag1","hashtag2"]},{"1366567897":["hashtag1","hashtag2"]},{"1366567939":["hashtag1","hashtag2"]},{"1366567654":["hashtag1","hashtag2"]},{"1366567264":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366567429, 1366567293, 1366567897, 1366567939, 1366567654, 1366567264)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 111.32450747489929 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:46:02.463255
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/45/image_16062025_16_45_45_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/16/45/image_16062025_16_45_34_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/16/45/image_16062025_16_45_25_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/16/45/image_16062025_16_45_15_10671.jpg', 2), ('/home/nano/Desktop/images/16062025/16/44/image_16062025_16_45_05_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/16/44/image_16062025_16_44_55_9660.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/45/image_16062025_16_45_45_10641.jpg', '/home/nano/Desktop/images/16062025/16/45/image_16062025_16_45_34_9641.jpg', '/home/nano/Desktop/images/16062025/16/45/image_16062025_16_45_25_9652.jpg', '/home/nano/Desktop/images/16062025/16/45/image_16062025_16_45_15_10671.jpg', '/home/nano/Desktop/images/16062025/16/44/image_16062025_16_45_05_9646.jpg', '/home/nano/Desktop/images/16062025/16/44/image_16062025_16_44_55_9660.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/45/image_16062025_16_45_45_10641.jpg
/home/nano/Desktop/images/16062025/16/45/image_16062025_16_45_34_9641.jpg
/home/nano/Desktop/images/16062025/16/45/image_16062025_16_45_25_9652.jpg
/home/nano/Desktop/images/16062025/16/45/image_16062025_16_45_15_10671.jpg
/home/nano/Desktop/images/16062025/16/44/image_16062025_16_45_05_9646.jpg
/home/nano/Desktop/images/16062025/16/44/image_16062025_16_44_55_9660.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366568331","1366568253","1366568241","1366568269","1366568161","1366568245"],"photo_ids_order":["1366568161","1366568241","1366568245","1366568253","1366568269","1366568331"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/461370706dec60df18f1c564d881c397.jpg","text":"TemporaryFile(/tmp/multipartBody8938899235861860103asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085236896,"filename":"image_16062025_16_44_55_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c249c6c3fdcb2d839dcb965ac3e18c60.jpg","text":"TemporaryFile(/tmp/multipartBody5417686882463953097asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085236896,"filename":"image_16062025_16_45_15_10671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/81cd96c065a4f2115cf62935e82f5eb8.jpg","text":"TemporaryFile(/tmp/multipartBody7320952652031103823asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085236896,"filename":"image_16062025_16_45_34_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/63176c621a0104d360950942be158647.jpg","text":"TemporaryFile(/tmp/multipartBody6441743000733195516asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085236896,"filename":"image_16062025_16_45_05_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/493cd7ce3f43a87439193273c9a3edef.jpg","text":"TemporaryFile(/tmp/multipartBody3624382887025075043asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085236896,"filename":"image_16062025_16_45_45_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/66123ee19a9426ed7fe7e579695c8023.jpg","text":"TemporaryFile(/tmp/multipartBody14722477794550514asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085236896,"filename":"image_16062025_16_45_25_9652.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366568245","file1":"1366568241","file0":"1366568161","file4":"1366568269","file5":"1366568331","file3":"1366568253"},"map_files_photo_id_array":[{"photo_id":"1366568331","filename":"file5"},{"photo_id":"1366568245","filename":"file2"},{"photo_id":"1366568269","filename":"file4"},{"photo_id":"1366568241","filename":"file1"},{"photo_id":"1366568161","filename":"file0"},{"photo_id":"1366568253","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366568331":["hashtag1","hashtag2"]},{"1366568253":["hashtag1","hashtag2"]},{"1366568241":["hashtag1","hashtag2"]},{"1366568269":["hashtag1","hashtag2"]},{"1366568161":["hashtag1","hashtag2"]},{"1366568245":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366568331, 1366568253, 1366568241, 1366568269, 1366568161, 1366568245)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 106.01385140419006 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:48:02.811234
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/47/image_16062025_16_47_45_10759.jpg', 2), ('/home/nano/Desktop/images/16062025/16/47/image_16062025_16_47_35_9745.jpg', 2), ('/home/nano/Desktop/images/16062025/16/47/image_16062025_16_47_25_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/16/47/image_16062025_16_47_15_10679.jpg', 2), ('/home/nano/Desktop/images/16062025/16/46/image_16062025_16_47_04_9713.jpg', 2), ('/home/nano/Desktop/images/16062025/16/46/image_16062025_16_46_55_9638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/47/image_16062025_16_47_45_10759.jpg', '/home/nano/Desktop/images/16062025/16/47/image_16062025_16_47_35_9745.jpg', '/home/nano/Desktop/images/16062025/16/47/image_16062025_16_47_25_9631.jpg', '/home/nano/Desktop/images/16062025/16/47/image_16062025_16_47_15_10679.jpg', '/home/nano/Desktop/images/16062025/16/46/image_16062025_16_47_04_9713.jpg', '/home/nano/Desktop/images/16062025/16/46/image_16062025_16_46_55_9638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/47/image_16062025_16_47_45_10759.jpg
/home/nano/Desktop/images/16062025/16/47/image_16062025_16_47_35_9745.jpg
/home/nano/Desktop/images/16062025/16/47/image_16062025_16_47_25_9631.jpg
/home/nano/Desktop/images/16062025/16/47/image_16062025_16_47_15_10679.jpg
/home/nano/Desktop/images/16062025/16/46/image_16062025_16_47_04_9713.jpg
/home/nano/Desktop/images/16062025/16/46/image_16062025_16_46_55_9638.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366568562","1366569123","1366568901","1366568741","1366569154","1366569064"],"photo_ids_order":["1366568562","1366568741","1366568901","1366569064","1366569123","1366569154"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/396dae155c649ab23747a06bce190640.jpg","text":"TemporaryFile(/tmp/multipartBody2337363325116400671asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085347042,"filename":"image_16062025_16_47_45_10759.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/52071b8d3777725ebef636d491e38042.jpg","text":"TemporaryFile(/tmp/multipartBody2419977627415647321asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085347042,"filename":"image_16062025_16_47_04_9713.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0033bc46e3e2a4b07d2bb0df7e205b23.jpg","text":"TemporaryFile(/tmp/multipartBody411873268448537387asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085347042,"filename":"image_16062025_16_47_25_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0371d9966f602a2f263b17b8a24c2972.jpg","text":"TemporaryFile(/tmp/multipartBody1093892824880228854asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085347042,"filename":"image_16062025_16_47_35_9745.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/23c7a45a1a117ef495435c35164626cc.jpg","text":"TemporaryFile(/tmp/multipartBody3208060580639771843asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085347042,"filename":"image_16062025_16_46_55_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c029321e260e69b80e12c9ad70f7071a.jpg","text":"TemporaryFile(/tmp/multipartBody763292635958432133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085347042,"filename":"image_16062025_16_47_15_10679.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366568901","file1":"1366568741","file0":"1366568562","file4":"1366569123","file5":"1366569154","file3":"1366569064"},"map_files_photo_id_array":[{"photo_id":"1366569154","filename":"file5"},{"photo_id":"1366568901","filename":"file2"},{"photo_id":"1366569123","filename":"file4"},{"photo_id":"1366568741","filename":"file1"},{"photo_id":"1366568562","filename":"file0"},{"photo_id":"1366569064","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366568562":["hashtag1","hashtag2"]},{"1366569123":["hashtag1","hashtag2"]},{"1366568901":["hashtag1","hashtag2"]},{"1366568741":["hashtag1","hashtag2"]},{"1366569154":["hashtag1","hashtag2"]},{"1366569064":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366568562, 1366569123, 1366568901, 1366568741, 1366569154, 1366569064)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 106.50235366821289 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:50:02.936827
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/49/image_16062025_16_49_45_9738.jpg', 2), ('/home/nano/Desktop/images/16062025/16/49/image_16062025_16_49_35_9656.jpg', 2), ('/home/nano/Desktop/images/16062025/16/49/image_16062025_16_49_25_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/16/49/image_16062025_16_49_14_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/16/48/image_16062025_16_49_05_9661.jpg', 2), ('/home/nano/Desktop/images/16062025/16/48/image_16062025_16_48_55_10740.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/49/image_16062025_16_49_45_9738.jpg', '/home/nano/Desktop/images/16062025/16/49/image_16062025_16_49_35_9656.jpg', '/home/nano/Desktop/images/16062025/16/49/image_16062025_16_49_25_10647.jpg', '/home/nano/Desktop/images/16062025/16/49/image_16062025_16_49_14_9654.jpg', '/home/nano/Desktop/images/16062025/16/48/image_16062025_16_49_05_9661.jpg', '/home/nano/Desktop/images/16062025/16/48/image_16062025_16_48_55_10740.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/49/image_16062025_16_49_45_9738.jpg
/home/nano/Desktop/images/16062025/16/49/image_16062025_16_49_35_9656.jpg
/home/nano/Desktop/images/16062025/16/49/image_16062025_16_49_25_10647.jpg
/home/nano/Desktop/images/16062025/16/49/image_16062025_16_49_14_9654.jpg
/home/nano/Desktop/images/16062025/16/48/image_16062025_16_49_05_9661.jpg
/home/nano/Desktop/images/16062025/16/48/image_16062025_16_48_55_10740.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366569720","1366569708","1366569318","1366569671","1366569728","1366569737"],"photo_ids_order":["1366569318","1366569671","1366569708","1366569720","1366569728","1366569737"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e9bb76e457aeaef335330afcfdb2599d.jpg","text":"TemporaryFile(/tmp/multipartBody4171870190643725592asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085468651,"filename":"image_16062025_16_49_14_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6ade3b70d25f986a423966785f30d6de.jpg","text":"TemporaryFile(/tmp/multipartBody6868560171449997860asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085468651,"filename":"image_16062025_16_49_25_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ed671e3abd069f02fa85c9456f4aeb56.jpg","text":"TemporaryFile(/tmp/multipartBody2977346021296772913asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085468651,"filename":"image_16062025_16_49_45_9738.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/89614320036b6890fae0db83836fc5de.jpg","text":"TemporaryFile(/tmp/multipartBody3233186215549188915asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085468651,"filename":"image_16062025_16_49_35_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1a11986209e3f4a2b3839d2cc7e79f63.jpg","text":"TemporaryFile(/tmp/multipartBody641499497398566278asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085468651,"filename":"image_16062025_16_49_05_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5647bb9f549aea280d20592ab3d2d6f7.jpg","text":"TemporaryFile(/tmp/multipartBody818341426983492422asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085468651,"filename":"image_16062025_16_48_55_10740.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366569708","file1":"1366569671","file0":"1366569318","file4":"1366569728","file5":"1366569737","file3":"1366569720"},"map_files_photo_id_array":[{"photo_id":"1366569737","filename":"file5"},{"photo_id":"1366569708","filename":"file2"},{"photo_id":"1366569728","filename":"file4"},{"photo_id":"1366569671","filename":"file1"},{"photo_id":"1366569318","filename":"file0"},{"photo_id":"1366569720","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366569720":["hashtag1","hashtag2"]},{"1366569708":["hashtag1","hashtag2"]},{"1366569318":["hashtag1","hashtag2"]},{"1366569671":["hashtag1","hashtag2"]},{"1366569728":["hashtag1","hashtag2"]},{"1366569737":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366569720, 1366569708, 1366569318, 1366569671, 1366569728, 1366569737)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 145.16965746879578 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:52:32.701927
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/52/image_16062025_16_52_45_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/16/52/image_16062025_16_52_35_9594.jpg', 2), ('/home/nano/Desktop/images/16062025/16/52/image_16062025_16_52_25_10617.jpg', 2), ('/home/nano/Desktop/images/16062025/16/52/image_16062025_16_52_14_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/16/51/image_16062025_16_52_05_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/16/51/image_16062025_16_51_55_10646.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/52/image_16062025_16_52_45_10608.jpg', '/home/nano/Desktop/images/16062025/16/52/image_16062025_16_52_35_9594.jpg', '/home/nano/Desktop/images/16062025/16/52/image_16062025_16_52_25_10617.jpg', '/home/nano/Desktop/images/16062025/16/52/image_16062025_16_52_14_9623.jpg', '/home/nano/Desktop/images/16062025/16/51/image_16062025_16_52_05_9613.jpg', '/home/nano/Desktop/images/16062025/16/51/image_16062025_16_51_55_10646.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/52/image_16062025_16_52_45_10608.jpg
/home/nano/Desktop/images/16062025/16/52/image_16062025_16_52_35_9594.jpg
/home/nano/Desktop/images/16062025/16/52/image_16062025_16_52_25_10617.jpg
/home/nano/Desktop/images/16062025/16/52/image_16062025_16_52_14_9623.jpg
/home/nano/Desktop/images/16062025/16/51/image_16062025_16_52_05_9613.jpg
/home/nano/Desktop/images/16062025/16/51/image_16062025_16_51_55_10646.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366570207","1366569956","1366570184","1366570106","1366569891","1366570201"],"photo_ids_order":["1366569891","1366569956","1366570106","1366570184","1366570201","1366570207"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e9606c1136d26612d47822924e457e66.jpg","text":"TemporaryFile(/tmp/multipartBody8259265589879121847asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085615498,"filename":"image_16062025_16_51_55_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/eed66be0d9537747d2ddf9601e72b88e.jpg","text":"TemporaryFile(/tmp/multipartBody6239261576110153376asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085615498,"filename":"image_16062025_16_52_35_9594.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/90fc89405d9b9207519790944f07cf80.jpg","text":"TemporaryFile(/tmp/multipartBody8412850389421884649asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085615498,"filename":"image_16062025_16_52_14_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6e72266ad7dba1021ad358f859e8f6bb.jpg","text":"TemporaryFile(/tmp/multipartBody8731267072358467005asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085615498,"filename":"image_16062025_16_52_25_10617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/94c7ef16407bcea80d94e1acdb67d3ac.jpg","text":"TemporaryFile(/tmp/multipartBody1876522679562847830asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085615498,"filename":"image_16062025_16_52_45_10608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bd85cdd4a7a71667353ea230d2bbb233.jpg","text":"TemporaryFile(/tmp/multipartBody8977799623673706304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085615498,"filename":"image_16062025_16_52_05_9613.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366570106","file1":"1366569956","file0":"1366569891","file4":"1366570201","file5":"1366570207","file3":"1366570184"},"map_files_photo_id_array":[{"photo_id":"1366570207","filename":"file5"},{"photo_id":"1366570106","filename":"file2"},{"photo_id":"1366570201","filename":"file4"},{"photo_id":"1366569956","filename":"file1"},{"photo_id":"1366569891","filename":"file0"},{"photo_id":"1366570184","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366570207":["hashtag1","hashtag2"]},{"1366569956":["hashtag1","hashtag2"]},{"1366570184":["hashtag1","hashtag2"]},{"1366570106":["hashtag1","hashtag2"]},{"1366569891":["hashtag1","hashtag2"]},{"1366570201":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366570207, 1366569956, 1366570184, 1366570106, 1366569891, 1366570201)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 71.47757697105408 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:53:47.754362
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/53/image_16062025_16_53_45_10672.jpg', 2), ('/home/nano/Desktop/images/16062025/16/53/image_16062025_16_53_34_9683.jpg', 2), ('/home/nano/Desktop/images/16062025/16/53/image_16062025_16_53_25_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/16/53/image_16062025_16_53_15_10682.jpg', 2), ('/home/nano/Desktop/images/16062025/16/52/image_16062025_16_53_04_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/16/52/image_16062025_16_52_55_9592.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/53/image_16062025_16_53_45_10672.jpg', '/home/nano/Desktop/images/16062025/16/53/image_16062025_16_53_34_9683.jpg', '/home/nano/Desktop/images/16062025/16/53/image_16062025_16_53_25_9652.jpg', '/home/nano/Desktop/images/16062025/16/53/image_16062025_16_53_15_10682.jpg', '/home/nano/Desktop/images/16062025/16/52/image_16062025_16_53_04_9612.jpg', '/home/nano/Desktop/images/16062025/16/52/image_16062025_16_52_55_9592.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/53/image_16062025_16_53_45_10672.jpg
/home/nano/Desktop/images/16062025/16/53/image_16062025_16_53_34_9683.jpg
/home/nano/Desktop/images/16062025/16/53/image_16062025_16_53_25_9652.jpg
/home/nano/Desktop/images/16062025/16/53/image_16062025_16_53_15_10682.jpg
/home/nano/Desktop/images/16062025/16/52/image_16062025_16_53_04_9612.jpg
/home/nano/Desktop/images/16062025/16/52/image_16062025_16_52_55_9592.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366570353","1366570341","1366570227","1366570331","1366570264","1366570299"],"photo_ids_order":["1366570227","1366570264","1366570299","1366570331","1366570341","1366570353"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f1b6fd0798522883a61c1141e7ce7c41.jpg","text":"TemporaryFile(/tmp/multipartBody350693827898491541asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085693392,"filename":"image_16062025_16_52_55_9592.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d95dfed6ea1e3fdcefbebfc955816d95.jpg","text":"TemporaryFile(/tmp/multipartBody537473224367831933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085693392,"filename":"image_16062025_16_53_04_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/73cfaf55a6c576ec1b1d508ad2e46d13.jpg","text":"TemporaryFile(/tmp/multipartBody8600998034509842235asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085693392,"filename":"image_16062025_16_53_45_10672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/eaac78bfb6408a79829972f1c37819c5.jpg","text":"TemporaryFile(/tmp/multipartBody2937076850926515585asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085693392,"filename":"image_16062025_16_53_15_10682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9dee8afa67ca1dc030b86cd92494f92c.jpg","text":"TemporaryFile(/tmp/multipartBody3967076197249491906asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085693392,"filename":"image_16062025_16_53_34_9683.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3bce4226c19889d36ae35aa5472ca1ab.jpg","text":"TemporaryFile(/tmp/multipartBody5329382084819767758asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085693392,"filename":"image_16062025_16_53_25_9652.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366570299","file1":"1366570264","file0":"1366570227","file4":"1366570341","file5":"1366570353","file3":"1366570331"},"map_files_photo_id_array":[{"photo_id":"1366570353","filename":"file5"},{"photo_id":"1366570299","filename":"file2"},{"photo_id":"1366570341","filename":"file4"},{"photo_id":"1366570264","filename":"file1"},{"photo_id":"1366570227","filename":"file0"},{"photo_id":"1366570331","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366570353":["hashtag1","hashtag2"]},{"1366570341":["hashtag1","hashtag2"]},{"1366570227":["hashtag1","hashtag2"]},{"1366570331":["hashtag1","hashtag2"]},{"1366570264":["hashtag1","hashtag2"]},{"1366570299":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366570353, 1366570341, 1366570227, 1366570331, 1366570264, 1366570299)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 82.912193775177 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:55:16.973759
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/55/image_16062025_16_55_45_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/16/55/image_16062025_16_55_35_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/16/55/image_16062025_16_55_25_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/16/55/image_16062025_16_55_14_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/16/54/image_16062025_16_55_05_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/16/54/image_16062025_16_54_55_9730.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/55/image_16062025_16_55_45_10640.jpg', '/home/nano/Desktop/images/16062025/16/55/image_16062025_16_55_35_9638.jpg', '/home/nano/Desktop/images/16062025/16/55/image_16062025_16_55_25_10644.jpg', '/home/nano/Desktop/images/16062025/16/55/image_16062025_16_55_14_9673.jpg', '/home/nano/Desktop/images/16062025/16/54/image_16062025_16_55_05_9626.jpg', '/home/nano/Desktop/images/16062025/16/54/image_16062025_16_54_55_9730.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/55/image_16062025_16_55_45_10640.jpg
/home/nano/Desktop/images/16062025/16/55/image_16062025_16_55_35_9638.jpg
/home/nano/Desktop/images/16062025/16/55/image_16062025_16_55_25_10644.jpg
/home/nano/Desktop/images/16062025/16/55/image_16062025_16_55_14_9673.jpg
/home/nano/Desktop/images/16062025/16/54/image_16062025_16_55_05_9626.jpg
/home/nano/Desktop/images/16062025/16/54/image_16062025_16_54_55_9730.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366570422","1366570416","1366570410","1366570397","1366570403","1366570429"],"photo_ids_order":["1366570397","1366570403","1366570410","1366570416","1366570422","1366570429"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9650e04b03f033a3973bd1eeeaf5b523.jpg","text":"TemporaryFile(/tmp/multipartBody1080594689021130216asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085781513,"filename":"image_16062025_16_55_05_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b22cad6c7b3bb253fbacb1c6740c3f29.jpg","text":"TemporaryFile(/tmp/multipartBody8920998185764419969asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085781513,"filename":"image_16062025_16_55_14_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/10a8913480a2c6cac08b2769807987ec.jpg","text":"TemporaryFile(/tmp/multipartBody5542989252627779428asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085781513,"filename":"image_16062025_16_55_25_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/05ab558c16cdd7c1ecb60b2d05bdc7e0.jpg","text":"TemporaryFile(/tmp/multipartBody4004071398563596512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085781513,"filename":"image_16062025_16_55_45_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4a472f0b53fef2e940ae8bbcd204d82f.jpg","text":"TemporaryFile(/tmp/multipartBody5557332170540549320asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085781513,"filename":"image_16062025_16_55_35_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d063c62231426a55016c2d48f21412e1.jpg","text":"TemporaryFile(/tmp/multipartBody7013384580667424057asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085781513,"filename":"image_16062025_16_54_55_9730.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366570410","file1":"1366570403","file0":"1366570397","file4":"1366570422","file5":"1366570429","file3":"1366570416"},"map_files_photo_id_array":[{"photo_id":"1366570429","filename":"file5"},{"photo_id":"1366570410","filename":"file2"},{"photo_id":"1366570422","filename":"file4"},{"photo_id":"1366570403","filename":"file1"},{"photo_id":"1366570397","filename":"file0"},{"photo_id":"1366570416","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366570422":["hashtag1","hashtag2"]},{"1366570416":["hashtag1","hashtag2"]},{"1366570410":["hashtag1","hashtag2"]},{"1366570397":["hashtag1","hashtag2"]},{"1366570403":["hashtag1","hashtag2"]},{"1366570429":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366570422, 1366570416, 1366570410, 1366570397, 1366570403, 1366570429)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 72.77093601226807 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:56:32.076111
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/56/image_16062025_16_56_45_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/16/56/image_16062025_16_56_35_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/16/56/image_16062025_16_56_25_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/16/56/image_16062025_16_56_15_10661.jpg', 2), ('/home/nano/Desktop/images/16062025/16/55/image_16062025_16_56_05_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/16/55/image_16062025_16_55_55_9625.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/56/image_16062025_16_56_45_10651.jpg', '/home/nano/Desktop/images/16062025/16/56/image_16062025_16_56_35_9632.jpg', '/home/nano/Desktop/images/16062025/16/56/image_16062025_16_56_25_9631.jpg', '/home/nano/Desktop/images/16062025/16/56/image_16062025_16_56_15_10661.jpg', '/home/nano/Desktop/images/16062025/16/55/image_16062025_16_56_05_9659.jpg', '/home/nano/Desktop/images/16062025/16/55/image_16062025_16_55_55_9625.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/56/image_16062025_16_56_45_10651.jpg
/home/nano/Desktop/images/16062025/16/56/image_16062025_16_56_35_9632.jpg
/home/nano/Desktop/images/16062025/16/56/image_16062025_16_56_25_9631.jpg
/home/nano/Desktop/images/16062025/16/56/image_16062025_16_56_15_10661.jpg
/home/nano/Desktop/images/16062025/16/55/image_16062025_16_56_05_9659.jpg
/home/nano/Desktop/images/16062025/16/55/image_16062025_16_55_55_9625.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366570482","1366570443","1366570445","1366570456","1366570450","1366570453"],"photo_ids_order":["1366570443","1366570445","1366570450","1366570453","1366570456","1366570482"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5a26fe4429b3ab3c6367392901424254.jpg","text":"TemporaryFile(/tmp/multipartBody8602745428611701174asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085854719,"filename":"image_16062025_16_55_55_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f1ef5ebf7e75c2c737cc04bbb88fcef9.jpg","text":"TemporaryFile(/tmp/multipartBody5999880458656332189asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085854719,"filename":"image_16062025_16_56_45_10651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c1cc7ce03bd05b2342ea39fdd21460c3.jpg","text":"TemporaryFile(/tmp/multipartBody5390804247638539774asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085854719,"filename":"image_16062025_16_56_35_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/24fc75407f97f524bc8bbfd38a0c94f5.jpg","text":"TemporaryFile(/tmp/multipartBody5052159807634669397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085854719,"filename":"image_16062025_16_56_05_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9c7e5dc1cd7badbabac2f8c906ad74dc.jpg","text":"TemporaryFile(/tmp/multipartBody5985692750654150677asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085854719,"filename":"image_16062025_16_56_25_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7da88d96fad2136ca154b14d3e33477a.jpg","text":"TemporaryFile(/tmp/multipartBody4940417738618063920asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750085854719,"filename":"image_16062025_16_56_15_10661.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366570450","file1":"1366570445","file0":"1366570443","file4":"1366570456","file5":"1366570482","file3":"1366570453"},"map_files_photo_id_array":[{"photo_id":"1366570482","filename":"file5"},{"photo_id":"1366570450","filename":"file2"},{"photo_id":"1366570456","filename":"file4"},{"photo_id":"1366570445","filename":"file1"},{"photo_id":"1366570443","filename":"file0"},{"photo_id":"1366570453","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366570482":["hashtag1","hashtag2"]},{"1366570443":["hashtag1","hashtag2"]},{"1366570445":["hashtag1","hashtag2"]},{"1366570456":["hashtag1","hashtag2"]},{"1366570450":["hashtag1","hashtag2"]},{"1366570453":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366570482, 1366570443, 1366570445, 1366570456, 1366570450, 1366570453)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 59.90963387489319 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:57:47.174170
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/57/image_16062025_16_57_45_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/16/57/image_16062025_16_57_35_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/16/57/image_16062025_16_57_25_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/16/57/image_16062025_16_57_15_10673.jpg', 2), ('/home/nano/Desktop/images/16062025/16/56/image_16062025_16_57_04_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/16/56/image_16062025_16_56_55_9632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/57/image_16062025_16_57_45_9643.jpg', '/home/nano/Desktop/images/16062025/16/57/image_16062025_16_57_35_10648.jpg', '/home/nano/Desktop/images/16062025/16/57/image_16062025_16_57_25_9626.jpg', '/home/nano/Desktop/images/16062025/16/57/image_16062025_16_57_15_10673.jpg', '/home/nano/Desktop/images/16062025/16/56/image_16062025_16_57_04_9635.jpg', '/home/nano/Desktop/images/16062025/16/56/image_16062025_16_56_55_9632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/57/image_16062025_16_57_45_9643.jpg
/home/nano/Desktop/images/16062025/16/57/image_16062025_16_57_35_10648.jpg
/home/nano/Desktop/images/16062025/16/57/image_16062025_16_57_25_9626.jpg
/home/nano/Desktop/images/16062025/16/57/image_16062025_16_57_15_10673.jpg
/home/nano/Desktop/images/16062025/16/56/image_16062025_16_57_04_9635.jpg
/home/nano/Desktop/images/16062025/16/56/image_16062025_16_56_55_9632.jpg
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 16:59:03.319702
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/16/59/image_16062025_16_59_15_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/16/58/image_16062025_16_58_45_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/16/58/image_16062025_16_58_35_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/16/58/image_16062025_16_58_25_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/16/58/image_16062025_16_58_15_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/16/57/image_16062025_16_58_05_10710.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/16/59/image_16062025_16_59_15_9637.jpg', '/home/nano/Desktop/images/16062025/16/58/image_16062025_16_58_45_9654.jpg', '/home/nano/Desktop/images/16062025/16/58/image_16062025_16_58_35_10634.jpg', '/home/nano/Desktop/images/16062025/16/58/image_16062025_16_58_25_9639.jpg', '/home/nano/Desktop/images/16062025/16/58/image_16062025_16_58_15_9642.jpg', '/home/nano/Desktop/images/16062025/16/57/image_16062025_16_58_05_10710.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/16/59/image_16062025_16_59_15_9637.jpg
/home/nano/Desktop/images/16062025/16/58/image_16062025_16_58_45_9654.jpg
/home/nano/Desktop/images/16062025/16/58/image_16062025_16_58_35_10634.jpg
/home/nano/Desktop/images/16062025/16/58/image_16062025_16_58_25_9639.jpg
/home/nano/Desktop/images/16062025/16/58/image_16062025_16_58_15_9642.jpg
/home/nano/Desktop/images/16062025/16/57/image_16062025_16_58_05_10710.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366571859","1366571795","1366571849","1366571744","1366571617","1366571682"],"photo_ids_order":["1366571617","1366571682","1366571744","1366571795","1366571849","1366571859"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/15ba0672d478cee9515562d57b3e8920.jpg","text":"TemporaryFile(/tmp/multipartBody5425896573938274552asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086019828,"filename":"image_16062025_16_58_05_10710.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/848030c720698a5a8b69cd2435a9404e.jpg","text":"TemporaryFile(/tmp/multipartBody4633907875981958034asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086019828,"filename":"image_16062025_16_58_25_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2234b1cd2b4716f1f2e61c83613ce2e3.jpg","text":"TemporaryFile(/tmp/multipartBody5278232744940919671asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086019828,"filename":"image_16062025_16_58_15_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/137d898150130dfdc50a62a54f7aed1f.jpg","text":"TemporaryFile(/tmp/multipartBody7940314065134666574asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086019828,"filename":"image_16062025_16_58_35_10634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4e777f0b51f3785814ab2060c07b92ad.jpg","text":"TemporaryFile(/tmp/multipartBody1021507020437962312asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086019828,"filename":"image_16062025_16_59_15_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4113a194981a4cd99b2bfcb112527b2b.jpg","text":"TemporaryFile(/tmp/multipartBody5708693122887770923asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086019828,"filename":"image_16062025_16_58_45_9654.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366571744","file1":"1366571682","file0":"1366571617","file4":"1366571849","file5":"1366571859","file3":"1366571795"},"map_files_photo_id_array":[{"photo_id":"1366571859","filename":"file5"},{"photo_id":"1366571744","filename":"file2"},{"photo_id":"1366571849","filename":"file4"},{"photo_id":"1366571682","filename":"file1"},{"photo_id":"1366571617","filename":"file0"},{"photo_id":"1366571795","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366571859":["hashtag1","hashtag2"]},{"1366571795":["hashtag1","hashtag2"]},{"1366571849":["hashtag1","hashtag2"]},{"1366571744":["hashtag1","hashtag2"]},{"1366571617":["hashtag1","hashtag2"]},{"1366571682":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366571859, 1366571795, 1366571849, 1366571744, 1366571617, 1366571682)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 89.24513530731201 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:00:47.332332
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/00/image_16062025_17_00_45_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/17/00/image_16062025_17_00_35_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/17/00/image_16062025_17_00_24_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/17/00/image_16062025_17_00_15_9681.jpg', 2), ('/home/nano/Desktop/images/16062025/16/59/image_16062025_17_00_05_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/16/59/image_16062025_16_59_54_9627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/00/image_16062025_17_00_45_9644.jpg', '/home/nano/Desktop/images/16062025/17/00/image_16062025_17_00_35_10647.jpg', '/home/nano/Desktop/images/16062025/17/00/image_16062025_17_00_24_9636.jpg', '/home/nano/Desktop/images/16062025/17/00/image_16062025_17_00_15_9681.jpg', '/home/nano/Desktop/images/16062025/16/59/image_16062025_17_00_05_10651.jpg', '/home/nano/Desktop/images/16062025/16/59/image_16062025_16_59_54_9627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/00/image_16062025_17_00_45_9644.jpg
/home/nano/Desktop/images/16062025/17/00/image_16062025_17_00_35_10647.jpg
/home/nano/Desktop/images/16062025/17/00/image_16062025_17_00_24_9636.jpg
/home/nano/Desktop/images/16062025/17/00/image_16062025_17_00_15_9681.jpg
/home/nano/Desktop/images/16062025/16/59/image_16062025_17_00_05_10651.jpg
/home/nano/Desktop/images/16062025/16/59/image_16062025_16_59_54_9627.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366571910","1366571894","1366571899","1366571883","1366571889","1366571961"],"photo_ids_order":["1366571883","1366571889","1366571894","1366571899","1366571910","1366571961"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8246596ca41deeeb3cc80357aa1de1fe.jpg","text":"TemporaryFile(/tmp/multipartBody4319444646760210920asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086110867,"filename":"image_16062025_17_00_05_10651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c7e7ce27c8814155b443e08854366de0.jpg","text":"TemporaryFile(/tmp/multipartBody8563099430142660227asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086110867,"filename":"image_16062025_17_00_24_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c0c34aeacdd0d368e85afadc2f847b84.jpg","text":"TemporaryFile(/tmp/multipartBody8977958091320766506asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086110867,"filename":"image_16062025_17_00_15_9681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3e13b857f866039cdc59432a225889ab.jpg","text":"TemporaryFile(/tmp/multipartBody6014721591295918374asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086110867,"filename":"image_16062025_17_00_45_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e981105aa5cd0051acf7bb99c48dac7c.jpg","text":"TemporaryFile(/tmp/multipartBody5920653798130246496asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086110867,"filename":"image_16062025_17_00_35_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5bff30c0d4852d76ac2ab4e6f0fe45ff.jpg","text":"TemporaryFile(/tmp/multipartBody8057488347428306896asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086110867,"filename":"image_16062025_16_59_54_9627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366571894","file1":"1366571889","file0":"1366571883","file4":"1366571910","file5":"1366571961","file3":"1366571899"},"map_files_photo_id_array":[{"photo_id":"1366571961","filename":"file5"},{"photo_id":"1366571894","filename":"file2"},{"photo_id":"1366571910","filename":"file4"},{"photo_id":"1366571889","filename":"file1"},{"photo_id":"1366571883","filename":"file0"},{"photo_id":"1366571899","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366571910":["hashtag1","hashtag2"]},{"1366571894":["hashtag1","hashtag2"]},{"1366571899":["hashtag1","hashtag2"]},{"1366571883":["hashtag1","hashtag2"]},{"1366571889":["hashtag1","hashtag2"]},{"1366571961":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366571910, 1366571894, 1366571899, 1366571883, 1366571889, 1366571961)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 69.40385413169861 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:02:03.030085
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/01/image_16062025_17_01_45_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/17/01/image_16062025_17_01_35_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/17/01/image_16062025_17_01_25_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/17/01/image_16062025_17_01_15_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/17/00/image_16062025_17_01_05_9653.jpg', 2), ('/home/nano/Desktop/images/16062025/17/00/image_16062025_17_00_55_10638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/01/image_16062025_17_01_45_9629.jpg', '/home/nano/Desktop/images/16062025/17/01/image_16062025_17_01_35_9626.jpg', '/home/nano/Desktop/images/16062025/17/01/image_16062025_17_01_25_10627.jpg', '/home/nano/Desktop/images/16062025/17/01/image_16062025_17_01_15_9644.jpg', '/home/nano/Desktop/images/16062025/17/00/image_16062025_17_01_05_9653.jpg', '/home/nano/Desktop/images/16062025/17/00/image_16062025_17_00_55_10638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/01/image_16062025_17_01_45_9629.jpg
/home/nano/Desktop/images/16062025/17/01/image_16062025_17_01_35_9626.jpg
/home/nano/Desktop/images/16062025/17/01/image_16062025_17_01_25_10627.jpg
/home/nano/Desktop/images/16062025/17/01/image_16062025_17_01_15_9644.jpg
/home/nano/Desktop/images/16062025/17/00/image_16062025_17_01_05_9653.jpg
/home/nano/Desktop/images/16062025/17/00/image_16062025_17_00_55_10638.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366571986","1366572051","1366572027","1366571979","1366572036","1366572009"],"photo_ids_order":["1366571979","1366571986","1366572009","1366572027","1366572036","1366572051"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8cead223ae9522d35dfca8a9a294cc06.jpg","text":"TemporaryFile(/tmp/multipartBody562918079724877986asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086189423,"filename":"image_16062025_17_01_35_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7a174498af202d3d50d9292c38a4b57e.jpg","text":"TemporaryFile(/tmp/multipartBody840695878608662802asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086189423,"filename":"image_16062025_17_00_55_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6a51dea08c3377af905570b3a00fdc86.jpg","text":"TemporaryFile(/tmp/multipartBody1810010388189945769asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086189423,"filename":"image_16062025_17_01_15_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ebf7b609cfe2446f23784ab8aa09d566.jpg","text":"TemporaryFile(/tmp/multipartBody6987321847756721392asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086189423,"filename":"image_16062025_17_01_45_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a6714481ac58d8e9077cd9419beca3f6.jpg","text":"TemporaryFile(/tmp/multipartBody2386881190373538378asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086189423,"filename":"image_16062025_17_01_05_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6c6764cf2bbd156eb9943233cae30086.jpg","text":"TemporaryFile(/tmp/multipartBody9151391425694870273asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086189423,"filename":"image_16062025_17_01_25_10627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366572009","file1":"1366571986","file0":"1366571979","file4":"1366572036","file5":"1366572051","file3":"1366572027"},"map_files_photo_id_array":[{"photo_id":"1366572051","filename":"file5"},{"photo_id":"1366572009","filename":"file2"},{"photo_id":"1366572036","filename":"file4"},{"photo_id":"1366571986","filename":"file1"},{"photo_id":"1366571979","filename":"file0"},{"photo_id":"1366572027","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366571986":["hashtag1","hashtag2"]},{"1366572051":["hashtag1","hashtag2"]},{"1366572027":["hashtag1","hashtag2"]},{"1366571979":["hashtag1","hashtag2"]},{"1366572036":["hashtag1","hashtag2"]},{"1366572009":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366571986, 1366572051, 1366572027, 1366571979, 1366572036, 1366572009)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 91.94993233680725 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:03:47.721263
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/03/image_16062025_17_03_44_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/17/03/image_16062025_17_03_35_9718.jpg', 2), ('/home/nano/Desktop/images/16062025/17/03/image_16062025_17_03_25_9661.jpg', 2), ('/home/nano/Desktop/images/16062025/17/03/image_16062025_17_03_15_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/17/02/image_16062025_17_03_05_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/17/02/image_16062025_17_02_55_10641.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/03/image_16062025_17_03_44_9658.jpg', '/home/nano/Desktop/images/16062025/17/03/image_16062025_17_03_35_9718.jpg', '/home/nano/Desktop/images/16062025/17/03/image_16062025_17_03_25_9661.jpg', '/home/nano/Desktop/images/16062025/17/03/image_16062025_17_03_15_10653.jpg', '/home/nano/Desktop/images/16062025/17/02/image_16062025_17_03_05_9660.jpg', '/home/nano/Desktop/images/16062025/17/02/image_16062025_17_02_55_10641.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/03/image_16062025_17_03_44_9658.jpg
/home/nano/Desktop/images/16062025/17/03/image_16062025_17_03_35_9718.jpg
/home/nano/Desktop/images/16062025/17/03/image_16062025_17_03_25_9661.jpg
/home/nano/Desktop/images/16062025/17/03/image_16062025_17_03_15_10653.jpg
/home/nano/Desktop/images/16062025/17/02/image_16062025_17_03_05_9660.jpg
/home/nano/Desktop/images/16062025/17/02/image_16062025_17_02_55_10641.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366572083","1366572110","1366572094","1366572088","1366572118","1366572106"],"photo_ids_order":["1366572083","1366572088","1366572094","1366572106","1366572110","1366572118"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3085f7bc0cf93cf39f81da4e79d6590b.jpg","text":"TemporaryFile(/tmp/multipartBody4178817642124114386asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086291164,"filename":"image_16062025_17_03_44_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/48fe948fe694af435ee243730934d628.jpg","text":"TemporaryFile(/tmp/multipartBody3319043357636563503asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086291164,"filename":"image_16062025_17_03_05_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4456acd80bc5d12fa4697af72dafc56d.jpg","text":"TemporaryFile(/tmp/multipartBody506680050017688133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086291164,"filename":"image_16062025_17_03_25_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/044d0f99772142e61e169803115bef3c.jpg","text":"TemporaryFile(/tmp/multipartBody7221130330901803474asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086291164,"filename":"image_16062025_17_03_35_9718.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9cef49882c74d8d1d999a9c57d59ce67.jpg","text":"TemporaryFile(/tmp/multipartBody2898212673210461027asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086291164,"filename":"image_16062025_17_02_55_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7b0a2bdc2cc55eaf0c783be980782cba.jpg","text":"TemporaryFile(/tmp/multipartBody4794305384238933437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086291164,"filename":"image_16062025_17_03_15_10653.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366572094","file1":"1366572088","file0":"1366572083","file4":"1366572110","file5":"1366572118","file3":"1366572106"},"map_files_photo_id_array":[{"photo_id":"1366572118","filename":"file5"},{"photo_id":"1366572094","filename":"file2"},{"photo_id":"1366572110","filename":"file4"},{"photo_id":"1366572088","filename":"file1"},{"photo_id":"1366572083","filename":"file0"},{"photo_id":"1366572106","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366572083":["hashtag1","hashtag2"]},{"1366572110":["hashtag1","hashtag2"]},{"1366572094":["hashtag1","hashtag2"]},{"1366572088":["hashtag1","hashtag2"]},{"1366572118":["hashtag1","hashtag2"]},{"1366572106":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366572083, 1366572110, 1366572094, 1366572088, 1366572118, 1366572106)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 75.60677576065063 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:05:16.933102
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/05/image_16062025_17_05_45_10713.jpg', 2), ('/home/nano/Desktop/images/16062025/17/05/image_16062025_17_05_34_9702.jpg', 2), ('/home/nano/Desktop/images/16062025/17/05/image_16062025_17_05_25_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/17/05/image_16062025_17_05_15_10662.jpg', 2), ('/home/nano/Desktop/images/16062025/17/04/image_16062025_17_05_04_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/17/04/image_16062025_17_04_55_9633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/05/image_16062025_17_05_45_10713.jpg', '/home/nano/Desktop/images/16062025/17/05/image_16062025_17_05_34_9702.jpg', '/home/nano/Desktop/images/16062025/17/05/image_16062025_17_05_25_9635.jpg', '/home/nano/Desktop/images/16062025/17/05/image_16062025_17_05_15_10662.jpg', '/home/nano/Desktop/images/16062025/17/04/image_16062025_17_05_04_9623.jpg', '/home/nano/Desktop/images/16062025/17/04/image_16062025_17_04_55_9633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/05/image_16062025_17_05_45_10713.jpg
/home/nano/Desktop/images/16062025/17/05/image_16062025_17_05_34_9702.jpg
/home/nano/Desktop/images/16062025/17/05/image_16062025_17_05_25_9635.jpg
/home/nano/Desktop/images/16062025/17/05/image_16062025_17_05_15_10662.jpg
/home/nano/Desktop/images/16062025/17/04/image_16062025_17_05_04_9623.jpg
/home/nano/Desktop/images/16062025/17/04/image_16062025_17_04_55_9633.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366572380","1366572221","1366572325","1366572489","1366572135","1366572429"],"photo_ids_order":["1366572135","1366572221","1366572325","1366572380","1366572429","1366572489"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/be46097a36de1d9e424c36950c98913c.jpg","text":"TemporaryFile(/tmp/multipartBody9045596653608576665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086383649,"filename":"image_16062025_17_05_15_10662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/98fc3e97a64f2244efcb83c160250c8f.jpg","text":"TemporaryFile(/tmp/multipartBody6911838439032582681asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086383649,"filename":"image_16062025_17_05_34_9702.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/01200066e3621070cf6db2c09016048e.jpg","text":"TemporaryFile(/tmp/multipartBody9109842463126761942asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086383649,"filename":"image_16062025_17_05_25_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/28853516f1850cc2957238a883d47c89.jpg","text":"TemporaryFile(/tmp/multipartBody8872944952545625804asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086383649,"filename":"image_16062025_17_04_55_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cd5cff5286c1719aabee6d8929597486.jpg","text":"TemporaryFile(/tmp/multipartBody8412202965381606144asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086383649,"filename":"image_16062025_17_05_45_10713.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5c6505d4714b56eb45afc3334bc889ff.jpg","text":"TemporaryFile(/tmp/multipartBody3823445057074180910asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086383649,"filename":"image_16062025_17_05_04_9623.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366572325","file1":"1366572221","file0":"1366572135","file4":"1366572429","file5":"1366572489","file3":"1366572380"},"map_files_photo_id_array":[{"photo_id":"1366572489","filename":"file5"},{"photo_id":"1366572325","filename":"file2"},{"photo_id":"1366572429","filename":"file4"},{"photo_id":"1366572221","filename":"file1"},{"photo_id":"1366572135","filename":"file0"},{"photo_id":"1366572380","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366572380":["hashtag1","hashtag2"]},{"1366572221":["hashtag1","hashtag2"]},{"1366572325":["hashtag1","hashtag2"]},{"1366572489":["hashtag1","hashtag2"]},{"1366572135":["hashtag1","hashtag2"]},{"1366572429":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366572380, 1366572221, 1366572325, 1366572489, 1366572135, 1366572429)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 98.71841621398926 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:07:02.615824
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/06/image_16062025_17_06_44_9707.jpg', 2), ('/home/nano/Desktop/images/16062025/17/06/image_16062025_17_06_35_9706.jpg', 2), ('/home/nano/Desktop/images/16062025/17/06/image_16062025_17_06_25_9696.jpg', 2), ('/home/nano/Desktop/images/16062025/17/06/image_16062025_17_06_15_10764.jpg', 2), ('/home/nano/Desktop/images/16062025/17/05/image_16062025_17_06_05_9731.jpg', 2), ('/home/nano/Desktop/images/16062025/17/05/image_16062025_17_05_55_9692.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/06/image_16062025_17_06_44_9707.jpg', '/home/nano/Desktop/images/16062025/17/06/image_16062025_17_06_35_9706.jpg', '/home/nano/Desktop/images/16062025/17/06/image_16062025_17_06_25_9696.jpg', '/home/nano/Desktop/images/16062025/17/06/image_16062025_17_06_15_10764.jpg', '/home/nano/Desktop/images/16062025/17/05/image_16062025_17_06_05_9731.jpg', '/home/nano/Desktop/images/16062025/17/05/image_16062025_17_05_55_9692.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/06/image_16062025_17_06_44_9707.jpg
/home/nano/Desktop/images/16062025/17/06/image_16062025_17_06_35_9706.jpg
/home/nano/Desktop/images/16062025/17/06/image_16062025_17_06_25_9696.jpg
/home/nano/Desktop/images/16062025/17/06/image_16062025_17_06_15_10764.jpg
/home/nano/Desktop/images/16062025/17/05/image_16062025_17_06_05_9731.jpg
/home/nano/Desktop/images/16062025/17/05/image_16062025_17_05_55_9692.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366573409","1366572997","1366572800","1366572716","1366573201","1366573289"],"photo_ids_order":["1366572716","1366572800","1366572997","1366573201","1366573289","1366573409"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/324a915ca519602ebdffd6e60283f3fe.jpg","text":"TemporaryFile(/tmp/multipartBody3708619666171445983asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086487154,"filename":"image_16062025_17_05_55_9692.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/08aff6d32ba394d2ff342011bfcbbe64.jpg","text":"TemporaryFile(/tmp/multipartBody2001944925528564895asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086487154,"filename":"image_16062025_17_06_25_9696.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ba3ca45a8b9deeca0d5925b649ddd8d0.jpg","text":"TemporaryFile(/tmp/multipartBody4279645526267743738asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086487154,"filename":"image_16062025_17_06_35_9706.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7a6513379a46e95120d6a0485f4cad48.jpg","text":"TemporaryFile(/tmp/multipartBody6092739665439973981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086487154,"filename":"image_16062025_17_06_44_9707.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ae897ebddc2c7651121bbc50cf4a1173.jpg","text":"TemporaryFile(/tmp/multipartBody923330045072212775asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086487154,"filename":"image_16062025_17_06_15_10764.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/039d76a509699daded183ca86a7dabdd.jpg","text":"TemporaryFile(/tmp/multipartBody6123744693537347979asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086487154,"filename":"image_16062025_17_06_05_9731.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366572997","file1":"1366572800","file0":"1366572716","file4":"1366573289","file5":"1366573409","file3":"1366573201"},"map_files_photo_id_array":[{"photo_id":"1366573409","filename":"file5"},{"photo_id":"1366572997","filename":"file2"},{"photo_id":"1366573289","filename":"file4"},{"photo_id":"1366572800","filename":"file1"},{"photo_id":"1366572716","filename":"file0"},{"photo_id":"1366573201","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366573409":["hashtag1","hashtag2"]},{"1366572997":["hashtag1","hashtag2"]},{"1366572800":["hashtag1","hashtag2"]},{"1366572716":["hashtag1","hashtag2"]},{"1366573201":["hashtag1","hashtag2"]},{"1366573289":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366573409, 1366572997, 1366572800, 1366572716, 1366573201, 1366573289)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 83.88388204574585 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:08:32.213576
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/08/image_16062025_17_08_45_10810.jpg', 2), ('/home/nano/Desktop/images/16062025/17/08/image_16062025_17_08_34_9751.jpg', 2), ('/home/nano/Desktop/images/16062025/17/08/image_16062025_17_08_25_9711.jpg', 2), ('/home/nano/Desktop/images/16062025/17/08/image_16062025_17_08_15_9759.jpg', 2), ('/home/nano/Desktop/images/16062025/17/07/image_16062025_17_08_05_10703.jpg', 2), ('/home/nano/Desktop/images/16062025/17/07/image_16062025_17_07_54_9712.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/08/image_16062025_17_08_45_10810.jpg', '/home/nano/Desktop/images/16062025/17/08/image_16062025_17_08_34_9751.jpg', '/home/nano/Desktop/images/16062025/17/08/image_16062025_17_08_25_9711.jpg', '/home/nano/Desktop/images/16062025/17/08/image_16062025_17_08_15_9759.jpg', '/home/nano/Desktop/images/16062025/17/07/image_16062025_17_08_05_10703.jpg', '/home/nano/Desktop/images/16062025/17/07/image_16062025_17_07_54_9712.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/08/image_16062025_17_08_45_10810.jpg
/home/nano/Desktop/images/16062025/17/08/image_16062025_17_08_34_9751.jpg
/home/nano/Desktop/images/16062025/17/08/image_16062025_17_08_25_9711.jpg
/home/nano/Desktop/images/16062025/17/08/image_16062025_17_08_15_9759.jpg
/home/nano/Desktop/images/16062025/17/07/image_16062025_17_08_05_10703.jpg
/home/nano/Desktop/images/16062025/17/07/image_16062025_17_07_54_9712.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366574179","1366574053","1366574448","1366574010","1366573962","1366573778"],"photo_ids_order":["1366573778","1366573962","1366574010","1366574053","1366574179","1366574448"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fa075a2d24f3440d1420eabb31a68171.jpg","text":"TemporaryFile(/tmp/multipartBody8290409481405059657asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086576697,"filename":"image_16062025_17_08_05_10703.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2ef56f9028f599f22115906c2095ffa6.jpg","text":"TemporaryFile(/tmp/multipartBody1973435547511407952asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086576697,"filename":"image_16062025_17_08_15_9759.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b36108fbeb718fc9e8d69089319e7dcc.jpg","text":"TemporaryFile(/tmp/multipartBody8164358611390684332asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086576697,"filename":"image_16062025_17_07_54_9712.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d4255783d15c431e38513903adae1f43.jpg","text":"TemporaryFile(/tmp/multipartBody7030024554949561051asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086576697,"filename":"image_16062025_17_08_25_9711.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/53763d6bbf3600ba85c2d4ed3bbb18d3.jpg","text":"TemporaryFile(/tmp/multipartBody5447068686879863184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086576697,"filename":"image_16062025_17_08_34_9751.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/30770044ac9cb5040c6c42d2b21a7117.jpg","text":"TemporaryFile(/tmp/multipartBody520276070428247207asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086576697,"filename":"image_16062025_17_08_45_10810.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366574010","file1":"1366573962","file0":"1366573778","file4":"1366574179","file5":"1366574448","file3":"1366574053"},"map_files_photo_id_array":[{"photo_id":"1366574448","filename":"file5"},{"photo_id":"1366574010","filename":"file2"},{"photo_id":"1366574179","filename":"file4"},{"photo_id":"1366573962","filename":"file1"},{"photo_id":"1366573778","filename":"file0"},{"photo_id":"1366574053","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366574179":["hashtag1","hashtag2"]},{"1366574053":["hashtag1","hashtag2"]},{"1366574448":["hashtag1","hashtag2"]},{"1366574010":["hashtag1","hashtag2"]},{"1366573962":["hashtag1","hashtag2"]},{"1366573778":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366574179, 1366574053, 1366574448, 1366574010, 1366573962, 1366573778)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 180.84154391288757 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:11:47.587921
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/11/image_16062025_17_11_45_9719.jpg', 2), ('/home/nano/Desktop/images/16062025/17/11/image_16062025_17_11_35_9723.jpg', 2), ('/home/nano/Desktop/images/16062025/17/11/image_16062025_17_11_25_10711.jpg', 2), ('/home/nano/Desktop/images/16062025/17/11/image_16062025_17_11_14_9701.jpg', 2), ('/home/nano/Desktop/images/16062025/17/10/image_16062025_17_11_05_9803.jpg', 2), ('/home/nano/Desktop/images/16062025/17/10/image_16062025_17_10_55_9790.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/11/image_16062025_17_11_45_9719.jpg', '/home/nano/Desktop/images/16062025/17/11/image_16062025_17_11_35_9723.jpg', '/home/nano/Desktop/images/16062025/17/11/image_16062025_17_11_25_10711.jpg', '/home/nano/Desktop/images/16062025/17/11/image_16062025_17_11_14_9701.jpg', '/home/nano/Desktop/images/16062025/17/10/image_16062025_17_11_05_9803.jpg', '/home/nano/Desktop/images/16062025/17/10/image_16062025_17_10_55_9790.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/11/image_16062025_17_11_45_9719.jpg
/home/nano/Desktop/images/16062025/17/11/image_16062025_17_11_35_9723.jpg
/home/nano/Desktop/images/16062025/17/11/image_16062025_17_11_25_10711.jpg
/home/nano/Desktop/images/16062025/17/11/image_16062025_17_11_14_9701.jpg
/home/nano/Desktop/images/16062025/17/10/image_16062025_17_11_05_9803.jpg
/home/nano/Desktop/images/16062025/17/10/image_16062025_17_10_55_9790.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366574881","1366574917","1366574814","1366574690","1366574759","1366574873"],"photo_ids_order":["1366574690","1366574759","1366574814","1366574873","1366574881","1366574917"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fd134aa091842fd7a0d6842e1ba26fef.jpg","text":"TemporaryFile(/tmp/multipartBody8911216187636218280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086773799,"filename":"image_16062025_17_11_05_9803.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3dc22b8d3a50ad3402420f883144a2a2.jpg","text":"TemporaryFile(/tmp/multipartBody7866049903335968244asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086773799,"filename":"image_16062025_17_10_55_9790.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2603260054ee8bce333435c4ae0a86b5.jpg","text":"TemporaryFile(/tmp/multipartBody5694707399109914716asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086773799,"filename":"image_16062025_17_11_25_10711.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bf07632cb5166c99672514169e2e0395.jpg","text":"TemporaryFile(/tmp/multipartBody7330183789787438205asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086773799,"filename":"image_16062025_17_11_45_9719.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/53c903546482c3efcc3e02604d62cd52.jpg","text":"TemporaryFile(/tmp/multipartBody880609046621513354asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086773799,"filename":"image_16062025_17_11_35_9723.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2a1bc065ea422d8ff52cccf40e182a8c.jpg","text":"TemporaryFile(/tmp/multipartBody4349100461152726114asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086773799,"filename":"image_16062025_17_11_14_9701.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366574814","file1":"1366574759","file0":"1366574690","file4":"1366574881","file5":"1366574917","file3":"1366574873"},"map_files_photo_id_array":[{"photo_id":"1366574917","filename":"file5"},{"photo_id":"1366574814","filename":"file2"},{"photo_id":"1366574881","filename":"file4"},{"photo_id":"1366574759","filename":"file1"},{"photo_id":"1366574690","filename":"file0"},{"photo_id":"1366574873","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366574881":["hashtag1","hashtag2"]},{"1366574917":["hashtag1","hashtag2"]},{"1366574814":["hashtag1","hashtag2"]},{"1366574690":["hashtag1","hashtag2"]},{"1366574759":["hashtag1","hashtag2"]},{"1366574873":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366574881, 1366574917, 1366574814, 1366574690, 1366574759, 1366574873)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 70.2505247592926 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:13:02.570080
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/12/image_16062025_17_12_45_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/17/12/image_16062025_17_12_35_10657.jpg', 2), ('/home/nano/Desktop/images/16062025/17/12/image_16062025_17_12_25_9724.jpg', 2), ('/home/nano/Desktop/images/16062025/17/12/image_16062025_17_12_15_9748.jpg', 2), ('/home/nano/Desktop/images/16062025/17/11/image_16062025_17_12_05_9761.jpg', 2), ('/home/nano/Desktop/images/16062025/17/11/image_16062025_17_11_55_10702.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/12/image_16062025_17_12_45_9616.jpg', '/home/nano/Desktop/images/16062025/17/12/image_16062025_17_12_35_10657.jpg', '/home/nano/Desktop/images/16062025/17/12/image_16062025_17_12_25_9724.jpg', '/home/nano/Desktop/images/16062025/17/12/image_16062025_17_12_15_9748.jpg', '/home/nano/Desktop/images/16062025/17/11/image_16062025_17_12_05_9761.jpg', '/home/nano/Desktop/images/16062025/17/11/image_16062025_17_11_55_10702.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/12/image_16062025_17_12_45_9616.jpg
/home/nano/Desktop/images/16062025/17/12/image_16062025_17_12_35_10657.jpg
/home/nano/Desktop/images/16062025/17/12/image_16062025_17_12_25_9724.jpg
/home/nano/Desktop/images/16062025/17/12/image_16062025_17_12_15_9748.jpg
/home/nano/Desktop/images/16062025/17/11/image_16062025_17_12_05_9761.jpg
/home/nano/Desktop/images/16062025/17/11/image_16062025_17_11_55_10702.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366575048","1366575042","1366575167","1366575110","1366575035","1366575175"],"photo_ids_order":["1366575035","1366575042","1366575048","1366575110","1366575167","1366575175"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7b2ff9727a399a70dc753c8826c9806b.jpg","text":"TemporaryFile(/tmp/multipartBody5062516950921503232asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086855613,"filename":"image_16062025_17_12_25_9724.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b83ceb362875b6bb1f49d95ab8cdabdc.jpg","text":"TemporaryFile(/tmp/multipartBody8385384124870159634asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086855613,"filename":"image_16062025_17_12_35_10657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5da2eebc3f92bdbc14c4541b23a2186e.jpg","text":"TemporaryFile(/tmp/multipartBody2004244680061491346asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086855613,"filename":"image_16062025_17_12_05_9761.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8a9bbc63274ee38ad19410d3db53ad7f.jpg","text":"TemporaryFile(/tmp/multipartBody2791983569658974871asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086855613,"filename":"image_16062025_17_12_15_9748.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/802e4de64b205422794ce5e748a04e4c.jpg","text":"TemporaryFile(/tmp/multipartBody7178470073866061646asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086855613,"filename":"image_16062025_17_12_45_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/31f906977c6cb12e69be2f6252fc7a9f.jpg","text":"TemporaryFile(/tmp/multipartBody5288928306971727118asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086855613,"filename":"image_16062025_17_11_55_10702.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366575048","file1":"1366575042","file0":"1366575035","file4":"1366575167","file5":"1366575175","file3":"1366575110"},"map_files_photo_id_array":[{"photo_id":"1366575175","filename":"file5"},{"photo_id":"1366575048","filename":"file2"},{"photo_id":"1366575167","filename":"file4"},{"photo_id":"1366575042","filename":"file1"},{"photo_id":"1366575035","filename":"file0"},{"photo_id":"1366575110","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366575048":["hashtag1","hashtag2"]},{"1366575042":["hashtag1","hashtag2"]},{"1366575167":["hashtag1","hashtag2"]},{"1366575110":["hashtag1","hashtag2"]},{"1366575035":["hashtag1","hashtag2"]},{"1366575175":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366575048, 1366575042, 1366575167, 1366575110, 1366575035, 1366575175)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 86.47616577148438 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:14:31.866208
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/14/image_16062025_17_14_45_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/17/14/image_16062025_17_14_35_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/17/14/image_16062025_17_14_25_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/17/14/image_16062025_17_14_14_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/17/13/image_16062025_17_14_05_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/17/13/image_16062025_17_13_55_10636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/14/image_16062025_17_14_45_10635.jpg', '/home/nano/Desktop/images/16062025/17/14/image_16062025_17_14_35_9623.jpg', '/home/nano/Desktop/images/16062025/17/14/image_16062025_17_14_25_10628.jpg', '/home/nano/Desktop/images/16062025/17/14/image_16062025_17_14_14_9622.jpg', '/home/nano/Desktop/images/16062025/17/13/image_16062025_17_14_05_9632.jpg', '/home/nano/Desktop/images/16062025/17/13/image_16062025_17_13_55_10636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/14/image_16062025_17_14_45_10635.jpg
/home/nano/Desktop/images/16062025/17/14/image_16062025_17_14_35_9623.jpg
/home/nano/Desktop/images/16062025/17/14/image_16062025_17_14_25_10628.jpg
/home/nano/Desktop/images/16062025/17/14/image_16062025_17_14_14_9622.jpg
/home/nano/Desktop/images/16062025/17/13/image_16062025_17_14_05_9632.jpg
/home/nano/Desktop/images/16062025/17/13/image_16062025_17_13_55_10636.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366575211","1366575205","1366575198","1366575225","1366575203","1366575193"],"photo_ids_order":["1366575193","1366575198","1366575203","1366575205","1366575211","1366575225"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/43f2059962075c5060fb2cb9c318a550.jpg","text":"TemporaryFile(/tmp/multipartBody8862063326622891148asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086935397,"filename":"image_16062025_17_14_05_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bb6dfc808cc18de7f52774ee7a47a464.jpg","text":"TemporaryFile(/tmp/multipartBody5653295291018177860asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086935397,"filename":"image_16062025_17_14_14_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/65ee969f7633036832cdfb6fea201661.jpg","text":"TemporaryFile(/tmp/multipartBody4441753751044829453asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086935397,"filename":"image_16062025_17_14_35_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/55ad722c22d7317a0359e8944e60a01f.jpg","text":"TemporaryFile(/tmp/multipartBody2415974875326237430asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086935397,"filename":"image_16062025_17_13_55_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/170d757951a150e1f25deb82559c7102.jpg","text":"TemporaryFile(/tmp/multipartBody7580131888000998734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086935397,"filename":"image_16062025_17_14_25_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/853c0352225b1ed67481ec277619332d.jpg","text":"TemporaryFile(/tmp/multipartBody1802619926175255689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750086935397,"filename":"image_16062025_17_14_45_10635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366575203","file1":"1366575198","file0":"1366575193","file4":"1366575211","file5":"1366575225","file3":"1366575205"},"map_files_photo_id_array":[{"photo_id":"1366575225","filename":"file5"},{"photo_id":"1366575203","filename":"file2"},{"photo_id":"1366575211","filename":"file4"},{"photo_id":"1366575198","filename":"file1"},{"photo_id":"1366575193","filename":"file0"},{"photo_id":"1366575205","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366575211":["hashtag1","hashtag2"]},{"1366575205":["hashtag1","hashtag2"]},{"1366575198":["hashtag1","hashtag2"]},{"1366575225":["hashtag1","hashtag2"]},{"1366575203":["hashtag1","hashtag2"]},{"1366575193":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366575211, 1366575205, 1366575198, 1366575225, 1366575203, 1366575193)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 112.06541085243225 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:16:32.132528
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/16/image_16062025_17_16_45_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/17/16/image_16062025_17_16_34_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/17/16/image_16062025_17_16_25_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/17/16/image_16062025_17_16_15_10679.jpg', 2), ('/home/nano/Desktop/images/16062025/17/15/image_16062025_17_16_04_9653.jpg', 2), ('/home/nano/Desktop/images/16062025/17/15/image_16062025_17_15_55_9647.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/16/image_16062025_17_16_45_10649.jpg', '/home/nano/Desktop/images/16062025/17/16/image_16062025_17_16_34_9639.jpg', '/home/nano/Desktop/images/16062025/17/16/image_16062025_17_16_25_9643.jpg', '/home/nano/Desktop/images/16062025/17/16/image_16062025_17_16_15_10679.jpg', '/home/nano/Desktop/images/16062025/17/15/image_16062025_17_16_04_9653.jpg', '/home/nano/Desktop/images/16062025/17/15/image_16062025_17_15_55_9647.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/16/image_16062025_17_16_45_10649.jpg
/home/nano/Desktop/images/16062025/17/16/image_16062025_17_16_34_9639.jpg
/home/nano/Desktop/images/16062025/17/16/image_16062025_17_16_25_9643.jpg
/home/nano/Desktop/images/16062025/17/16/image_16062025_17_16_15_10679.jpg
/home/nano/Desktop/images/16062025/17/15/image_16062025_17_16_04_9653.jpg
/home/nano/Desktop/images/16062025/17/15/image_16062025_17_15_55_9647.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366575505","1366575579","1366575609","1366575521","1366575685","1366575442"],"photo_ids_order":["1366575442","1366575505","1366575521","1366575579","1366575609","1366575685"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/92872218e6d5455ea299fcce6e4fbcba.jpg","text":"TemporaryFile(/tmp/multipartBody2835819266264194913asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087056990,"filename":"image_16062025_17_16_34_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/44d9108b7052e3b824b8bdbd3fa7b53e.jpg","text":"TemporaryFile(/tmp/multipartBody95225915790014693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087056990,"filename":"image_16062025_17_16_15_10679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2ffa38d455cd1e786b569f5e92b22d16.jpg","text":"TemporaryFile(/tmp/multipartBody6054574721570645231asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087056990,"filename":"image_16062025_17_16_04_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/41f189ff106e87faf098ba8c2da31baf.jpg","text":"TemporaryFile(/tmp/multipartBody3542143294537047637asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087056990,"filename":"image_16062025_17_16_25_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2c14176d40b144a56948a77549138291.jpg","text":"TemporaryFile(/tmp/multipartBody6226571770697530282asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087056990,"filename":"image_16062025_17_15_55_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0f014e806c2af646c7d087c2aa27fb1b.jpg","text":"TemporaryFile(/tmp/multipartBody7526507875662746323asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087056990,"filename":"image_16062025_17_16_45_10649.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366575521","file1":"1366575505","file0":"1366575442","file4":"1366575609","file5":"1366575685","file3":"1366575579"},"map_files_photo_id_array":[{"photo_id":"1366575685","filename":"file5"},{"photo_id":"1366575521","filename":"file2"},{"photo_id":"1366575609","filename":"file4"},{"photo_id":"1366575505","filename":"file1"},{"photo_id":"1366575442","filename":"file0"},{"photo_id":"1366575579","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366575505":["hashtag1","hashtag2"]},{"1366575579":["hashtag1","hashtag2"]},{"1366575609":["hashtag1","hashtag2"]},{"1366575521":["hashtag1","hashtag2"]},{"1366575685":["hashtag1","hashtag2"]},{"1366575442":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366575505, 1366575579, 1366575609, 1366575521, 1366575685, 1366575442)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 93.7985429763794 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:18:17.339430
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/18/image_16062025_17_18_45_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/17/18/image_16062025_17_18_35_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/17/18/image_16062025_17_18_25_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/17/18/image_16062025_17_18_15_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/17/17/image_16062025_17_18_05_10663.jpg', 2), ('/home/nano/Desktop/images/16062025/17/17/image_16062025_17_17_55_9641.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/18/image_16062025_17_18_45_9651.jpg', '/home/nano/Desktop/images/16062025/17/18/image_16062025_17_18_35_10650.jpg', '/home/nano/Desktop/images/16062025/17/18/image_16062025_17_18_25_9652.jpg', '/home/nano/Desktop/images/16062025/17/18/image_16062025_17_18_15_9646.jpg', '/home/nano/Desktop/images/16062025/17/17/image_16062025_17_18_05_10663.jpg', '/home/nano/Desktop/images/16062025/17/17/image_16062025_17_17_55_9641.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/18/image_16062025_17_18_45_9651.jpg
/home/nano/Desktop/images/16062025/17/18/image_16062025_17_18_35_10650.jpg
/home/nano/Desktop/images/16062025/17/18/image_16062025_17_18_25_9652.jpg
/home/nano/Desktop/images/16062025/17/18/image_16062025_17_18_15_9646.jpg
/home/nano/Desktop/images/16062025/17/17/image_16062025_17_18_05_10663.jpg
/home/nano/Desktop/images/16062025/17/17/image_16062025_17_17_55_9641.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366575751","1366575783","1366575744","1366575738","1366575766","1366575775"],"photo_ids_order":["1366575738","1366575744","1366575751","1366575766","1366575775","1366575783"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b5e062080b8d38fee5fc0781066d0599.jpg","text":"TemporaryFile(/tmp/multipartBody2150047635725691400asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087163850,"filename":"image_16062025_17_18_25_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bb27160023d14a39241d1bf0976069d8.jpg","text":"TemporaryFile(/tmp/multipartBody4838460613771067187asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087163850,"filename":"image_16062025_17_17_55_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/52be83925667b94c308b7dbae5effcda.jpg","text":"TemporaryFile(/tmp/multipartBody1071775852154374851asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087163850,"filename":"image_16062025_17_18_35_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8338f231e4240e1994288239f7674301.jpg","text":"TemporaryFile(/tmp/multipartBody2796656695329841248asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087163850,"filename":"image_16062025_17_18_45_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/25c327104fdcd47dfd7bd3423bfc9af2.jpg","text":"TemporaryFile(/tmp/multipartBody5538158485296867666asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087163850,"filename":"image_16062025_17_18_15_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/05f146b10821ec7c78092d8c3b971d5b.jpg","text":"TemporaryFile(/tmp/multipartBody3501169215948993783asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087163850,"filename":"image_16062025_17_18_05_10663.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366575751","file1":"1366575744","file0":"1366575738","file4":"1366575775","file5":"1366575783","file3":"1366575766"},"map_files_photo_id_array":[{"photo_id":"1366575783","filename":"file5"},{"photo_id":"1366575751","filename":"file2"},{"photo_id":"1366575775","filename":"file4"},{"photo_id":"1366575744","filename":"file1"},{"photo_id":"1366575738","filename":"file0"},{"photo_id":"1366575766","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366575751":["hashtag1","hashtag2"]},{"1366575783":["hashtag1","hashtag2"]},{"1366575744":["hashtag1","hashtag2"]},{"1366575738":["hashtag1","hashtag2"]},{"1366575766":["hashtag1","hashtag2"]},{"1366575775":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366575751, 1366575783, 1366575744, 1366575738, 1366575766, 1366575775)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 95.32165455818176 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:20:03.082467
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/19/image_16062025_17_19_45_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/17/19/image_16062025_17_19_35_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/17/19/image_16062025_17_19_25_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/17/19/image_16062025_17_19_15_9653.jpg', 2), ('/home/nano/Desktop/images/16062025/17/18/image_16062025_17_19_05_10663.jpg', 2), ('/home/nano/Desktop/images/16062025/17/18/image_16062025_17_18_55_9643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/19/image_16062025_17_19_45_9645.jpg', '/home/nano/Desktop/images/16062025/17/19/image_16062025_17_19_35_10656.jpg', '/home/nano/Desktop/images/16062025/17/19/image_16062025_17_19_25_9651.jpg', '/home/nano/Desktop/images/16062025/17/19/image_16062025_17_19_15_9653.jpg', '/home/nano/Desktop/images/16062025/17/18/image_16062025_17_19_05_10663.jpg', '/home/nano/Desktop/images/16062025/17/18/image_16062025_17_18_55_9643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/19/image_16062025_17_19_45_9645.jpg
/home/nano/Desktop/images/16062025/17/19/image_16062025_17_19_35_10656.jpg
/home/nano/Desktop/images/16062025/17/19/image_16062025_17_19_25_9651.jpg
/home/nano/Desktop/images/16062025/17/19/image_16062025_17_19_15_9653.jpg
/home/nano/Desktop/images/16062025/17/18/image_16062025_17_19_05_10663.jpg
/home/nano/Desktop/images/16062025/17/18/image_16062025_17_18_55_9643.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366576062","1366576053","1366576070","1366575810","1366576043","1366576016"],"photo_ids_order":["1366575810","1366576016","1366576043","1366576053","1366576062","1366576070"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/39598b72ebf3fe9afb64904a6d9c579f.jpg","text":"TemporaryFile(/tmp/multipartBody8833682168963225246asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087268962,"filename":"image_16062025_17_19_05_10663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9ff1723961bd9f1d34cf733ab74d5ae3.jpg","text":"TemporaryFile(/tmp/multipartBody1949940831343598836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087268962,"filename":"image_16062025_17_19_15_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ee8d8b96403c9dbde28db7077223a9b4.jpg","text":"TemporaryFile(/tmp/multipartBody2179982857832555684asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087268962,"filename":"image_16062025_17_18_55_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9392d0d54c775a668302eb1fa9332be6.jpg","text":"TemporaryFile(/tmp/multipartBody352768067716719844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087268962,"filename":"image_16062025_17_19_45_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/69ee02345c5db3ede0d3602b84dbd2cf.jpg","text":"TemporaryFile(/tmp/multipartBody6633079006033504655asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087268962,"filename":"image_16062025_17_19_25_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8264dde81e4463cdcf6f042b184d0ce9.jpg","text":"TemporaryFile(/tmp/multipartBody1031681779982925665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087268962,"filename":"image_16062025_17_19_35_10656.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366576043","file1":"1366576016","file0":"1366575810","file4":"1366576062","file5":"1366576070","file3":"1366576053"},"map_files_photo_id_array":[{"photo_id":"1366576070","filename":"file5"},{"photo_id":"1366576043","filename":"file2"},{"photo_id":"1366576062","filename":"file4"},{"photo_id":"1366576016","filename":"file1"},{"photo_id":"1366575810","filename":"file0"},{"photo_id":"1366576053","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366576062":["hashtag1","hashtag2"]},{"1366576053":["hashtag1","hashtag2"]},{"1366576070":["hashtag1","hashtag2"]},{"1366575810":["hashtag1","hashtag2"]},{"1366576043":["hashtag1","hashtag2"]},{"1366576016":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366576062, 1366576053, 1366576070, 1366575810, 1366576043, 1366576016)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 285.21130418777466 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:25:02.649393
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/24/image_16062025_17_24_44_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/17/24/image_16062025_17_24_35_9663.jpg', 2), ('/home/nano/Desktop/images/16062025/17/24/image_16062025_17_24_25_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/17/24/image_16062025_17_24_15_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/17/23/image_16062025_17_24_05_9653.jpg', 2), ('/home/nano/Desktop/images/16062025/17/23/image_16062025_17_23_55_10656.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/24/image_16062025_17_24_44_9647.jpg', '/home/nano/Desktop/images/16062025/17/24/image_16062025_17_24_35_9663.jpg', '/home/nano/Desktop/images/16062025/17/24/image_16062025_17_24_25_10650.jpg', '/home/nano/Desktop/images/16062025/17/24/image_16062025_17_24_15_9646.jpg', '/home/nano/Desktop/images/16062025/17/23/image_16062025_17_24_05_9653.jpg', '/home/nano/Desktop/images/16062025/17/23/image_16062025_17_23_55_10656.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/24/image_16062025_17_24_44_9647.jpg
/home/nano/Desktop/images/16062025/17/24/image_16062025_17_24_35_9663.jpg
/home/nano/Desktop/images/16062025/17/24/image_16062025_17_24_25_10650.jpg
/home/nano/Desktop/images/16062025/17/24/image_16062025_17_24_15_9646.jpg
/home/nano/Desktop/images/16062025/17/23/image_16062025_17_24_05_9653.jpg
/home/nano/Desktop/images/16062025/17/23/image_16062025_17_23_55_10656.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366576374","1366576317","1366576367","1366576346","1366576278","1366576185"],"photo_ids_order":["1366576185","1366576278","1366576317","1366576346","1366576367","1366576374"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/207c36d6596769b41b26f86d6f9dabc8.jpg","text":"TemporaryFile(/tmp/multipartBody8218332589888330253asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087578731,"filename":"image_16062025_17_23_55_10656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/766ae5bd3aa31be4cbac02a646538bbf.jpg","text":"TemporaryFile(/tmp/multipartBody2941425134668821436asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087578731,"filename":"image_16062025_17_24_25_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4ea37f282dc00ce1d8a0bcfac3d36d2f.jpg","text":"TemporaryFile(/tmp/multipartBody436542695112399562asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087578731,"filename":"image_16062025_17_24_05_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/aea24260e189eb76b609d96c3e693bac.jpg","text":"TemporaryFile(/tmp/multipartBody4303006371603277434asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087578731,"filename":"image_16062025_17_24_15_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/623524e7c0ef7fb9fb1d726e791a757d.jpg","text":"TemporaryFile(/tmp/multipartBody6839339576472816643asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087578731,"filename":"image_16062025_17_24_35_9663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e8fce63f2fc262daf2f3288315af7917.jpg","text":"TemporaryFile(/tmp/multipartBody559447826281344593asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087578731,"filename":"image_16062025_17_24_44_9647.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366576317","file1":"1366576278","file0":"1366576185","file4":"1366576367","file5":"1366576374","file3":"1366576346"},"map_files_photo_id_array":[{"photo_id":"1366576374","filename":"file5"},{"photo_id":"1366576317","filename":"file2"},{"photo_id":"1366576367","filename":"file4"},{"photo_id":"1366576278","filename":"file1"},{"photo_id":"1366576185","filename":"file0"},{"photo_id":"1366576346","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366576374":["hashtag1","hashtag2"]},{"1366576317":["hashtag1","hashtag2"]},{"1366576367":["hashtag1","hashtag2"]},{"1366576346":["hashtag1","hashtag2"]},{"1366576278":["hashtag1","hashtag2"]},{"1366576185":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366576374, 1366576317, 1366576367, 1366576346, 1366576278, 1366576185)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 142.61582231521606 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:27:32.290726
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/27/image_16062025_17_27_45_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/17/27/image_16062025_17_27_35_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/17/27/image_16062025_17_27_25_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/17/27/image_16062025_17_27_15_10693.jpg', 2), ('/home/nano/Desktop/images/16062025/17/26/image_16062025_17_27_05_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/17/26/image_16062025_17_26_55_9656.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/27/image_16062025_17_27_45_10647.jpg', '/home/nano/Desktop/images/16062025/17/27/image_16062025_17_27_35_9638.jpg', '/home/nano/Desktop/images/16062025/17/27/image_16062025_17_27_25_9646.jpg', '/home/nano/Desktop/images/16062025/17/27/image_16062025_17_27_15_10693.jpg', '/home/nano/Desktop/images/16062025/17/26/image_16062025_17_27_05_9649.jpg', '/home/nano/Desktop/images/16062025/17/26/image_16062025_17_26_55_9656.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/27/image_16062025_17_27_45_10647.jpg
/home/nano/Desktop/images/16062025/17/27/image_16062025_17_27_35_9638.jpg
/home/nano/Desktop/images/16062025/17/27/image_16062025_17_27_25_9646.jpg
/home/nano/Desktop/images/16062025/17/27/image_16062025_17_27_15_10693.jpg
/home/nano/Desktop/images/16062025/17/26/image_16062025_17_27_05_9649.jpg
/home/nano/Desktop/images/16062025/17/26/image_16062025_17_26_55_9656.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366576410","1366576404","1366576438","1366576423","1366576414","1366576398"],"photo_ids_order":["1366576398","1366576404","1366576410","1366576414","1366576423","1366576438"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/eee44f40b96a20d0c5768dbb4d8fbef7.jpg","text":"TemporaryFile(/tmp/multipartBody7996055554999913602asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087719666,"filename":"image_16062025_17_27_25_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/972b6550ce9301f43d4e3f6ee8efd004.jpg","text":"TemporaryFile(/tmp/multipartBody5621886927201030770asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087719666,"filename":"image_16062025_17_27_35_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/32d767167e5892d9f6a1d24efefe6a54.jpg","text":"TemporaryFile(/tmp/multipartBody4535359512468561374asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087719666,"filename":"image_16062025_17_26_55_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/92905b4bd25e25b449a8f9b446089601.jpg","text":"TemporaryFile(/tmp/multipartBody5051325837760986116asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087719666,"filename":"image_16062025_17_27_05_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/212be8c43a56ffc70ff6bab28edb6933.jpg","text":"TemporaryFile(/tmp/multipartBody4111594761424501556asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087719666,"filename":"image_16062025_17_27_15_10693.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ef023bc47f75153a4af544f7c08d5c7d.jpg","text":"TemporaryFile(/tmp/multipartBody4965623333050133499asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087719666,"filename":"image_16062025_17_27_45_10647.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366576410","file1":"1366576404","file0":"1366576398","file4":"1366576423","file5":"1366576438","file3":"1366576414"},"map_files_photo_id_array":[{"photo_id":"1366576438","filename":"file5"},{"photo_id":"1366576410","filename":"file2"},{"photo_id":"1366576423","filename":"file4"},{"photo_id":"1366576404","filename":"file1"},{"photo_id":"1366576398","filename":"file0"},{"photo_id":"1366576414","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366576410":["hashtag1","hashtag2"]},{"1366576404":["hashtag1","hashtag2"]},{"1366576438":["hashtag1","hashtag2"]},{"1366576423":["hashtag1","hashtag2"]},{"1366576414":["hashtag1","hashtag2"]},{"1366576398":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366576410, 1366576404, 1366576438, 1366576423, 1366576414, 1366576398)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 147.9789741039276 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:30:03.179299
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/29/image_16062025_17_29_45_10686.jpg', 2), ('/home/nano/Desktop/images/16062025/17/29/image_16062025_17_29_34_9727.jpg', 2), ('/home/nano/Desktop/images/16062025/17/29/image_16062025_17_29_25_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/17/29/image_16062025_17_29_15_10696.jpg', 2), ('/home/nano/Desktop/images/16062025/17/28/image_16062025_17_29_04_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/17/28/image_16062025_17_28_55_9628.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/29/image_16062025_17_29_45_10686.jpg', '/home/nano/Desktop/images/16062025/17/29/image_16062025_17_29_34_9727.jpg', '/home/nano/Desktop/images/16062025/17/29/image_16062025_17_29_25_9624.jpg', '/home/nano/Desktop/images/16062025/17/29/image_16062025_17_29_15_10696.jpg', '/home/nano/Desktop/images/16062025/17/28/image_16062025_17_29_04_9643.jpg', '/home/nano/Desktop/images/16062025/17/28/image_16062025_17_28_55_9628.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/29/image_16062025_17_29_45_10686.jpg
/home/nano/Desktop/images/16062025/17/29/image_16062025_17_29_34_9727.jpg
/home/nano/Desktop/images/16062025/17/29/image_16062025_17_29_25_9624.jpg
/home/nano/Desktop/images/16062025/17/29/image_16062025_17_29_15_10696.jpg
/home/nano/Desktop/images/16062025/17/28/image_16062025_17_29_04_9643.jpg
/home/nano/Desktop/images/16062025/17/28/image_16062025_17_28_55_9628.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366576464","1366576638","1366576545","1366576604","1366576596","1366576476"],"photo_ids_order":["1366576464","1366576476","1366576545","1366576596","1366576604","1366576638"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/487be04fc7a68aec2acc88cd2925a855.jpg","text":"TemporaryFile(/tmp/multipartBody636993102145463627asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087868972,"filename":"image_16062025_17_29_45_10686.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b04d5f8bad08ab0acf86812e49e7d24e.jpg","text":"TemporaryFile(/tmp/multipartBody6249545855173231303asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087868972,"filename":"image_16062025_17_28_55_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f94f9a4fd5b49f70c9cd765336bfaeba.jpg","text":"TemporaryFile(/tmp/multipartBody5949592991744149369asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087868972,"filename":"image_16062025_17_29_25_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/399ce885ff6b56e17ecca17a11e3eaef.jpg","text":"TemporaryFile(/tmp/multipartBody3868648434706178522asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087868972,"filename":"image_16062025_17_29_04_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/80e0bf6e07d18087b4d9b03e24fc27b5.jpg","text":"TemporaryFile(/tmp/multipartBody2434190288662099711asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087868972,"filename":"image_16062025_17_29_15_10696.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9f1fb54d52ffb2d215b9972befd767aa.jpg","text":"TemporaryFile(/tmp/multipartBody5088485287116195411asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087868972,"filename":"image_16062025_17_29_34_9727.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366576545","file1":"1366576476","file0":"1366576464","file4":"1366576604","file5":"1366576638","file3":"1366576596"},"map_files_photo_id_array":[{"photo_id":"1366576638","filename":"file5"},{"photo_id":"1366576545","filename":"file2"},{"photo_id":"1366576604","filename":"file4"},{"photo_id":"1366576476","filename":"file1"},{"photo_id":"1366576464","filename":"file0"},{"photo_id":"1366576596","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366576464":["hashtag1","hashtag2"]},{"1366576638":["hashtag1","hashtag2"]},{"1366576545":["hashtag1","hashtag2"]},{"1366576604":["hashtag1","hashtag2"]},{"1366576596":["hashtag1","hashtag2"]},{"1366576476":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366576464, 1366576638, 1366576545, 1366576604, 1366576596, 1366576476)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 102.37017321586609 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:31:47.675625
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/31/image_16062025_17_31_44_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/17/31/image_16062025_17_31_35_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/17/31/image_16062025_17_31_25_10704.jpg', 2), ('/home/nano/Desktop/images/16062025/17/31/image_16062025_17_31_15_9751.jpg', 2), ('/home/nano/Desktop/images/16062025/17/30/image_16062025_17_31_05_9747.jpg', 2), ('/home/nano/Desktop/images/16062025/17/30/image_16062025_17_30_55_9716.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/31/image_16062025_17_31_44_9597.jpg', '/home/nano/Desktop/images/16062025/17/31/image_16062025_17_31_35_9609.jpg', '/home/nano/Desktop/images/16062025/17/31/image_16062025_17_31_25_10704.jpg', '/home/nano/Desktop/images/16062025/17/31/image_16062025_17_31_15_9751.jpg', '/home/nano/Desktop/images/16062025/17/30/image_16062025_17_31_05_9747.jpg', '/home/nano/Desktop/images/16062025/17/30/image_16062025_17_30_55_9716.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/31/image_16062025_17_31_44_9597.jpg
/home/nano/Desktop/images/16062025/17/31/image_16062025_17_31_35_9609.jpg
/home/nano/Desktop/images/16062025/17/31/image_16062025_17_31_25_10704.jpg
/home/nano/Desktop/images/16062025/17/31/image_16062025_17_31_15_9751.jpg
/home/nano/Desktop/images/16062025/17/30/image_16062025_17_31_05_9747.jpg
/home/nano/Desktop/images/16062025/17/30/image_16062025_17_30_55_9716.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366576659","1366576679","1366576688","1366576693","1366576648","1366576674"],"photo_ids_order":["1366576648","1366576659","1366576674","1366576679","1366576688","1366576693"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c066d01b1d1aae67028120158c2633f3.jpg","text":"TemporaryFile(/tmp/multipartBody4252228129338203705asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087980407,"filename":"image_16062025_17_31_35_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bfa87aa3fbeb9ee845aec6363bca509a.jpg","text":"TemporaryFile(/tmp/multipartBody6060970226723475467asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087980407,"filename":"image_16062025_17_31_15_9751.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4b7113e3ab6f3def6f82b5d463c2f9eb.jpg","text":"TemporaryFile(/tmp/multipartBody859639657551612633asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087980407,"filename":"image_16062025_17_31_05_9747.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/63b0b9878c11d0f68fdb55f7db69eab5.jpg","text":"TemporaryFile(/tmp/multipartBody7591651825716160422asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087980407,"filename":"image_16062025_17_30_55_9716.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6d6a324538ea24c0a876a8a38c047c58.jpg","text":"TemporaryFile(/tmp/multipartBody1960747837451905135asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087980407,"filename":"image_16062025_17_31_44_9597.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2e4b932048c50569ad8e3f01cba585ff.jpg","text":"TemporaryFile(/tmp/multipartBody4279864390960424900asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750087980407,"filename":"image_16062025_17_31_25_10704.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366576674","file1":"1366576659","file0":"1366576648","file4":"1366576688","file5":"1366576693","file3":"1366576679"},"map_files_photo_id_array":[{"photo_id":"1366576693","filename":"file5"},{"photo_id":"1366576674","filename":"file2"},{"photo_id":"1366576688","filename":"file4"},{"photo_id":"1366576659","filename":"file1"},{"photo_id":"1366576648","filename":"file0"},{"photo_id":"1366576679","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366576659":["hashtag1","hashtag2"]},{"1366576679":["hashtag1","hashtag2"]},{"1366576688":["hashtag1","hashtag2"]},{"1366576693":["hashtag1","hashtag2"]},{"1366576648":["hashtag1","hashtag2"]},{"1366576674":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366576659, 1366576679, 1366576688, 1366576693, 1366576648, 1366576674)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 136.38496232032776 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:34:16.968823
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/34/image_16062025_17_34_45_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/17/34/image_16062025_17_34_35_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/17/34/image_16062025_17_34_25_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/17/34/image_16062025_17_34_15_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/17/33/image_16062025_17_34_05_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/17/33/image_16062025_17_33_55_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/34/image_16062025_17_34_45_9626.jpg', '/home/nano/Desktop/images/16062025/17/34/image_16062025_17_34_35_10621.jpg', '/home/nano/Desktop/images/16062025/17/34/image_16062025_17_34_25_9635.jpg', '/home/nano/Desktop/images/16062025/17/34/image_16062025_17_34_15_9622.jpg', '/home/nano/Desktop/images/16062025/17/33/image_16062025_17_34_05_10641.jpg', '/home/nano/Desktop/images/16062025/17/33/image_16062025_17_33_55_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/34/image_16062025_17_34_45_9626.jpg
/home/nano/Desktop/images/16062025/17/34/image_16062025_17_34_35_10621.jpg
/home/nano/Desktop/images/16062025/17/34/image_16062025_17_34_25_9635.jpg
/home/nano/Desktop/images/16062025/17/34/image_16062025_17_34_15_9622.jpg
/home/nano/Desktop/images/16062025/17/33/image_16062025_17_34_05_10641.jpg
/home/nano/Desktop/images/16062025/17/33/image_16062025_17_33_55_9610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366576752","1366576734","1366576748","1366576742","1366576762","1366576756"],"photo_ids_order":["1366576734","1366576742","1366576748","1366576752","1366576756","1366576762"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1ba4670e408db1d2892651bc1592ece7.jpg","text":"TemporaryFile(/tmp/multipartBody3573622166179539025asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088121263,"filename":"image_16062025_17_34_15_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/028d24abe645c920304353646ab3be59.jpg","text":"TemporaryFile(/tmp/multipartBody5870336187801255199asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088121263,"filename":"image_16062025_17_34_45_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/715e97c320a9655e49ae4d2fa73cd0f2.jpg","text":"TemporaryFile(/tmp/multipartBody7969475580282667675asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088121263,"filename":"image_16062025_17_34_25_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a7e6ac22e26a94537bef88659a673810.jpg","text":"TemporaryFile(/tmp/multipartBody8037667653796779188asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088121263,"filename":"image_16062025_17_34_35_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/94b0dbd08b8304a0dae31093eef961d3.jpg","text":"TemporaryFile(/tmp/multipartBody5550474478762332850asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088121263,"filename":"image_16062025_17_33_55_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fe38de9a8b94a40da093232a7056c3d7.jpg","text":"TemporaryFile(/tmp/multipartBody8994505409010984661asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088121263,"filename":"image_16062025_17_34_05_10641.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366576748","file1":"1366576742","file0":"1366576734","file4":"1366576756","file5":"1366576762","file3":"1366576752"},"map_files_photo_id_array":[{"photo_id":"1366576762","filename":"file5"},{"photo_id":"1366576748","filename":"file2"},{"photo_id":"1366576756","filename":"file4"},{"photo_id":"1366576742","filename":"file1"},{"photo_id":"1366576734","filename":"file0"},{"photo_id":"1366576752","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366576752":["hashtag1","hashtag2"]},{"1366576734":["hashtag1","hashtag2"]},{"1366576748":["hashtag1","hashtag2"]},{"1366576742":["hashtag1","hashtag2"]},{"1366576762":["hashtag1","hashtag2"]},{"1366576756":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366576752, 1366576734, 1366576748, 1366576742, 1366576762, 1366576756)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 118.33360457420349 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:36:17.196424
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/36/image_16062025_17_36_44_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/17/36/image_16062025_17_36_35_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/17/36/image_16062025_17_36_25_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/17/36/image_16062025_17_36_15_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/17/35/image_16062025_17_36_05_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/17/35/image_16062025_17_35_55_10621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/36/image_16062025_17_36_44_9629.jpg', '/home/nano/Desktop/images/16062025/17/36/image_16062025_17_36_35_9622.jpg', '/home/nano/Desktop/images/16062025/17/36/image_16062025_17_36_25_10635.jpg', '/home/nano/Desktop/images/16062025/17/36/image_16062025_17_36_15_9657.jpg', '/home/nano/Desktop/images/16062025/17/35/image_16062025_17_36_05_9633.jpg', '/home/nano/Desktop/images/16062025/17/35/image_16062025_17_35_55_10621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/36/image_16062025_17_36_44_9629.jpg
/home/nano/Desktop/images/16062025/17/36/image_16062025_17_36_35_9622.jpg
/home/nano/Desktop/images/16062025/17/36/image_16062025_17_36_25_10635.jpg
/home/nano/Desktop/images/16062025/17/36/image_16062025_17_36_15_9657.jpg
/home/nano/Desktop/images/16062025/17/35/image_16062025_17_36_05_9633.jpg
/home/nano/Desktop/images/16062025/17/35/image_16062025_17_35_55_10621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366576796","1366576997","1366576784","1366576775","1366576913","1366576789"],"photo_ids_order":["1366576775","1366576784","1366576789","1366576796","1366576913","1366576997"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/46af5def08b6664e5f1ad80ac8686d2b.jpg","text":"TemporaryFile(/tmp/multipartBody530734864379189990asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088240984,"filename":"image_16062025_17_36_15_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6e5091e87fa37415747c6a01a659caf0.jpg","text":"TemporaryFile(/tmp/multipartBody6960704942363743203asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088240984,"filename":"image_16062025_17_35_55_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8f594de8cdfd07fd85982d5c1521200a.jpg","text":"TemporaryFile(/tmp/multipartBody2434882870077616506asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088240984,"filename":"image_16062025_17_36_35_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0cb17972bda7730adf52a4e1ea3201f1.jpg","text":"TemporaryFile(/tmp/multipartBody74878205440211988asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088240984,"filename":"image_16062025_17_36_44_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e5879054143a8ac8a767408987a5b4aa.jpg","text":"TemporaryFile(/tmp/multipartBody4163182410824780284asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088240984,"filename":"image_16062025_17_36_05_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/efaba5dab170dbe2c85f41c6d4bea580.jpg","text":"TemporaryFile(/tmp/multipartBody4130898598550184223asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088240984,"filename":"image_16062025_17_36_25_10635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366576789","file1":"1366576784","file0":"1366576775","file4":"1366576913","file5":"1366576997","file3":"1366576796"},"map_files_photo_id_array":[{"photo_id":"1366576997","filename":"file5"},{"photo_id":"1366576789","filename":"file2"},{"photo_id":"1366576913","filename":"file4"},{"photo_id":"1366576784","filename":"file1"},{"photo_id":"1366576775","filename":"file0"},{"photo_id":"1366576796","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366576796":["hashtag1","hashtag2"]},{"1366576997":["hashtag1","hashtag2"]},{"1366576784":["hashtag1","hashtag2"]},{"1366576775":["hashtag1","hashtag2"]},{"1366576913":["hashtag1","hashtag2"]},{"1366576789":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366576796, 1366576997, 1366576784, 1366576775, 1366576913, 1366576789)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 100.77823567390442 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:38:03.007529
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/37/image_16062025_17_37_45_10739.jpg', 2), ('/home/nano/Desktop/images/16062025/17/37/image_16062025_17_37_35_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/17/37/image_16062025_17_37_25_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/17/37/image_16062025_17_37_15_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/17/36/image_16062025_17_37_05_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/17/36/image_16062025_17_36_55_10647.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/37/image_16062025_17_37_45_10739.jpg', '/home/nano/Desktop/images/16062025/17/37/image_16062025_17_37_35_9607.jpg', '/home/nano/Desktop/images/16062025/17/37/image_16062025_17_37_25_9626.jpg', '/home/nano/Desktop/images/16062025/17/37/image_16062025_17_37_15_10666.jpg', '/home/nano/Desktop/images/16062025/17/36/image_16062025_17_37_05_9623.jpg', '/home/nano/Desktop/images/16062025/17/36/image_16062025_17_36_55_10647.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/37/image_16062025_17_37_45_10739.jpg
/home/nano/Desktop/images/16062025/17/37/image_16062025_17_37_35_9607.jpg
/home/nano/Desktop/images/16062025/17/37/image_16062025_17_37_25_9626.jpg
/home/nano/Desktop/images/16062025/17/37/image_16062025_17_37_15_10666.jpg
/home/nano/Desktop/images/16062025/17/36/image_16062025_17_37_05_9623.jpg
/home/nano/Desktop/images/16062025/17/36/image_16062025_17_36_55_10647.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366577513","1366577299","1366577592","1366577640","1366577478","1366577385"],"photo_ids_order":["1366577299","1366577385","1366577478","1366577513","1366577592","1366577640"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/132d80f1cb4fd44b0b1f4fa24eebea7d.jpg","text":"TemporaryFile(/tmp/multipartBody268963285298394774asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088349702,"filename":"image_16062025_17_37_15_10666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/56bb316ab78fda2231876531d7072c20.jpg","text":"TemporaryFile(/tmp/multipartBody6042684771022390905asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088349702,"filename":"image_16062025_17_37_45_10739.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c4df1c43063a239c75aab8a61464a36e.jpg","text":"TemporaryFile(/tmp/multipartBody7355518379002419753asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088349702,"filename":"image_16062025_17_37_05_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/59d90ef6300ecb4879f09051ffe5d3c0.jpg","text":"TemporaryFile(/tmp/multipartBody5768091843855655898asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088349702,"filename":"image_16062025_17_36_55_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c6c71ab3faaf02429b5ffcf0023688a9.jpg","text":"TemporaryFile(/tmp/multipartBody1710237341125239340asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088349702,"filename":"image_16062025_17_37_25_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/289832ade4417c827faceb9c2b4b651a.jpg","text":"TemporaryFile(/tmp/multipartBody3745694017137400627asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088349702,"filename":"image_16062025_17_37_35_9607.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366577478","file1":"1366577385","file0":"1366577299","file4":"1366577592","file5":"1366577640","file3":"1366577513"},"map_files_photo_id_array":[{"photo_id":"1366577640","filename":"file5"},{"photo_id":"1366577478","filename":"file2"},{"photo_id":"1366577592","filename":"file4"},{"photo_id":"1366577385","filename":"file1"},{"photo_id":"1366577299","filename":"file0"},{"photo_id":"1366577513","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366577513":["hashtag1","hashtag2"]},{"1366577299":["hashtag1","hashtag2"]},{"1366577592":["hashtag1","hashtag2"]},{"1366577640":["hashtag1","hashtag2"]},{"1366577478":["hashtag1","hashtag2"]},{"1366577385":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366577513, 1366577299, 1366577592, 1366577640, 1366577478, 1366577385)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 63.30376887321472 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:39:17.478006
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/39/image_16062025_17_39_44_9797.jpg', 2), ('/home/nano/Desktop/images/16062025/17/39/image_16062025_17_39_35_9796.jpg', 2), ('/home/nano/Desktop/images/16062025/17/39/image_16062025_17_39_25_9675.jpg', 2), ('/home/nano/Desktop/images/16062025/17/39/image_16062025_17_39_15_9808.jpg', 2), ('/home/nano/Desktop/images/16062025/17/38/image_16062025_17_39_05_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/17/38/image_16062025_17_38_55_9771.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/39/image_16062025_17_39_44_9797.jpg', '/home/nano/Desktop/images/16062025/17/39/image_16062025_17_39_35_9796.jpg', '/home/nano/Desktop/images/16062025/17/39/image_16062025_17_39_25_9675.jpg', '/home/nano/Desktop/images/16062025/17/39/image_16062025_17_39_15_9808.jpg', '/home/nano/Desktop/images/16062025/17/38/image_16062025_17_39_05_10644.jpg', '/home/nano/Desktop/images/16062025/17/38/image_16062025_17_38_55_9771.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/39/image_16062025_17_39_44_9797.jpg
/home/nano/Desktop/images/16062025/17/39/image_16062025_17_39_35_9796.jpg
/home/nano/Desktop/images/16062025/17/39/image_16062025_17_39_25_9675.jpg
/home/nano/Desktop/images/16062025/17/39/image_16062025_17_39_15_9808.jpg
/home/nano/Desktop/images/16062025/17/38/image_16062025_17_39_05_10644.jpg
/home/nano/Desktop/images/16062025/17/38/image_16062025_17_38_55_9771.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366577795","1366577780","1366577777","1366577801","1366577788","1366577809"],"photo_ids_order":["1366577777","1366577780","1366577788","1366577795","1366577801","1366577809"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a4da509885f7a888c83637f36ca7b4a4.jpg","text":"TemporaryFile(/tmp/multipartBody2687366282269903553asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088421307,"filename":"image_16062025_17_39_15_9808.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c197e24437e923325ae88059b0840df2.jpg","text":"TemporaryFile(/tmp/multipartBody9011047353941970457asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088421307,"filename":"image_16062025_17_39_35_9796.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/be19252742349b668b42dc863ba8ad9b.jpg","text":"TemporaryFile(/tmp/multipartBody5150411233025894200asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088421307,"filename":"image_16062025_17_39_44_9797.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dac472f275e86e4128e5356c636ed6f9.jpg","text":"TemporaryFile(/tmp/multipartBody3683848326266202526asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088421307,"filename":"image_16062025_17_39_05_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7e695dfd8cb89ea7fb2531ed8bfc49ac.jpg","text":"TemporaryFile(/tmp/multipartBody6103654391573326593asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088421307,"filename":"image_16062025_17_39_25_9675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/33b8e95a78efb866edc5c6812047aa83.jpg","text":"TemporaryFile(/tmp/multipartBody5985824468679684526asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088421307,"filename":"image_16062025_17_38_55_9771.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366577788","file1":"1366577780","file0":"1366577777","file4":"1366577801","file5":"1366577809","file3":"1366577795"},"map_files_photo_id_array":[{"photo_id":"1366577809","filename":"file5"},{"photo_id":"1366577788","filename":"file2"},{"photo_id":"1366577801","filename":"file4"},{"photo_id":"1366577780","filename":"file1"},{"photo_id":"1366577777","filename":"file0"},{"photo_id":"1366577795","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366577795":["hashtag1","hashtag2"]},{"1366577780":["hashtag1","hashtag2"]},{"1366577777":["hashtag1","hashtag2"]},{"1366577801":["hashtag1","hashtag2"]},{"1366577788":["hashtag1","hashtag2"]},{"1366577809":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366577795, 1366577780, 1366577777, 1366577801, 1366577788, 1366577809)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 84.08489918708801 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:40:47.580900
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/40/image_16062025_17_40_45_9755.jpg', 2), ('/home/nano/Desktop/images/16062025/17/40/image_16062025_17_40_35_10759.jpg', 2), ('/home/nano/Desktop/images/16062025/17/40/image_16062025_17_40_24_9783.jpg', 2), ('/home/nano/Desktop/images/16062025/17/40/image_16062025_17_40_15_9681.jpg', 2), ('/home/nano/Desktop/images/16062025/17/39/image_16062025_17_40_05_9863.jpg', 2), ('/home/nano/Desktop/images/16062025/17/39/image_16062025_17_39_55_10689.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/40/image_16062025_17_40_45_9755.jpg', '/home/nano/Desktop/images/16062025/17/40/image_16062025_17_40_35_10759.jpg', '/home/nano/Desktop/images/16062025/17/40/image_16062025_17_40_24_9783.jpg', '/home/nano/Desktop/images/16062025/17/40/image_16062025_17_40_15_9681.jpg', '/home/nano/Desktop/images/16062025/17/39/image_16062025_17_40_05_9863.jpg', '/home/nano/Desktop/images/16062025/17/39/image_16062025_17_39_55_10689.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/40/image_16062025_17_40_45_9755.jpg
/home/nano/Desktop/images/16062025/17/40/image_16062025_17_40_35_10759.jpg
/home/nano/Desktop/images/16062025/17/40/image_16062025_17_40_24_9783.jpg
/home/nano/Desktop/images/16062025/17/40/image_16062025_17_40_15_9681.jpg
/home/nano/Desktop/images/16062025/17/39/image_16062025_17_40_05_9863.jpg
/home/nano/Desktop/images/16062025/17/39/image_16062025_17_39_55_10689.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366577825","1366577840","1366577828","1366577848","1366577833","1366577821"],"photo_ids_order":["1366577821","1366577825","1366577828","1366577833","1366577840","1366577848"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7e2b7486f675cfb3d4067779b3e50f7d.jpg","text":"TemporaryFile(/tmp/multipartBody2753401077642971948asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088511925,"filename":"image_16062025_17_40_35_10759.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1877273df7c30a024f5900f3288121d0.jpg","text":"TemporaryFile(/tmp/multipartBody8185873512220066761asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088511925,"filename":"image_16062025_17_40_05_9863.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/05daf614b3bdc9c87207ee093f12f079.jpg","text":"TemporaryFile(/tmp/multipartBody2156002054557955075asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088511925,"filename":"image_16062025_17_40_24_9783.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3b07f4fe53d135d977667b860be9b12c.jpg","text":"TemporaryFile(/tmp/multipartBody5512337538092901738asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088511925,"filename":"image_16062025_17_39_55_10689.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d17376ab769dae08282a20fc550604d8.jpg","text":"TemporaryFile(/tmp/multipartBody2457614274414437600asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088511925,"filename":"image_16062025_17_40_15_9681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dce6ac845a937c58382c27638ec9b2a9.jpg","text":"TemporaryFile(/tmp/multipartBody4297998476461965666asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088511925,"filename":"image_16062025_17_40_45_9755.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366577828","file1":"1366577825","file0":"1366577821","file4":"1366577840","file5":"1366577848","file3":"1366577833"},"map_files_photo_id_array":[{"photo_id":"1366577848","filename":"file5"},{"photo_id":"1366577828","filename":"file2"},{"photo_id":"1366577840","filename":"file4"},{"photo_id":"1366577825","filename":"file1"},{"photo_id":"1366577821","filename":"file0"},{"photo_id":"1366577833","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366577825":["hashtag1","hashtag2"]},{"1366577840":["hashtag1","hashtag2"]},{"1366577828":["hashtag1","hashtag2"]},{"1366577848":["hashtag1","hashtag2"]},{"1366577833":["hashtag1","hashtag2"]},{"1366577821":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366577825, 1366577840, 1366577828, 1366577848, 1366577833, 1366577821)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 84.01913690567017 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:42:16.764137
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/42/image_16062025_17_42_45_10617.jpg', 2), ('/home/nano/Desktop/images/16062025/17/42/image_16062025_17_42_35_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/17/42/image_16062025_17_42_25_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/17/42/image_16062025_17_42_14_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/17/41/image_16062025_17_42_05_9791.jpg', 2), ('/home/nano/Desktop/images/16062025/17/41/image_16062025_17_41_55_9660.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/42/image_16062025_17_42_45_10617.jpg', '/home/nano/Desktop/images/16062025/17/42/image_16062025_17_42_35_9624.jpg', '/home/nano/Desktop/images/16062025/17/42/image_16062025_17_42_25_10635.jpg', '/home/nano/Desktop/images/16062025/17/42/image_16062025_17_42_14_9657.jpg', '/home/nano/Desktop/images/16062025/17/41/image_16062025_17_42_05_9791.jpg', '/home/nano/Desktop/images/16062025/17/41/image_16062025_17_41_55_9660.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/42/image_16062025_17_42_45_10617.jpg
/home/nano/Desktop/images/16062025/17/42/image_16062025_17_42_35_9624.jpg
/home/nano/Desktop/images/16062025/17/42/image_16062025_17_42_25_10635.jpg
/home/nano/Desktop/images/16062025/17/42/image_16062025_17_42_14_9657.jpg
/home/nano/Desktop/images/16062025/17/41/image_16062025_17_42_05_9791.jpg
/home/nano/Desktop/images/16062025/17/41/image_16062025_17_41_55_9660.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366578134","1366578376","1366578367","1366578390","1366578255","1366578383"],"photo_ids_order":["1366578134","1366578255","1366578367","1366578376","1366578383","1366578390"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ad6b010fa8dd5b5c3349ca0fb99b5533.jpg","text":"TemporaryFile(/tmp/multipartBody6335988544437163384asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088616693,"filename":"image_16062025_17_42_45_10617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e2d302f77b05ebc529ed27a9cc7f9f6c.jpg","text":"TemporaryFile(/tmp/multipartBody2282501161017630155asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088616693,"filename":"image_16062025_17_42_14_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9b979b976132ecf4a612be13ec449405.jpg","text":"TemporaryFile(/tmp/multipartBody8872853837889126526asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088616693,"filename":"image_16062025_17_42_25_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a0f47470a82115fd38ba8692fa90c1d0.jpg","text":"TemporaryFile(/tmp/multipartBody5421401381543731922asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088616693,"filename":"image_16062025_17_41_55_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/adbb023a4938a5adff0f84ff6f49b3fd.jpg","text":"TemporaryFile(/tmp/multipartBody8894010745651822624asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088616693,"filename":"image_16062025_17_42_35_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/90804700e1aafd9db4c6744d2fdb6611.jpg","text":"TemporaryFile(/tmp/multipartBody824043315986624225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088616693,"filename":"image_16062025_17_42_05_9791.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366578367","file1":"1366578255","file0":"1366578134","file4":"1366578383","file5":"1366578390","file3":"1366578376"},"map_files_photo_id_array":[{"photo_id":"1366578390","filename":"file5"},{"photo_id":"1366578367","filename":"file2"},{"photo_id":"1366578383","filename":"file4"},{"photo_id":"1366578255","filename":"file1"},{"photo_id":"1366578134","filename":"file0"},{"photo_id":"1366578376","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366578134":["hashtag1","hashtag2"]},{"1366578376":["hashtag1","hashtag2"]},{"1366578367":["hashtag1","hashtag2"]},{"1366578390":["hashtag1","hashtag2"]},{"1366578255":["hashtag1","hashtag2"]},{"1366578383":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366578134, 1366578376, 1366578367, 1366578390, 1366578255, 1366578383)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 120.11500072479248 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:44:32.013955
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/44/image_16062025_17_44_45_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/17/44/image_16062025_17_44_35_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/17/44/image_16062025_17_44_25_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/17/44/image_16062025_17_44_15_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/17/43/image_16062025_17_44_05_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/17/43/image_16062025_17_43_55_9613.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/44/image_16062025_17_44_45_9626.jpg', '/home/nano/Desktop/images/16062025/17/44/image_16062025_17_44_35_10628.jpg', '/home/nano/Desktop/images/16062025/17/44/image_16062025_17_44_25_9622.jpg', '/home/nano/Desktop/images/16062025/17/44/image_16062025_17_44_15_9638.jpg', '/home/nano/Desktop/images/16062025/17/43/image_16062025_17_44_05_10641.jpg', '/home/nano/Desktop/images/16062025/17/43/image_16062025_17_43_55_9613.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/44/image_16062025_17_44_45_9626.jpg
/home/nano/Desktop/images/16062025/17/44/image_16062025_17_44_35_10628.jpg
/home/nano/Desktop/images/16062025/17/44/image_16062025_17_44_25_9622.jpg
/home/nano/Desktop/images/16062025/17/44/image_16062025_17_44_15_9638.jpg
/home/nano/Desktop/images/16062025/17/43/image_16062025_17_44_05_10641.jpg
/home/nano/Desktop/images/16062025/17/43/image_16062025_17_43_55_9613.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366578449","1366578410","1366578454","1366578424","1366578420","1366578444"],"photo_ids_order":["1366578410","1366578420","1366578424","1366578444","1366578449","1366578454"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/506df5233c009fd9afd6d7f042606467.jpg","text":"TemporaryFile(/tmp/multipartBody9075003965709049761asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088735336,"filename":"image_16062025_17_44_05_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/33edef1e8f6188c5573d17fe1dcf1b55.jpg","text":"TemporaryFile(/tmp/multipartBody8490873528185789077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088735336,"filename":"image_16062025_17_44_45_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/023247d353eba647eaff9c899cf4f321.jpg","text":"TemporaryFile(/tmp/multipartBody3299007038773708394asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088735336,"filename":"image_16062025_17_43_55_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0b42937d936d6c96fb626a0463fd550b.jpg","text":"TemporaryFile(/tmp/multipartBody4661088554201939149asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088735336,"filename":"image_16062025_17_44_25_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/89ac7229a203c62cabe9486a878f8bd6.jpg","text":"TemporaryFile(/tmp/multipartBody6926663707298399061asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088735336,"filename":"image_16062025_17_44_35_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f6424404c3bc72f18214600e376dee0b.jpg","text":"TemporaryFile(/tmp/multipartBody6925256493975603532asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088735336,"filename":"image_16062025_17_44_15_9638.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366578424","file1":"1366578420","file0":"1366578410","file4":"1366578449","file5":"1366578454","file3":"1366578444"},"map_files_photo_id_array":[{"photo_id":"1366578454","filename":"file5"},{"photo_id":"1366578424","filename":"file2"},{"photo_id":"1366578449","filename":"file4"},{"photo_id":"1366578420","filename":"file1"},{"photo_id":"1366578410","filename":"file0"},{"photo_id":"1366578444","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366578449":["hashtag1","hashtag2"]},{"1366578410":["hashtag1","hashtag2"]},{"1366578454":["hashtag1","hashtag2"]},{"1366578424":["hashtag1","hashtag2"]},{"1366578420":["hashtag1","hashtag2"]},{"1366578444":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366578449, 1366578410, 1366578454, 1366578424, 1366578420, 1366578444)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 93.89513421058655 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:46:17.208471
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/46/image_16062025_17_46_45_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/17/46/image_16062025_17_46_35_9735.jpg', 2), ('/home/nano/Desktop/images/16062025/17/46/image_16062025_17_46_25_10675.jpg', 2), ('/home/nano/Desktop/images/16062025/17/46/image_16062025_17_46_15_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/17/45/image_16062025_17_46_05_9699.jpg', 2), ('/home/nano/Desktop/images/16062025/17/45/image_16062025_17_45_55_10649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/46/image_16062025_17_46_45_9649.jpg', '/home/nano/Desktop/images/16062025/17/46/image_16062025_17_46_35_9735.jpg', '/home/nano/Desktop/images/16062025/17/46/image_16062025_17_46_25_10675.jpg', '/home/nano/Desktop/images/16062025/17/46/image_16062025_17_46_15_9655.jpg', '/home/nano/Desktop/images/16062025/17/45/image_16062025_17_46_05_9699.jpg', '/home/nano/Desktop/images/16062025/17/45/image_16062025_17_45_55_10649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/46/image_16062025_17_46_45_9649.jpg
/home/nano/Desktop/images/16062025/17/46/image_16062025_17_46_35_9735.jpg
/home/nano/Desktop/images/16062025/17/46/image_16062025_17_46_25_10675.jpg
/home/nano/Desktop/images/16062025/17/46/image_16062025_17_46_15_9655.jpg
/home/nano/Desktop/images/16062025/17/45/image_16062025_17_46_05_9699.jpg
/home/nano/Desktop/images/16062025/17/45/image_16062025_17_45_55_10649.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366578509","1366578503","1366578506","1366578517","1366578492","1366578513"],"photo_ids_order":["1366578492","1366578503","1366578506","1366578509","1366578513","1366578517"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ba30e81425771ee7df131035d019e537.jpg","text":"TemporaryFile(/tmp/multipartBody4060766772317642131asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088840560,"filename":"image_16062025_17_46_15_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bd09bac3b54b09e712d79e73e129c54b.jpg","text":"TemporaryFile(/tmp/multipartBody3904869717116310525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088840560,"filename":"image_16062025_17_46_35_9735.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b8d8cbecab029aa0d14f09f9ca6b8940.jpg","text":"TemporaryFile(/tmp/multipartBody3513501310917449475asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088840560,"filename":"image_16062025_17_46_25_10675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/77a882980d56dbdd15caeb03eac09389.jpg","text":"TemporaryFile(/tmp/multipartBody2550941587097942408asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088840560,"filename":"image_16062025_17_45_55_10649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/20f7c06e0d613354e45ce168b4a3959f.jpg","text":"TemporaryFile(/tmp/multipartBody3673814654436240511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088840560,"filename":"image_16062025_17_46_45_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7769a3f18d370df8b2d80ffc5d9ae988.jpg","text":"TemporaryFile(/tmp/multipartBody96175470040486124asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088840560,"filename":"image_16062025_17_46_05_9699.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366578506","file1":"1366578503","file0":"1366578492","file4":"1366578513","file5":"1366578517","file3":"1366578509"},"map_files_photo_id_array":[{"photo_id":"1366578517","filename":"file5"},{"photo_id":"1366578506","filename":"file2"},{"photo_id":"1366578513","filename":"file4"},{"photo_id":"1366578503","filename":"file1"},{"photo_id":"1366578492","filename":"file0"},{"photo_id":"1366578509","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366578509":["hashtag1","hashtag2"]},{"1366578503":["hashtag1","hashtag2"]},{"1366578506":["hashtag1","hashtag2"]},{"1366578517":["hashtag1","hashtag2"]},{"1366578492":["hashtag1","hashtag2"]},{"1366578513":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366578509, 1366578503, 1366578506, 1366578517, 1366578492, 1366578513)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 51.881104469299316 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:47:17.310239
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/47/image_16062025_17_47_45_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/17/47/image_16062025_17_47_35_10659.jpg', 2), ('/home/nano/Desktop/images/16062025/17/47/image_16062025_17_47_24_9676.jpg', 2), ('/home/nano/Desktop/images/16062025/17/47/image_16062025_17_47_15_9693.jpg', 2), ('/home/nano/Desktop/images/16062025/17/46/image_16062025_17_47_05_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/17/46/image_16062025_17_46_55_10645.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/47/image_16062025_17_47_45_9651.jpg', '/home/nano/Desktop/images/16062025/17/47/image_16062025_17_47_35_10659.jpg', '/home/nano/Desktop/images/16062025/17/47/image_16062025_17_47_24_9676.jpg', '/home/nano/Desktop/images/16062025/17/47/image_16062025_17_47_15_9693.jpg', '/home/nano/Desktop/images/16062025/17/46/image_16062025_17_47_05_9668.jpg', '/home/nano/Desktop/images/16062025/17/46/image_16062025_17_46_55_10645.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/47/image_16062025_17_47_45_9651.jpg
/home/nano/Desktop/images/16062025/17/47/image_16062025_17_47_35_10659.jpg
/home/nano/Desktop/images/16062025/17/47/image_16062025_17_47_24_9676.jpg
/home/nano/Desktop/images/16062025/17/47/image_16062025_17_47_15_9693.jpg
/home/nano/Desktop/images/16062025/17/46/image_16062025_17_47_05_9668.jpg
/home/nano/Desktop/images/16062025/17/46/image_16062025_17_46_55_10645.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366578551","1366578539","1366578560","1366578542","1366578546","1366578555"],"photo_ids_order":["1366578539","1366578542","1366578546","1366578551","1366578555","1366578560"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6e98033212f5b1fb212e4716c171a87b.jpg","text":"TemporaryFile(/tmp/multipartBody4016763639428174456asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088911275,"filename":"image_16062025_17_47_15_9693.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2817877a53f2b4d0c976f64151d78ebe.jpg","text":"TemporaryFile(/tmp/multipartBody7159161514041526438asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088911275,"filename":"image_16062025_17_47_45_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3020cecaad22a7bb41d665501b8d0dd5.jpg","text":"TemporaryFile(/tmp/multipartBody7555796335643901406asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088911275,"filename":"image_16062025_17_46_55_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fda9b23c0714e7df0f7fe949777ba92a.jpg","text":"TemporaryFile(/tmp/multipartBody5039935548741534956asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088911275,"filename":"image_16062025_17_47_35_10659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f7e7776bfb5496541cd3bbc9b8bc7f2c.jpg","text":"TemporaryFile(/tmp/multipartBody3430250106619511696asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088911275,"filename":"image_16062025_17_47_24_9676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3a927500f97651af2060af71b2d4548b.jpg","text":"TemporaryFile(/tmp/multipartBody181045801328138414asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750088911275,"filename":"image_16062025_17_47_05_9668.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366578546","file1":"1366578542","file0":"1366578539","file4":"1366578555","file5":"1366578560","file3":"1366578551"},"map_files_photo_id_array":[{"photo_id":"1366578560","filename":"file5"},{"photo_id":"1366578546","filename":"file2"},{"photo_id":"1366578555","filename":"file4"},{"photo_id":"1366578542","filename":"file1"},{"photo_id":"1366578539","filename":"file0"},{"photo_id":"1366578551","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366578551":["hashtag1","hashtag2"]},{"1366578539":["hashtag1","hashtag2"]},{"1366578560":["hashtag1","hashtag2"]},{"1366578542":["hashtag1","hashtag2"]},{"1366578546":["hashtag1","hashtag2"]},{"1366578555":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366578551, 1366578539, 1366578560, 1366578542, 1366578546, 1366578555)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 90.5208580493927 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:49:03.599064
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/48/image_16062025_17_48_45_9663.jpg', 2), ('/home/nano/Desktop/images/16062025/17/48/image_16062025_17_48_35_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/17/48/image_16062025_17_48_24_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/17/48/image_16062025_17_48_15_9704.jpg', 2), ('/home/nano/Desktop/images/16062025/17/47/image_16062025_17_48_05_9663.jpg', 2), ('/home/nano/Desktop/images/16062025/17/47/image_16062025_17_47_55_10653.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/48/image_16062025_17_48_45_9663.jpg', '/home/nano/Desktop/images/16062025/17/48/image_16062025_17_48_35_10644.jpg', '/home/nano/Desktop/images/16062025/17/48/image_16062025_17_48_24_9657.jpg', '/home/nano/Desktop/images/16062025/17/48/image_16062025_17_48_15_9704.jpg', '/home/nano/Desktop/images/16062025/17/47/image_16062025_17_48_05_9663.jpg', '/home/nano/Desktop/images/16062025/17/47/image_16062025_17_47_55_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/48/image_16062025_17_48_45_9663.jpg
/home/nano/Desktop/images/16062025/17/48/image_16062025_17_48_35_10644.jpg
/home/nano/Desktop/images/16062025/17/48/image_16062025_17_48_24_9657.jpg
/home/nano/Desktop/images/16062025/17/48/image_16062025_17_48_15_9704.jpg
/home/nano/Desktop/images/16062025/17/47/image_16062025_17_48_05_9663.jpg
/home/nano/Desktop/images/16062025/17/47/image_16062025_17_47_55_10653.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366578665","1366578659","1366578638","1366578679","1366578699","1366578633"],"photo_ids_order":["1366578633","1366578638","1366578659","1366578665","1366578679","1366578699"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8e41ea61922f4415c8c7a5af06027db1.jpg","text":"TemporaryFile(/tmp/multipartBody1005538262601275596asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089006784,"filename":"image_16062025_17_48_15_9704.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/54430e7daa925e2f14f9ddd698711c40.jpg","text":"TemporaryFile(/tmp/multipartBody2903085005522121772asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089006784,"filename":"image_16062025_17_48_24_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/19752b494cd34a3b9facdef4f4221e23.jpg","text":"TemporaryFile(/tmp/multipartBody1716755837825446803asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089006784,"filename":"image_16062025_17_48_35_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1e711e97cf1dcc1cc194f9515fce3ac5.jpg","text":"TemporaryFile(/tmp/multipartBody7127934104909425776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089006784,"filename":"image_16062025_17_48_05_9663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/71e13f632d3d6548060f96556b2f3283.jpg","text":"TemporaryFile(/tmp/multipartBody2772808089858885399asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089006784,"filename":"image_16062025_17_47_55_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/64d62cef2d061372339486069bfd9273.jpg","text":"TemporaryFile(/tmp/multipartBody4823197922432832594asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089006784,"filename":"image_16062025_17_48_45_9663.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366578659","file1":"1366578638","file0":"1366578633","file4":"1366578679","file5":"1366578699","file3":"1366578665"},"map_files_photo_id_array":[{"photo_id":"1366578699","filename":"file5"},{"photo_id":"1366578659","filename":"file2"},{"photo_id":"1366578679","filename":"file4"},{"photo_id":"1366578638","filename":"file1"},{"photo_id":"1366578633","filename":"file0"},{"photo_id":"1366578665","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366578665":["hashtag1","hashtag2"]},{"1366578659":["hashtag1","hashtag2"]},{"1366578638":["hashtag1","hashtag2"]},{"1366578679":["hashtag1","hashtag2"]},{"1366578699":["hashtag1","hashtag2"]},{"1366578633":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366578665, 1366578659, 1366578638, 1366578679, 1366578699, 1366578633)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 86.66806674003601 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:50:32.679712
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/50/image_16062025_17_50_45_9682.jpg', 2), ('/home/nano/Desktop/images/16062025/17/50/image_16062025_17_50_35_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/17/50/image_16062025_17_50_25_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/17/50/image_16062025_17_50_15_9700.jpg', 2), ('/home/nano/Desktop/images/16062025/17/49/image_16062025_17_50_05_9749.jpg', 2), ('/home/nano/Desktop/images/16062025/17/49/image_16062025_17_49_55_10651.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/50/image_16062025_17_50_45_9682.jpg', '/home/nano/Desktop/images/16062025/17/50/image_16062025_17_50_35_9637.jpg', '/home/nano/Desktop/images/16062025/17/50/image_16062025_17_50_25_10656.jpg', '/home/nano/Desktop/images/16062025/17/50/image_16062025_17_50_15_9700.jpg', '/home/nano/Desktop/images/16062025/17/49/image_16062025_17_50_05_9749.jpg', '/home/nano/Desktop/images/16062025/17/49/image_16062025_17_49_55_10651.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/50/image_16062025_17_50_45_9682.jpg
/home/nano/Desktop/images/16062025/17/50/image_16062025_17_50_35_9637.jpg
/home/nano/Desktop/images/16062025/17/50/image_16062025_17_50_25_10656.jpg
/home/nano/Desktop/images/16062025/17/50/image_16062025_17_50_15_9700.jpg
/home/nano/Desktop/images/16062025/17/49/image_16062025_17_50_05_9749.jpg
/home/nano/Desktop/images/16062025/17/49/image_16062025_17_49_55_10651.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366578758","1366578847","1366578781","1366578769","1366578774","1366578711"],"photo_ids_order":["1366578711","1366578758","1366578769","1366578774","1366578781","1366578847"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/474f4bc1f56f0bb4e1591f4742cc2fed.jpg","text":"TemporaryFile(/tmp/multipartBody2224503831978834458asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089096715,"filename":"image_16062025_17_50_35_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d812744224226eb990e65c2fe799104e.jpg","text":"TemporaryFile(/tmp/multipartBody7392476904942251511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089096715,"filename":"image_16062025_17_49_55_10651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/65b5ad085a6dc132f058de553b91c379.jpg","text":"TemporaryFile(/tmp/multipartBody8464182385638894278asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089096715,"filename":"image_16062025_17_50_05_9749.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d68de7655f449302e6cd091f6d5c1ea9.jpg","text":"TemporaryFile(/tmp/multipartBody7789947654662365190asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089096715,"filename":"image_16062025_17_50_25_10656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/60d02cff3a18eafc2fa9105de8fe4edf.jpg","text":"TemporaryFile(/tmp/multipartBody3155030563417137810asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089096715,"filename":"image_16062025_17_50_15_9700.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e015824e3525276e5de447cfa54fe337.jpg","text":"TemporaryFile(/tmp/multipartBody5739404061544312213asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089096715,"filename":"image_16062025_17_50_45_9682.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366578769","file1":"1366578758","file0":"1366578711","file4":"1366578781","file5":"1366578847","file3":"1366578774"},"map_files_photo_id_array":[{"photo_id":"1366578847","filename":"file5"},{"photo_id":"1366578769","filename":"file2"},{"photo_id":"1366578781","filename":"file4"},{"photo_id":"1366578758","filename":"file1"},{"photo_id":"1366578711","filename":"file0"},{"photo_id":"1366578774","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366578758":["hashtag1","hashtag2"]},{"1366578847":["hashtag1","hashtag2"]},{"1366578781":["hashtag1","hashtag2"]},{"1366578769":["hashtag1","hashtag2"]},{"1366578774":["hashtag1","hashtag2"]},{"1366578711":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366578758, 1366578847, 1366578781, 1366578769, 1366578774, 1366578711)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 73.22968125343323 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:51:47.763346
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/51/image_16062025_17_51_45_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/17/51/image_16062025_17_51_35_10680.jpg', 2), ('/home/nano/Desktop/images/16062025/17/51/image_16062025_17_51_24_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/17/51/image_16062025_17_51_15_9698.jpg', 2), ('/home/nano/Desktop/images/16062025/17/50/image_16062025_17_51_05_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/17/50/image_16062025_17_50_55_10687.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/51/image_16062025_17_51_45_9644.jpg', '/home/nano/Desktop/images/16062025/17/51/image_16062025_17_51_35_10680.jpg', '/home/nano/Desktop/images/16062025/17/51/image_16062025_17_51_24_9654.jpg', '/home/nano/Desktop/images/16062025/17/51/image_16062025_17_51_15_9698.jpg', '/home/nano/Desktop/images/16062025/17/50/image_16062025_17_51_05_9652.jpg', '/home/nano/Desktop/images/16062025/17/50/image_16062025_17_50_55_10687.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/51/image_16062025_17_51_45_9644.jpg
/home/nano/Desktop/images/16062025/17/51/image_16062025_17_51_35_10680.jpg
/home/nano/Desktop/images/16062025/17/51/image_16062025_17_51_24_9654.jpg
/home/nano/Desktop/images/16062025/17/51/image_16062025_17_51_15_9698.jpg
/home/nano/Desktop/images/16062025/17/50/image_16062025_17_51_05_9652.jpg
/home/nano/Desktop/images/16062025/17/50/image_16062025_17_50_55_10687.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366578881","1366578878","1366578892","1366578886","1366578897","1366578872"],"photo_ids_order":["1366578872","1366578878","1366578881","1366578886","1366578892","1366578897"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/54f8507a12e12d4e5da669d241daa8d0.jpg","text":"TemporaryFile(/tmp/multipartBody7466823894332095384asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089171141,"filename":"image_16062025_17_51_24_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1028671bdc147834924f34eb25fb87ab.jpg","text":"TemporaryFile(/tmp/multipartBody8043345227960845070asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089171141,"filename":"image_16062025_17_51_35_10680.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c9c7afc44e47d6a8ebb2b657ba01e7ff.jpg","text":"TemporaryFile(/tmp/multipartBody14684853760551580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089171141,"filename":"image_16062025_17_51_05_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/384e3673289dc3a6a005573096cf1ba0.jpg","text":"TemporaryFile(/tmp/multipartBody7384744009592181276asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089171141,"filename":"image_16062025_17_51_15_9698.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e972e476669473fcf5195b82f9675b69.jpg","text":"TemporaryFile(/tmp/multipartBody6121664096934613934asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089171141,"filename":"image_16062025_17_50_55_10687.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c287509089f4aa89ffa2ac441f30bdfc.jpg","text":"TemporaryFile(/tmp/multipartBody7123194618976532250asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089171141,"filename":"image_16062025_17_51_45_9644.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366578881","file1":"1366578878","file0":"1366578872","file4":"1366578892","file5":"1366578897","file3":"1366578886"},"map_files_photo_id_array":[{"photo_id":"1366578897","filename":"file5"},{"photo_id":"1366578881","filename":"file2"},{"photo_id":"1366578892","filename":"file4"},{"photo_id":"1366578878","filename":"file1"},{"photo_id":"1366578872","filename":"file0"},{"photo_id":"1366578886","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366578881":["hashtag1","hashtag2"]},{"1366578878":["hashtag1","hashtag2"]},{"1366578892":["hashtag1","hashtag2"]},{"1366578886":["hashtag1","hashtag2"]},{"1366578897":["hashtag1","hashtag2"]},{"1366578872":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366578881, 1366578878, 1366578892, 1366578886, 1366578897, 1366578872)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 88.9654221534729 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:53:31.961863
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/53/image_16062025_17_53_45_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/17/53/image_16062025_17_53_35_9648.jpg', 2), ('/home/nano/Desktop/images/16062025/17/53/image_16062025_17_53_25_10663.jpg', 2), ('/home/nano/Desktop/images/16062025/17/53/image_16062025_17_53_15_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/17/52/image_16062025_17_53_05_9707.jpg', 2), ('/home/nano/Desktop/images/16062025/17/52/image_16062025_17_52_55_10683.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/53/image_16062025_17_53_45_9659.jpg', '/home/nano/Desktop/images/16062025/17/53/image_16062025_17_53_35_9648.jpg', '/home/nano/Desktop/images/16062025/17/53/image_16062025_17_53_25_10663.jpg', '/home/nano/Desktop/images/16062025/17/53/image_16062025_17_53_15_9654.jpg', '/home/nano/Desktop/images/16062025/17/52/image_16062025_17_53_05_9707.jpg', '/home/nano/Desktop/images/16062025/17/52/image_16062025_17_52_55_10683.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/53/image_16062025_17_53_45_9659.jpg
/home/nano/Desktop/images/16062025/17/53/image_16062025_17_53_35_9648.jpg
/home/nano/Desktop/images/16062025/17/53/image_16062025_17_53_25_10663.jpg
/home/nano/Desktop/images/16062025/17/53/image_16062025_17_53_15_9654.jpg
/home/nano/Desktop/images/16062025/17/52/image_16062025_17_53_05_9707.jpg
/home/nano/Desktop/images/16062025/17/52/image_16062025_17_52_55_10683.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366578950","1366578967","1366578931","1366578943","1366578954","1366578939"],"photo_ids_order":["1366578931","1366578939","1366578943","1366578950","1366578954","1366578967"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d64e1f7ad5a22a5e33e4af751f151391.jpg","text":"TemporaryFile(/tmp/multipartBody8440936394059667299asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089275242,"filename":"image_16062025_17_53_15_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9b7b0ab4c010808cca28fc562b5c65dc.jpg","text":"TemporaryFile(/tmp/multipartBody9029608875854096409asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089275242,"filename":"image_16062025_17_52_55_10683.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/490292d082fa40a9eb36067517433515.jpg","text":"TemporaryFile(/tmp/multipartBody8127743259587514217asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089275242,"filename":"image_16062025_17_53_45_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/206a6c03a67404f5b4fd5874be470cd6.jpg","text":"TemporaryFile(/tmp/multipartBody5690116012389678936asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089275242,"filename":"image_16062025_17_53_25_10663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6a9e236fcddbb665b2618b5937f7252b.jpg","text":"TemporaryFile(/tmp/multipartBody8428200249792586495asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089275242,"filename":"image_16062025_17_53_05_9707.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9712db8557688e55dd99589e261ff692.jpg","text":"TemporaryFile(/tmp/multipartBody8506506551340353637asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089275242,"filename":"image_16062025_17_53_35_9648.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366578943","file1":"1366578939","file0":"1366578931","file4":"1366578954","file5":"1366578967","file3":"1366578950"},"map_files_photo_id_array":[{"photo_id":"1366578967","filename":"file5"},{"photo_id":"1366578943","filename":"file2"},{"photo_id":"1366578954","filename":"file4"},{"photo_id":"1366578939","filename":"file1"},{"photo_id":"1366578931","filename":"file0"},{"photo_id":"1366578950","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366578950":["hashtag1","hashtag2"]},{"1366578967":["hashtag1","hashtag2"]},{"1366578931":["hashtag1","hashtag2"]},{"1366578943":["hashtag1","hashtag2"]},{"1366578954":["hashtag1","hashtag2"]},{"1366578939":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366578950, 1366578967, 1366578931, 1366578943, 1366578954, 1366578939)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 91.34727740287781 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:55:17.204693
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/55/image_16062025_17_55_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/17/55/image_16062025_17_55_35_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/17/55/image_16062025_17_55_25_10658.jpg', 2), ('/home/nano/Desktop/images/16062025/17/55/image_16062025_17_55_14_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/17/54/image_16062025_17_55_05_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/17/54/image_16062025_17_54_55_10625.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/55/image_16062025_17_55_44_9617.jpg', '/home/nano/Desktop/images/16062025/17/55/image_16062025_17_55_35_9632.jpg', '/home/nano/Desktop/images/16062025/17/55/image_16062025_17_55_25_10658.jpg', '/home/nano/Desktop/images/16062025/17/55/image_16062025_17_55_14_9660.jpg', '/home/nano/Desktop/images/16062025/17/54/image_16062025_17_55_05_9633.jpg', '/home/nano/Desktop/images/16062025/17/54/image_16062025_17_54_55_10625.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/55/image_16062025_17_55_44_9617.jpg
/home/nano/Desktop/images/16062025/17/55/image_16062025_17_55_35_9632.jpg
/home/nano/Desktop/images/16062025/17/55/image_16062025_17_55_25_10658.jpg
/home/nano/Desktop/images/16062025/17/55/image_16062025_17_55_14_9660.jpg
/home/nano/Desktop/images/16062025/17/54/image_16062025_17_55_05_9633.jpg
/home/nano/Desktop/images/16062025/17/54/image_16062025_17_54_55_10625.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366579208","1366578988","1366578993","1366578984","1366578998","1366579049"],"photo_ids_order":["1366578984","1366578988","1366578993","1366578998","1366579049","1366579208"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6d347d264d15227d6af1969b43b2daaa.jpg","text":"TemporaryFile(/tmp/multipartBody897168269530053451asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089381694,"filename":"image_16062025_17_54_55_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/db147b1432f052363633ffb3793e138a.jpg","text":"TemporaryFile(/tmp/multipartBody7672409894735844111asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089381694,"filename":"image_16062025_17_55_35_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6eb8f7c621af1240881cc8c986484b56.jpg","text":"TemporaryFile(/tmp/multipartBody3440627335763931022asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089381694,"filename":"image_16062025_17_55_25_10658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1399dfe40c6ccbff19a7850736bdb84a.jpg","text":"TemporaryFile(/tmp/multipartBody2002333786778831031asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089381694,"filename":"image_16062025_17_55_44_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1cc2f43a63848ff907e54f1bc1ba43f9.jpg","text":"TemporaryFile(/tmp/multipartBody1438631081480941159asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089381694,"filename":"image_16062025_17_55_14_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/53b48892ef7539a024cde5f1a6a1f7f9.jpg","text":"TemporaryFile(/tmp/multipartBody141656347565100507asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089381694,"filename":"image_16062025_17_55_05_9633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366578993","file1":"1366578988","file0":"1366578984","file4":"1366579049","file5":"1366579208","file3":"1366578998"},"map_files_photo_id_array":[{"photo_id":"1366579208","filename":"file5"},{"photo_id":"1366578993","filename":"file2"},{"photo_id":"1366579049","filename":"file4"},{"photo_id":"1366578988","filename":"file1"},{"photo_id":"1366578984","filename":"file0"},{"photo_id":"1366578998","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366579208":["hashtag1","hashtag2"]},{"1366578988":["hashtag1","hashtag2"]},{"1366578993":["hashtag1","hashtag2"]},{"1366578984":["hashtag1","hashtag2"]},{"1366578998":["hashtag1","hashtag2"]},{"1366579049":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366579208, 1366578988, 1366578993, 1366578984, 1366578998, 1366579049)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 104.15200805664062 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:57:03.136243
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/56/image_16062025_17_56_45_10675.jpg', 2), ('/home/nano/Desktop/images/16062025/17/56/image_16062025_17_56_35_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/17/56/image_16062025_17_56_25_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/17/56/image_16062025_17_56_14_9688.jpg', 2), ('/home/nano/Desktop/images/16062025/17/55/image_16062025_17_56_05_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/17/55/image_16062025_17_55_55_10675.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/56/image_16062025_17_56_45_10675.jpg', '/home/nano/Desktop/images/16062025/17/56/image_16062025_17_56_35_9650.jpg', '/home/nano/Desktop/images/16062025/17/56/image_16062025_17_56_25_10650.jpg', '/home/nano/Desktop/images/16062025/17/56/image_16062025_17_56_14_9688.jpg', '/home/nano/Desktop/images/16062025/17/55/image_16062025_17_56_05_9635.jpg', '/home/nano/Desktop/images/16062025/17/55/image_16062025_17_55_55_10675.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/56/image_16062025_17_56_45_10675.jpg
/home/nano/Desktop/images/16062025/17/56/image_16062025_17_56_35_9650.jpg
/home/nano/Desktop/images/16062025/17/56/image_16062025_17_56_25_10650.jpg
/home/nano/Desktop/images/16062025/17/56/image_16062025_17_56_14_9688.jpg
/home/nano/Desktop/images/16062025/17/55/image_16062025_17_56_05_9635.jpg
/home/nano/Desktop/images/16062025/17/55/image_16062025_17_55_55_10675.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:58:03.091490
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/57/image_16062025_17_57_45_9704.jpg', 2), ('/home/nano/Desktop/images/16062025/17/57/image_16062025_17_57_35_9704.jpg', 2), ('/home/nano/Desktop/images/16062025/17/57/image_16062025_17_57_25_10716.jpg', 2), ('/home/nano/Desktop/images/16062025/17/57/image_16062025_17_57_14_9707.jpg', 2), ('/home/nano/Desktop/images/16062025/17/56/image_16062025_17_57_05_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/17/56/image_16062025_17_56_55_9744.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/57/image_16062025_17_57_45_9704.jpg', '/home/nano/Desktop/images/16062025/17/57/image_16062025_17_57_35_9704.jpg', '/home/nano/Desktop/images/16062025/17/57/image_16062025_17_57_25_10716.jpg', '/home/nano/Desktop/images/16062025/17/57/image_16062025_17_57_14_9707.jpg', '/home/nano/Desktop/images/16062025/17/56/image_16062025_17_57_05_9615.jpg', '/home/nano/Desktop/images/16062025/17/56/image_16062025_17_56_55_9744.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/57/image_16062025_17_57_45_9704.jpg
/home/nano/Desktop/images/16062025/17/57/image_16062025_17_57_35_9704.jpg
/home/nano/Desktop/images/16062025/17/57/image_16062025_17_57_25_10716.jpg
/home/nano/Desktop/images/16062025/17/57/image_16062025_17_57_14_9707.jpg
/home/nano/Desktop/images/16062025/17/56/image_16062025_17_57_05_9615.jpg
/home/nano/Desktop/images/16062025/17/56/image_16062025_17_56_55_9744.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366580378","1366580264","1366580402","1366580163","1366580352","1366580409"],"photo_ids_order":["1366580163","1366580264","1366580352","1366580378","1366580402","1366580409"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e5f2c4db3e834d3239d2dbdb914e344d.jpg","text":"TemporaryFile(/tmp/multipartBody7140126742642924368asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089547637,"filename":"image_16062025_17_57_14_9707.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/17544388ad8354574b8c633a4c724f5f.jpg","text":"TemporaryFile(/tmp/multipartBody7825500714928315503asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089547637,"filename":"image_16062025_17_57_35_9704.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c328d2d2bd1e1a2d68b54d4f9d2272f8.jpg","text":"TemporaryFile(/tmp/multipartBody6860179861968722202asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089547637,"filename":"image_16062025_17_57_05_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/75042da53416922901cdc5def9d89b0a.jpg","text":"TemporaryFile(/tmp/multipartBody4585215524972718138asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089547637,"filename":"image_16062025_17_57_45_9704.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5d2a5db5073ef9b50a2f957c4ccc6821.jpg","text":"TemporaryFile(/tmp/multipartBody6660357118039309209asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089547637,"filename":"image_16062025_17_57_25_10716.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8e080a4e039076797e04965911a7c744.jpg","text":"TemporaryFile(/tmp/multipartBody7631650099526512521asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089547637,"filename":"image_16062025_17_56_55_9744.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366580352","file1":"1366580264","file0":"1366580163","file4":"1366580402","file5":"1366580409","file3":"1366580378"},"map_files_photo_id_array":[{"photo_id":"1366580409","filename":"file5"},{"photo_id":"1366580352","filename":"file2"},{"photo_id":"1366580402","filename":"file4"},{"photo_id":"1366580264","filename":"file1"},{"photo_id":"1366580163","filename":"file0"},{"photo_id":"1366580378","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366580378":["hashtag1","hashtag2"]},{"1366580264":["hashtag1","hashtag2"]},{"1366580402":["hashtag1","hashtag2"]},{"1366580163":["hashtag1","hashtag2"]},{"1366580352":["hashtag1","hashtag2"]},{"1366580409":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366580378, 1366580264, 1366580402, 1366580163, 1366580352, 1366580409)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 66.86296057701111 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 17:59:17.685229
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/17/59/image_16062025_17_59_35_9687.jpg', 2), ('/home/nano/Desktop/images/16062025/17/59/image_16062025_17_59_25_10726.jpg', 2), ('/home/nano/Desktop/images/16062025/17/59/image_16062025_17_59_15_9747.jpg', 2), ('/home/nano/Desktop/images/16062025/17/58/image_16062025_17_59_05_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/17/58/image_16062025_17_58_55_10617.jpg', 2), ('/home/nano/Desktop/images/16062025/17/58/image_16062025_17_58_45_9640.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/17/59/image_16062025_17_59_35_9687.jpg', '/home/nano/Desktop/images/16062025/17/59/image_16062025_17_59_25_10726.jpg', '/home/nano/Desktop/images/16062025/17/59/image_16062025_17_59_15_9747.jpg', '/home/nano/Desktop/images/16062025/17/58/image_16062025_17_59_05_9658.jpg', '/home/nano/Desktop/images/16062025/17/58/image_16062025_17_58_55_10617.jpg', '/home/nano/Desktop/images/16062025/17/58/image_16062025_17_58_45_9640.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/17/59/image_16062025_17_59_35_9687.jpg
/home/nano/Desktop/images/16062025/17/59/image_16062025_17_59_25_10726.jpg
/home/nano/Desktop/images/16062025/17/59/image_16062025_17_59_15_9747.jpg
/home/nano/Desktop/images/16062025/17/58/image_16062025_17_59_05_9658.jpg
/home/nano/Desktop/images/16062025/17/58/image_16062025_17_58_55_10617.jpg
/home/nano/Desktop/images/16062025/17/58/image_16062025_17_58_45_9640.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366580447","1366580539","1366580452","1366580626","1366580483","1366580415"],"photo_ids_order":["1366580415","1366580447","1366580452","1366580483","1366580539","1366580626"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0899db013179600f0f2a330888c0f22e.jpg","text":"TemporaryFile(/tmp/multipartBody4754983262096525046asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089631087,"filename":"image_16062025_17_59_25_10726.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2aec89ba405a615eeb8b00e6b44a7bb8.jpg","text":"TemporaryFile(/tmp/multipartBody1989620196501868140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089631087,"filename":"image_16062025_17_58_55_10617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/182d20cb14564b401b909c1cd1c45ae3.jpg","text":"TemporaryFile(/tmp/multipartBody3772742678760844964asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089631087,"filename":"image_16062025_17_59_15_9747.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e1f1c97a4e9919c0b9bf00e523ff0f82.jpg","text":"TemporaryFile(/tmp/multipartBody3308780404588373056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089631087,"filename":"image_16062025_17_58_45_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/decd5a18f9e6a9e00cd0fcebd62ed38a.jpg","text":"TemporaryFile(/tmp/multipartBody1011545262588825110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089631087,"filename":"image_16062025_17_59_05_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/00c4f7a730ba146f6f8877c47a4dc9e7.jpg","text":"TemporaryFile(/tmp/multipartBody614177076973047040asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089631087,"filename":"image_16062025_17_59_35_9687.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366580452","file1":"1366580447","file0":"1366580415","file4":"1366580539","file5":"1366580626","file3":"1366580483"},"map_files_photo_id_array":[{"photo_id":"1366580626","filename":"file5"},{"photo_id":"1366580452","filename":"file2"},{"photo_id":"1366580539","filename":"file4"},{"photo_id":"1366580447","filename":"file1"},{"photo_id":"1366580415","filename":"file0"},{"photo_id":"1366580483","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366580447":["hashtag1","hashtag2"]},{"1366580539":["hashtag1","hashtag2"]},{"1366580452":["hashtag1","hashtag2"]},{"1366580626":["hashtag1","hashtag2"]},{"1366580483":["hashtag1","hashtag2"]},{"1366580415":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366580447, 1366580539, 1366580452, 1366580626, 1366580483, 1366580415)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 138.99525952339172 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:01:46.895549
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/01/image_16062025_18_01_44_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/18/01/image_16062025_18_01_35_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/18/01/image_16062025_18_01_25_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/18/01/image_16062025_18_01_15_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/18/00/image_16062025_18_01_05_9648.jpg', 2), ('/home/nano/Desktop/images/16062025/18/00/image_16062025_18_00_55_10628.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/01/image_16062025_18_01_44_9607.jpg', '/home/nano/Desktop/images/16062025/18/01/image_16062025_18_01_35_9633.jpg', '/home/nano/Desktop/images/16062025/18/01/image_16062025_18_01_25_10640.jpg', '/home/nano/Desktop/images/16062025/18/01/image_16062025_18_01_15_9609.jpg', '/home/nano/Desktop/images/16062025/18/00/image_16062025_18_01_05_9648.jpg', '/home/nano/Desktop/images/16062025/18/00/image_16062025_18_00_55_10628.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/01/image_16062025_18_01_44_9607.jpg
/home/nano/Desktop/images/16062025/18/01/image_16062025_18_01_35_9633.jpg
/home/nano/Desktop/images/16062025/18/01/image_16062025_18_01_25_10640.jpg
/home/nano/Desktop/images/16062025/18/01/image_16062025_18_01_15_9609.jpg
/home/nano/Desktop/images/16062025/18/00/image_16062025_18_01_05_9648.jpg
/home/nano/Desktop/images/16062025/18/00/image_16062025_18_00_55_10628.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366581331","1366580950","1366580830","1366581042","1366581284","1366581158"],"photo_ids_order":["1366580830","1366580950","1366581042","1366581158","1366581284","1366581331"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a739722084ee540ab4999f0667c258cf.jpg","text":"TemporaryFile(/tmp/multipartBody87094586614077446asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089771293,"filename":"image_16062025_18_00_55_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ff4c4fc49122b7c94b31a39f1a3a3b6c.jpg","text":"TemporaryFile(/tmp/multipartBody7394655958733651496asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089771293,"filename":"image_16062025_18_01_35_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c813dc68cdccb6b154a6c9f10aaa4d53.jpg","text":"TemporaryFile(/tmp/multipartBody3821943239693893369asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089771293,"filename":"image_16062025_18_01_44_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bd153f480aa112f5af56fff7ed3e3481.jpg","text":"TemporaryFile(/tmp/multipartBody3417912593437885832asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089771293,"filename":"image_16062025_18_01_25_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6f1016728d8c66a4555bc5c4b86a2726.jpg","text":"TemporaryFile(/tmp/multipartBody9044611979632652640asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089771293,"filename":"image_16062025_18_01_05_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9bc9f208c6f1fbf11307faa21a517f47.jpg","text":"TemporaryFile(/tmp/multipartBody5180168061213027536asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089771293,"filename":"image_16062025_18_01_15_9609.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366581042","file1":"1366580950","file0":"1366580830","file4":"1366581284","file5":"1366581331","file3":"1366581158"},"map_files_photo_id_array":[{"photo_id":"1366581331","filename":"file5"},{"photo_id":"1366581042","filename":"file2"},{"photo_id":"1366581284","filename":"file4"},{"photo_id":"1366580950","filename":"file1"},{"photo_id":"1366580830","filename":"file0"},{"photo_id":"1366581158","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366581331":["hashtag1","hashtag2"]},{"1366580950":["hashtag1","hashtag2"]},{"1366580830":["hashtag1","hashtag2"]},{"1366581042":["hashtag1","hashtag2"]},{"1366581284":["hashtag1","hashtag2"]},{"1366581158":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366581331, 1366580950, 1366580830, 1366581042, 1366581284, 1366581158)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 74.19088101387024 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:03:02.696494
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/02/image_16062025_18_02_45_10662.jpg', 2), ('/home/nano/Desktop/images/16062025/18/02/image_16062025_18_02_35_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/18/02/image_16062025_18_02_25_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/18/02/image_16062025_18_02_14_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/18/01/image_16062025_18_02_05_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/18/01/image_16062025_18_01_55_10657.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/02/image_16062025_18_02_45_10662.jpg', '/home/nano/Desktop/images/16062025/18/02/image_16062025_18_02_35_9623.jpg', '/home/nano/Desktop/images/16062025/18/02/image_16062025_18_02_25_10643.jpg', '/home/nano/Desktop/images/16062025/18/02/image_16062025_18_02_14_9615.jpg', '/home/nano/Desktop/images/16062025/18/01/image_16062025_18_02_05_9634.jpg', '/home/nano/Desktop/images/16062025/18/01/image_16062025_18_01_55_10657.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/02/image_16062025_18_02_45_10662.jpg
/home/nano/Desktop/images/16062025/18/02/image_16062025_18_02_35_9623.jpg
/home/nano/Desktop/images/16062025/18/02/image_16062025_18_02_25_10643.jpg
/home/nano/Desktop/images/16062025/18/02/image_16062025_18_02_14_9615.jpg
/home/nano/Desktop/images/16062025/18/01/image_16062025_18_02_05_9634.jpg
/home/nano/Desktop/images/16062025/18/01/image_16062025_18_01_55_10657.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366581520","1366581498","1366581489","1366581456","1366581479","1366581512"],"photo_ids_order":["1366581456","1366581479","1366581489","1366581498","1366581512","1366581520"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/17d92462ef4339291e3de951d900f4d5.jpg","text":"TemporaryFile(/tmp/multipartBody4540805881007124379asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089848105,"filename":"image_16062025_18_01_55_10657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/16f473345a3da7e3f31809ed7343388b.jpg","text":"TemporaryFile(/tmp/multipartBody1255937725967040810asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089848105,"filename":"image_16062025_18_02_14_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/46873b034e5e26ddc42c4c645ec306b1.jpg","text":"TemporaryFile(/tmp/multipartBody106786830120269377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089848105,"filename":"image_16062025_18_02_25_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/edc63faf92ec555d2a2075c5f1033cf7.jpg","text":"TemporaryFile(/tmp/multipartBody7614069949489681644asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089848105,"filename":"image_16062025_18_02_45_10662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1300b54a0d98fcaa818a1693016b198e.jpg","text":"TemporaryFile(/tmp/multipartBody70520762324386255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089848105,"filename":"image_16062025_18_02_35_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3da098fef3f84bc938ccec5f0e2839f1.jpg","text":"TemporaryFile(/tmp/multipartBody3021697488723274914asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089848105,"filename":"image_16062025_18_02_05_9634.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366581489","file1":"1366581479","file0":"1366581456","file4":"1366581512","file5":"1366581520","file3":"1366581498"},"map_files_photo_id_array":[{"photo_id":"1366581520","filename":"file5"},{"photo_id":"1366581489","filename":"file2"},{"photo_id":"1366581512","filename":"file4"},{"photo_id":"1366581479","filename":"file1"},{"photo_id":"1366581456","filename":"file0"},{"photo_id":"1366581498","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366581520":["hashtag1","hashtag2"]},{"1366581498":["hashtag1","hashtag2"]},{"1366581489":["hashtag1","hashtag2"]},{"1366581456":["hashtag1","hashtag2"]},{"1366581479":["hashtag1","hashtag2"]},{"1366581512":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366581520, 1366581498, 1366581489, 1366581456, 1366581479, 1366581512)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 119.96986818313599 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:05:17.298273
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/05/image_16062025_18_05_45_9648.jpg', 2), ('/home/nano/Desktop/images/16062025/18/05/image_16062025_18_05_35_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/18/05/image_16062025_18_05_25_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/18/05/image_16062025_18_05_15_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/18/04/image_16062025_18_05_05_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/18/04/image_16062025_18_04_55_9616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/05/image_16062025_18_05_45_9648.jpg', '/home/nano/Desktop/images/16062025/18/05/image_16062025_18_05_35_10639.jpg', '/home/nano/Desktop/images/16062025/18/05/image_16062025_18_05_25_9627.jpg', '/home/nano/Desktop/images/16062025/18/05/image_16062025_18_05_15_9620.jpg', '/home/nano/Desktop/images/16062025/18/04/image_16062025_18_05_05_10631.jpg', '/home/nano/Desktop/images/16062025/18/04/image_16062025_18_04_55_9616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/05/image_16062025_18_05_45_9648.jpg
/home/nano/Desktop/images/16062025/18/05/image_16062025_18_05_35_10639.jpg
/home/nano/Desktop/images/16062025/18/05/image_16062025_18_05_25_9627.jpg
/home/nano/Desktop/images/16062025/18/05/image_16062025_18_05_15_9620.jpg
/home/nano/Desktop/images/16062025/18/04/image_16062025_18_05_05_10631.jpg
/home/nano/Desktop/images/16062025/18/04/image_16062025_18_04_55_9616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366581542","1366581553","1366581565","1366581579","1366581546","1366581537"],"photo_ids_order":["1366581537","1366581542","1366581546","1366581553","1366581565","1366581579"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d6a53f7adae4c825934bf0737c53f1cb.jpg","text":"TemporaryFile(/tmp/multipartBody6588938302014833217asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089982436,"filename":"image_16062025_18_05_35_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c1786407d88b292c3094254ecbe36d07.jpg","text":"TemporaryFile(/tmp/multipartBody4315970702267836026asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089982436,"filename":"image_16062025_18_05_15_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0ecfae2c99800e6ef690546dc42b70d6.jpg","text":"TemporaryFile(/tmp/multipartBody710423209756314572asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089982436,"filename":"image_16062025_18_05_05_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/979ce80bf9c5e9fbc0883c35705445ca.jpg","text":"TemporaryFile(/tmp/multipartBody2699131291942235001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089982436,"filename":"image_16062025_18_04_55_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/acbe3e2ee131b1d30195c835e7bc3bb7.jpg","text":"TemporaryFile(/tmp/multipartBody947360120486577086asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089982436,"filename":"image_16062025_18_05_25_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/32c7bcbc1682bda721eaf80413804502.jpg","text":"TemporaryFile(/tmp/multipartBody2725194857449307843asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750089982436,"filename":"image_16062025_18_05_45_9648.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366581546","file1":"1366581542","file0":"1366581537","file4":"1366581565","file5":"1366581579","file3":"1366581553"},"map_files_photo_id_array":[{"photo_id":"1366581579","filename":"file5"},{"photo_id":"1366581546","filename":"file2"},{"photo_id":"1366581565","filename":"file4"},{"photo_id":"1366581542","filename":"file1"},{"photo_id":"1366581537","filename":"file0"},{"photo_id":"1366581553","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366581542":["hashtag1","hashtag2"]},{"1366581553":["hashtag1","hashtag2"]},{"1366581565":["hashtag1","hashtag2"]},{"1366581579":["hashtag1","hashtag2"]},{"1366581546":["hashtag1","hashtag2"]},{"1366581537":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366581542, 1366581553, 1366581565, 1366581579, 1366581546, 1366581537)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 83.96922254562378 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:06:47.390707
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/06/image_16062025_18_06_45_9674.jpg', 2), ('/home/nano/Desktop/images/16062025/18/06/image_16062025_18_06_35_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/18/06/image_16062025_18_06_24_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/18/06/image_16062025_18_06_15_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/18/05/image_16062025_18_06_05_10663.jpg', 2), ('/home/nano/Desktop/images/16062025/18/05/image_16062025_18_05_54_9624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/06/image_16062025_18_06_45_9674.jpg', '/home/nano/Desktop/images/16062025/18/06/image_16062025_18_06_35_10625.jpg', '/home/nano/Desktop/images/16062025/18/06/image_16062025_18_06_24_9657.jpg', '/home/nano/Desktop/images/16062025/18/06/image_16062025_18_06_15_9635.jpg', '/home/nano/Desktop/images/16062025/18/05/image_16062025_18_06_05_10663.jpg', '/home/nano/Desktop/images/16062025/18/05/image_16062025_18_05_54_9624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/06/image_16062025_18_06_45_9674.jpg
/home/nano/Desktop/images/16062025/18/06/image_16062025_18_06_35_10625.jpg
/home/nano/Desktop/images/16062025/18/06/image_16062025_18_06_24_9657.jpg
/home/nano/Desktop/images/16062025/18/06/image_16062025_18_06_15_9635.jpg
/home/nano/Desktop/images/16062025/18/05/image_16062025_18_06_05_10663.jpg
/home/nano/Desktop/images/16062025/18/05/image_16062025_18_05_54_9624.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366581629","1366581623","1366581634","1366581616","1366581619","1366581613"],"photo_ids_order":["1366581613","1366581616","1366581619","1366581623","1366581629","1366581634"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b08e07e06a464a24c40ade9029ec7d80.jpg","text":"TemporaryFile(/tmp/multipartBody1111166343927695589asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090069825,"filename":"image_16062025_18_06_05_10663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fc67da6241bc8a3c3c83bc627dcaf2b3.jpg","text":"TemporaryFile(/tmp/multipartBody3745374136115325560asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090069825,"filename":"image_16062025_18_06_15_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/142d5c8888689457d83459cbce8c58c8.jpg","text":"TemporaryFile(/tmp/multipartBody4187316252204288198asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090069825,"filename":"image_16062025_18_05_54_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0403e7b48f8d251ddaefc28eca655ded.jpg","text":"TemporaryFile(/tmp/multipartBody1377455841272906615asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090069825,"filename":"image_16062025_18_06_35_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/24ee11b2c2170bea4bf4c7002d65606b.jpg","text":"TemporaryFile(/tmp/multipartBody1131856757869342422asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090069825,"filename":"image_16062025_18_06_24_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f38458588dafbdaa167115d075a969ce.jpg","text":"TemporaryFile(/tmp/multipartBody2192715817504381461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090069825,"filename":"image_16062025_18_06_45_9674.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366581619","file1":"1366581616","file0":"1366581613","file4":"1366581629","file5":"1366581634","file3":"1366581623"},"map_files_photo_id_array":[{"photo_id":"1366581634","filename":"file5"},{"photo_id":"1366581619","filename":"file2"},{"photo_id":"1366581629","filename":"file4"},{"photo_id":"1366581616","filename":"file1"},{"photo_id":"1366581613","filename":"file0"},{"photo_id":"1366581623","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366581629":["hashtag1","hashtag2"]},{"1366581623":["hashtag1","hashtag2"]},{"1366581634":["hashtag1","hashtag2"]},{"1366581616":["hashtag1","hashtag2"]},{"1366581619":["hashtag1","hashtag2"]},{"1366581613":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366581629, 1366581623, 1366581634, 1366581616, 1366581619, 1366581613)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 53.01092290878296 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:07:47.533406
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/07/image_16062025_18_07_45_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/18/07/image_16062025_18_07_35_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/18/07/image_16062025_18_07_25_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/18/07/image_16062025_18_07_15_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/18/06/image_16062025_18_07_05_9670.jpg', 2), ('/home/nano/Desktop/images/16062025/18/06/image_16062025_18_06_55_10613.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/07/image_16062025_18_07_45_9607.jpg', '/home/nano/Desktop/images/16062025/18/07/image_16062025_18_07_35_9651.jpg', '/home/nano/Desktop/images/16062025/18/07/image_16062025_18_07_25_10645.jpg', '/home/nano/Desktop/images/16062025/18/07/image_16062025_18_07_15_9677.jpg', '/home/nano/Desktop/images/16062025/18/06/image_16062025_18_07_05_9670.jpg', '/home/nano/Desktop/images/16062025/18/06/image_16062025_18_06_55_10613.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/07/image_16062025_18_07_45_9607.jpg
/home/nano/Desktop/images/16062025/18/07/image_16062025_18_07_35_9651.jpg
/home/nano/Desktop/images/16062025/18/07/image_16062025_18_07_25_10645.jpg
/home/nano/Desktop/images/16062025/18/07/image_16062025_18_07_15_9677.jpg
/home/nano/Desktop/images/16062025/18/06/image_16062025_18_07_05_9670.jpg
/home/nano/Desktop/images/16062025/18/06/image_16062025_18_06_55_10613.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366581670","1366581652","1366581663","1366581657","1366581650","1366581647"],"photo_ids_order":["1366581647","1366581650","1366581652","1366581657","1366581663","1366581670"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3c9c89c3140c4a9ee259b8029673d008.jpg","text":"TemporaryFile(/tmp/multipartBody7562750384617024535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090131544,"filename":"image_16062025_18_06_55_10613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9bf47c8e2c5138396aca82965faa3e47.jpg","text":"TemporaryFile(/tmp/multipartBody1115178564059449365asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090131544,"filename":"image_16062025_18_07_25_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1bcb0417e8165c892424c2e7de203b63.jpg","text":"TemporaryFile(/tmp/multipartBody8566633723128312398asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090131544,"filename":"image_16062025_18_07_05_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5ff671a64d583e34da2726b957bab55b.jpg","text":"TemporaryFile(/tmp/multipartBody6386585496859819875asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090131544,"filename":"image_16062025_18_07_15_9677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d383ee2b20cea6b37bff1d0131d9a4d5.jpg","text":"TemporaryFile(/tmp/multipartBody1771767252681635077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090131544,"filename":"image_16062025_18_07_35_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/baaed9981094202131d1062c9b7ff8a0.jpg","text":"TemporaryFile(/tmp/multipartBody1921766625275708482asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090131544,"filename":"image_16062025_18_07_45_9607.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366581652","file1":"1366581650","file0":"1366581647","file4":"1366581663","file5":"1366581670","file3":"1366581657"},"map_files_photo_id_array":[{"photo_id":"1366581670","filename":"file5"},{"photo_id":"1366581652","filename":"file2"},{"photo_id":"1366581663","filename":"file4"},{"photo_id":"1366581650","filename":"file1"},{"photo_id":"1366581647","filename":"file0"},{"photo_id":"1366581657","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366581670":["hashtag1","hashtag2"]},{"1366581652":["hashtag1","hashtag2"]},{"1366581663":["hashtag1","hashtag2"]},{"1366581657":["hashtag1","hashtag2"]},{"1366581650":["hashtag1","hashtag2"]},{"1366581647":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366581670, 1366581652, 1366581663, 1366581657, 1366581650, 1366581647)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 93.32545733451843 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:09:32.818339
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/09/image_16062025_18_09_45_10614.jpg', 2), ('/home/nano/Desktop/images/16062025/18/09/image_16062025_18_09_35_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/18/09/image_16062025_18_09_25_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/18/09/image_16062025_18_09_15_10685.jpg', 2), ('/home/nano/Desktop/images/16062025/18/08/image_16062025_18_09_05_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/18/08/image_16062025_18_08_55_9613.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/09/image_16062025_18_09_45_10614.jpg', '/home/nano/Desktop/images/16062025/18/09/image_16062025_18_09_35_9633.jpg', '/home/nano/Desktop/images/16062025/18/09/image_16062025_18_09_25_9620.jpg', '/home/nano/Desktop/images/16062025/18/09/image_16062025_18_09_15_10685.jpg', '/home/nano/Desktop/images/16062025/18/08/image_16062025_18_09_05_9650.jpg', '/home/nano/Desktop/images/16062025/18/08/image_16062025_18_08_55_9613.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/09/image_16062025_18_09_45_10614.jpg
/home/nano/Desktop/images/16062025/18/09/image_16062025_18_09_35_9633.jpg
/home/nano/Desktop/images/16062025/18/09/image_16062025_18_09_25_9620.jpg
/home/nano/Desktop/images/16062025/18/09/image_16062025_18_09_15_10685.jpg
/home/nano/Desktop/images/16062025/18/08/image_16062025_18_09_05_9650.jpg
/home/nano/Desktop/images/16062025/18/08/image_16062025_18_08_55_9613.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366581806","1366581766","1366581769","1366581727","1366581759","1366581794"],"photo_ids_order":["1366581727","1366581759","1366581766","1366581769","1366581794","1366581806"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4f2fb07f22f1e51dc8c9118f30feef19.jpg","text":"TemporaryFile(/tmp/multipartBody7108078958548817172asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090236194,"filename":"image_16062025_18_08_55_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dc20ac0e55511a4938191a1e1f171420.jpg","text":"TemporaryFile(/tmp/multipartBody8552123171097337859asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090236194,"filename":"image_16062025_18_09_25_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/38ddb8fa300838e74ecbfadb77b5635b.jpg","text":"TemporaryFile(/tmp/multipartBody3623037970327868299asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090236194,"filename":"image_16062025_18_09_15_10685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3cafe4ef92cd468149dfa4f34d6795b9.jpg","text":"TemporaryFile(/tmp/multipartBody8715305336682065341asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090236194,"filename":"image_16062025_18_09_45_10614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d9d843401983da32ace1f166a406c124.jpg","text":"TemporaryFile(/tmp/multipartBody2255181867137947805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090236194,"filename":"image_16062025_18_09_35_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e9a8962e090fb1c829f417ea41d57e17.jpg","text":"TemporaryFile(/tmp/multipartBody3789326972678252013asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090236194,"filename":"image_16062025_18_09_05_9650.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366581766","file1":"1366581759","file0":"1366581727","file4":"1366581794","file5":"1366581806","file3":"1366581769"},"map_files_photo_id_array":[{"photo_id":"1366581806","filename":"file5"},{"photo_id":"1366581766","filename":"file2"},{"photo_id":"1366581794","filename":"file4"},{"photo_id":"1366581759","filename":"file1"},{"photo_id":"1366581727","filename":"file0"},{"photo_id":"1366581769","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366581806":["hashtag1","hashtag2"]},{"1366581766":["hashtag1","hashtag2"]},{"1366581769":["hashtag1","hashtag2"]},{"1366581727":["hashtag1","hashtag2"]},{"1366581759":["hashtag1","hashtag2"]},{"1366581794":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366581806, 1366581766, 1366581769, 1366581727, 1366581759, 1366581794)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 90.44305562973022 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:11:16.952636
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/11/image_16062025_18_11_45_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/18/11/image_16062025_18_11_35_9601.jpg', 2), ('/home/nano/Desktop/images/16062025/18/11/image_16062025_18_11_25_10606.jpg', 2), ('/home/nano/Desktop/images/16062025/18/11/image_16062025_18_11_15_9596.jpg', 2), ('/home/nano/Desktop/images/16062025/18/10/image_16062025_18_11_05_10612.jpg', 2), ('/home/nano/Desktop/images/16062025/18/10/image_16062025_18_10_55_9604.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/11/image_16062025_18_11_45_9602.jpg', '/home/nano/Desktop/images/16062025/18/11/image_16062025_18_11_35_9601.jpg', '/home/nano/Desktop/images/16062025/18/11/image_16062025_18_11_25_10606.jpg', '/home/nano/Desktop/images/16062025/18/11/image_16062025_18_11_15_9596.jpg', '/home/nano/Desktop/images/16062025/18/10/image_16062025_18_11_05_10612.jpg', '/home/nano/Desktop/images/16062025/18/10/image_16062025_18_10_55_9604.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/11/image_16062025_18_11_45_9602.jpg
/home/nano/Desktop/images/16062025/18/11/image_16062025_18_11_35_9601.jpg
/home/nano/Desktop/images/16062025/18/11/image_16062025_18_11_25_10606.jpg
/home/nano/Desktop/images/16062025/18/11/image_16062025_18_11_15_9596.jpg
/home/nano/Desktop/images/16062025/18/10/image_16062025_18_11_05_10612.jpg
/home/nano/Desktop/images/16062025/18/10/image_16062025_18_10_55_9604.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366581871","1366581838","1366581861","1366581885","1366581866","1366581875"],"photo_ids_order":["1366581838","1366581861","1366581866","1366581871","1366581875","1366581885"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f838230bc3145eda95563aa8d53969a9.jpg","text":"TemporaryFile(/tmp/multipartBody151261150810785155asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090340920,"filename":"image_16062025_18_11_15_9596.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fe3beabfaf558f19e6ceb4bb5897de97.jpg","text":"TemporaryFile(/tmp/multipartBody2918283106497992255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090340920,"filename":"image_16062025_18_11_45_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1894c45d5798988473bfee9f140a668b.jpg","text":"TemporaryFile(/tmp/multipartBody4080691295243908858asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090340920,"filename":"image_16062025_18_11_35_9601.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8a8b58c24c3e227b70a931b0aeee93e4.jpg","text":"TemporaryFile(/tmp/multipartBody2021720527084225805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090340920,"filename":"image_16062025_18_10_55_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c002b5aadff5a22257dbf27c0830aa59.jpg","text":"TemporaryFile(/tmp/multipartBody2981963186751332105asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090340920,"filename":"image_16062025_18_11_25_10606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2e9e9d8590b6c6067d440977a198cead.jpg","text":"TemporaryFile(/tmp/multipartBody5867318725012545519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090340920,"filename":"image_16062025_18_11_05_10612.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366581866","file1":"1366581861","file0":"1366581838","file4":"1366581875","file5":"1366581885","file3":"1366581871"},"map_files_photo_id_array":[{"photo_id":"1366581885","filename":"file5"},{"photo_id":"1366581866","filename":"file2"},{"photo_id":"1366581875","filename":"file4"},{"photo_id":"1366581861","filename":"file1"},{"photo_id":"1366581838","filename":"file0"},{"photo_id":"1366581871","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366581871":["hashtag1","hashtag2"]},{"1366581838":["hashtag1","hashtag2"]},{"1366581861":["hashtag1","hashtag2"]},{"1366581885":["hashtag1","hashtag2"]},{"1366581866":["hashtag1","hashtag2"]},{"1366581875":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366581871, 1366581838, 1366581861, 1366581885, 1366581866, 1366581875)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 89.94061589241028 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:13:02.733543
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/12/image_16062025_18_12_45_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/18/12/image_16062025_18_12_35_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/18/12/image_16062025_18_12_25_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/18/12/image_16062025_18_12_14_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/18/11/image_16062025_18_12_05_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/18/11/image_16062025_18_11_55_10597.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/12/image_16062025_18_12_45_10645.jpg', '/home/nano/Desktop/images/16062025/18/12/image_16062025_18_12_35_9638.jpg', '/home/nano/Desktop/images/16062025/18/12/image_16062025_18_12_25_10619.jpg', '/home/nano/Desktop/images/16062025/18/12/image_16062025_18_12_14_9640.jpg', '/home/nano/Desktop/images/16062025/18/11/image_16062025_18_12_05_9616.jpg', '/home/nano/Desktop/images/16062025/18/11/image_16062025_18_11_55_10597.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/12/image_16062025_18_12_45_10645.jpg
/home/nano/Desktop/images/16062025/18/12/image_16062025_18_12_35_9638.jpg
/home/nano/Desktop/images/16062025/18/12/image_16062025_18_12_25_10619.jpg
/home/nano/Desktop/images/16062025/18/12/image_16062025_18_12_14_9640.jpg
/home/nano/Desktop/images/16062025/18/11/image_16062025_18_12_05_9616.jpg
/home/nano/Desktop/images/16062025/18/11/image_16062025_18_11_55_10597.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366582116","1366582110","1366582088","1366582049","1366582100","1366582007"],"photo_ids_order":["1366582007","1366582049","1366582088","1366582100","1366582110","1366582116"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/99b9caad350f6a43b41d9889a3d4f6c2.jpg","text":"TemporaryFile(/tmp/multipartBody2223986092482590700asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090458968,"filename":"image_16062025_18_11_55_10597.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7b127da4058a797512b0ea34ec318b61.jpg","text":"TemporaryFile(/tmp/multipartBody4254382359520341092asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090458968,"filename":"image_16062025_18_12_05_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c31c73be528589e35ec7549024b0fce9.jpg","text":"TemporaryFile(/tmp/multipartBody3219477841308146140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090458968,"filename":"image_16062025_18_12_25_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/eefa5d1546192a9382e54b24f1a8e990.jpg","text":"TemporaryFile(/tmp/multipartBody2208050978592079703asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090458968,"filename":"image_16062025_18_12_35_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/428e4b1adc601b3df7bc870087d70e91.jpg","text":"TemporaryFile(/tmp/multipartBody2780497105884164202asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090458968,"filename":"image_16062025_18_12_14_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b7b458e551bb53a40ea04793d1c546e2.jpg","text":"TemporaryFile(/tmp/multipartBody7581375522541296451asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090458968,"filename":"image_16062025_18_12_45_10645.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366582088","file1":"1366582049","file0":"1366582007","file4":"1366582110","file5":"1366582116","file3":"1366582100"},"map_files_photo_id_array":[{"photo_id":"1366582116","filename":"file5"},{"photo_id":"1366582088","filename":"file2"},{"photo_id":"1366582110","filename":"file4"},{"photo_id":"1366582049","filename":"file1"},{"photo_id":"1366582007","filename":"file0"},{"photo_id":"1366582100","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366582116":["hashtag1","hashtag2"]},{"1366582110":["hashtag1","hashtag2"]},{"1366582088":["hashtag1","hashtag2"]},{"1366582049":["hashtag1","hashtag2"]},{"1366582100":["hashtag1","hashtag2"]},{"1366582007":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366582116, 1366582110, 1366582088, 1366582049, 1366582100, 1366582007)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 99.11678767204285 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:14:47.331678
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/14/image_16062025_18_14_45_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/18/14/image_16062025_18_14_35_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/18/14/image_16062025_18_14_25_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/18/14/image_16062025_18_14_15_10660.jpg', 2), ('/home/nano/Desktop/images/16062025/18/13/image_16062025_18_14_04_9652.jpg', 2), ('/home/nano/Desktop/images/16062025/18/13/image_16062025_18_13_55_9625.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/14/image_16062025_18_14_45_9626.jpg', '/home/nano/Desktop/images/16062025/18/14/image_16062025_18_14_35_10639.jpg', '/home/nano/Desktop/images/16062025/18/14/image_16062025_18_14_25_9630.jpg', '/home/nano/Desktop/images/16062025/18/14/image_16062025_18_14_15_10660.jpg', '/home/nano/Desktop/images/16062025/18/13/image_16062025_18_14_04_9652.jpg', '/home/nano/Desktop/images/16062025/18/13/image_16062025_18_13_55_9625.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/14/image_16062025_18_14_45_9626.jpg
/home/nano/Desktop/images/16062025/18/14/image_16062025_18_14_35_10639.jpg
/home/nano/Desktop/images/16062025/18/14/image_16062025_18_14_25_9630.jpg
/home/nano/Desktop/images/16062025/18/14/image_16062025_18_14_15_10660.jpg
/home/nano/Desktop/images/16062025/18/13/image_16062025_18_14_04_9652.jpg
/home/nano/Desktop/images/16062025/18/13/image_16062025_18_13_55_9625.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366582153","1366582170","1366582163","1366582145","1366582157","1366582142"],"photo_ids_order":["1366582142","1366582145","1366582153","1366582157","1366582163","1366582170"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/94fc133c01a6c28e2250057f6143f86f.jpg","text":"TemporaryFile(/tmp/multipartBody5419321140633081675asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090549872,"filename":"image_16062025_18_14_25_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d2ff433d48f736d2cceb4dd9c6d93a4b.jpg","text":"TemporaryFile(/tmp/multipartBody6835147495924392696asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090549872,"filename":"image_16062025_18_13_55_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6671bb4b2444dd457923eb3b7ab5ed21.jpg","text":"TemporaryFile(/tmp/multipartBody1600675623545750627asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090549872,"filename":"image_16062025_18_14_04_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1745e24cae2ea6eae9f963df786542e5.jpg","text":"TemporaryFile(/tmp/multipartBody4443958864667823844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090549872,"filename":"image_16062025_18_14_35_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4c014690e7b89e68dfce4ca96d567ed0.jpg","text":"TemporaryFile(/tmp/multipartBody8936635621105841318asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090549872,"filename":"image_16062025_18_14_15_10660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d36665ea4ef8eb50e41c7f3469eee77a.jpg","text":"TemporaryFile(/tmp/multipartBody6334061689899077229asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090549872,"filename":"image_16062025_18_14_45_9626.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366582153","file1":"1366582145","file0":"1366582142","file4":"1366582163","file5":"1366582170","file3":"1366582157"},"map_files_photo_id_array":[{"photo_id":"1366582170","filename":"file5"},{"photo_id":"1366582153","filename":"file2"},{"photo_id":"1366582163","filename":"file4"},{"photo_id":"1366582145","filename":"file1"},{"photo_id":"1366582142","filename":"file0"},{"photo_id":"1366582157","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366582153":["hashtag1","hashtag2"]},{"1366582170":["hashtag1","hashtag2"]},{"1366582163":["hashtag1","hashtag2"]},{"1366582145":["hashtag1","hashtag2"]},{"1366582157":["hashtag1","hashtag2"]},{"1366582142":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366582153, 1366582170, 1366582163, 1366582145, 1366582157, 1366582142)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 54.15920281410217 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:15:47.527774
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/15/image_16062025_18_15_45_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/18/15/image_16062025_18_15_35_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/18/15/image_16062025_18_15_25_9606.jpg', 2), ('/home/nano/Desktop/images/16062025/18/15/image_16062025_18_15_15_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/18/14/image_16062025_18_15_05_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/18/14/image_16062025_18_14_55_9636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/15/image_16062025_18_15_45_9629.jpg', '/home/nano/Desktop/images/16062025/18/15/image_16062025_18_15_35_10636.jpg', '/home/nano/Desktop/images/16062025/18/15/image_16062025_18_15_25_9606.jpg', '/home/nano/Desktop/images/16062025/18/15/image_16062025_18_15_15_9660.jpg', '/home/nano/Desktop/images/16062025/18/14/image_16062025_18_15_05_10641.jpg', '/home/nano/Desktop/images/16062025/18/14/image_16062025_18_14_55_9636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/15/image_16062025_18_15_45_9629.jpg
/home/nano/Desktop/images/16062025/18/15/image_16062025_18_15_35_10636.jpg
/home/nano/Desktop/images/16062025/18/15/image_16062025_18_15_25_9606.jpg
/home/nano/Desktop/images/16062025/18/15/image_16062025_18_15_15_9660.jpg
/home/nano/Desktop/images/16062025/18/14/image_16062025_18_15_05_10641.jpg
/home/nano/Desktop/images/16062025/18/14/image_16062025_18_14_55_9636.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366582183","1366582197","1366582201","1366582209","1366582193","1366582189"],"photo_ids_order":["1366582183","1366582189","1366582193","1366582197","1366582201","1366582209"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/78be8560b196e3a8cffcbc1ddb7ac04b.jpg","text":"TemporaryFile(/tmp/multipartBody4413971096112995574asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090610336,"filename":"image_16062025_18_15_45_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/707f65e0e9e5d3e2da2f73db2b163718.jpg","text":"TemporaryFile(/tmp/multipartBody1218941219883860323asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090610336,"filename":"image_16062025_18_15_15_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0d76bd0115e13f86cd3d9923b3a9c2af.jpg","text":"TemporaryFile(/tmp/multipartBody5999270609454985121asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090610336,"filename":"image_16062025_18_15_05_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/de21e747c3d5cee8180b7d03035f3e5d.jpg","text":"TemporaryFile(/tmp/multipartBody5007399507239486463asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090610336,"filename":"image_16062025_18_14_55_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/17bb89f967b5e529dbdbbb3cee49a5c8.jpg","text":"TemporaryFile(/tmp/multipartBody4201281693618899866asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090610336,"filename":"image_16062025_18_15_25_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/781d6ddd99aa6708585a42f34e8fdc7a.jpg","text":"TemporaryFile(/tmp/multipartBody4917418866413874387asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090610336,"filename":"image_16062025_18_15_35_10636.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366582193","file1":"1366582189","file0":"1366582183","file4":"1366582201","file5":"1366582209","file3":"1366582197"},"map_files_photo_id_array":[{"photo_id":"1366582209","filename":"file5"},{"photo_id":"1366582193","filename":"file2"},{"photo_id":"1366582201","filename":"file4"},{"photo_id":"1366582189","filename":"file1"},{"photo_id":"1366582183","filename":"file0"},{"photo_id":"1366582197","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366582183":["hashtag1","hashtag2"]},{"1366582197":["hashtag1","hashtag2"]},{"1366582201":["hashtag1","hashtag2"]},{"1366582209":["hashtag1","hashtag2"]},{"1366582193":["hashtag1","hashtag2"]},{"1366582189":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366582183, 1366582197, 1366582201, 1366582209, 1366582193, 1366582189)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.918895959854126 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:17:03.371425
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/16/image_16062025_18_16_45_9653.jpg', 2), ('/home/nano/Desktop/images/16062025/18/16/image_16062025_18_16_35_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/18/16/image_16062025_18_16_25_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/18/16/image_16062025_18_16_15_9647.jpg', 2), ('/home/nano/Desktop/images/16062025/18/15/image_16062025_18_16_05_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/18/15/image_16062025_18_15_54_9623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/16/image_16062025_18_16_45_9653.jpg', '/home/nano/Desktop/images/16062025/18/16/image_16062025_18_16_35_9632.jpg', '/home/nano/Desktop/images/16062025/18/16/image_16062025_18_16_25_10647.jpg', '/home/nano/Desktop/images/16062025/18/16/image_16062025_18_16_15_9647.jpg', '/home/nano/Desktop/images/16062025/18/15/image_16062025_18_16_05_10625.jpg', '/home/nano/Desktop/images/16062025/18/15/image_16062025_18_15_54_9623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/16/image_16062025_18_16_45_9653.jpg
/home/nano/Desktop/images/16062025/18/16/image_16062025_18_16_35_9632.jpg
/home/nano/Desktop/images/16062025/18/16/image_16062025_18_16_25_10647.jpg
/home/nano/Desktop/images/16062025/18/16/image_16062025_18_16_15_9647.jpg
/home/nano/Desktop/images/16062025/18/15/image_16062025_18_16_05_10625.jpg
/home/nano/Desktop/images/16062025/18/15/image_16062025_18_15_54_9623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366582243","1366582251","1366582260","1366582236","1366582256","1366582229"],"photo_ids_order":["1366582229","1366582236","1366582243","1366582251","1366582256","1366582260"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3d34156efea913a0e3bf3e13a5d0a1ad.jpg","text":"TemporaryFile(/tmp/multipartBody1038516196241243525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090701729,"filename":"image_16062025_18_16_25_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9ee3655fdfbc50351c3b83c405bc356e.jpg","text":"TemporaryFile(/tmp/multipartBody7660330059963218193asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090701729,"filename":"image_16062025_18_16_15_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/88b6db5532b406f079acdb8755764f7c.jpg","text":"TemporaryFile(/tmp/multipartBody3349852772814527447asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090701729,"filename":"image_16062025_18_15_54_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e753690ff8dfb8280a8deee6ba998f16.jpg","text":"TemporaryFile(/tmp/multipartBody4929045840451534009asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090701729,"filename":"image_16062025_18_16_35_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bd0410d6e54c1bf2689e1fc58758f594.jpg","text":"TemporaryFile(/tmp/multipartBody8448885801087885476asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090701729,"filename":"image_16062025_18_16_05_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/99440edf04b06587ae865dfbfa92d198.jpg","text":"TemporaryFile(/tmp/multipartBody7630090779154160352asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090701729,"filename":"image_16062025_18_16_45_9653.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366582243","file1":"1366582236","file0":"1366582229","file4":"1366582256","file5":"1366582260","file3":"1366582251"},"map_files_photo_id_array":[{"photo_id":"1366582260","filename":"file5"},{"photo_id":"1366582243","filename":"file2"},{"photo_id":"1366582256","filename":"file4"},{"photo_id":"1366582236","filename":"file1"},{"photo_id":"1366582229","filename":"file0"},{"photo_id":"1366582251","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366582243":["hashtag1","hashtag2"]},{"1366582251":["hashtag1","hashtag2"]},{"1366582260":["hashtag1","hashtag2"]},{"1366582236":["hashtag1","hashtag2"]},{"1366582256":["hashtag1","hashtag2"]},{"1366582229":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366582243, 1366582251, 1366582260, 1366582236, 1366582256, 1366582229)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 80.87368130683899 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:18:31.867456
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/18/image_16062025_18_18_45_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/18/18/image_16062025_18_18_35_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/18/18/image_16062025_18_18_25_9603.jpg', 2), ('/home/nano/Desktop/images/16062025/18/18/image_16062025_18_18_15_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/18/17/image_16062025_18_18_05_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/18/17/image_16062025_18_17_55_10605.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/18/image_16062025_18_18_45_10636.jpg', '/home/nano/Desktop/images/16062025/18/18/image_16062025_18_18_35_9619.jpg', '/home/nano/Desktop/images/16062025/18/18/image_16062025_18_18_25_9603.jpg', '/home/nano/Desktop/images/16062025/18/18/image_16062025_18_18_15_10635.jpg', '/home/nano/Desktop/images/16062025/18/17/image_16062025_18_18_05_9614.jpg', '/home/nano/Desktop/images/16062025/18/17/image_16062025_18_17_55_10605.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/18/image_16062025_18_18_45_10636.jpg
/home/nano/Desktop/images/16062025/18/18/image_16062025_18_18_35_9619.jpg
/home/nano/Desktop/images/16062025/18/18/image_16062025_18_18_25_9603.jpg
/home/nano/Desktop/images/16062025/18/18/image_16062025_18_18_15_10635.jpg
/home/nano/Desktop/images/16062025/18/17/image_16062025_18_18_05_9614.jpg
/home/nano/Desktop/images/16062025/18/17/image_16062025_18_17_55_10605.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366582290","1366582284","1366582302","1366582280","1366582298","1366582294"],"photo_ids_order":["1366582280","1366582284","1366582290","1366582294","1366582298","1366582302"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5d2f05cd248dfd64e04323e0aa31e4a4.jpg","text":"TemporaryFile(/tmp/multipartBody8353042387901274989asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090774354,"filename":"image_16062025_18_18_25_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/90e228401e398421924592854cba7c28.jpg","text":"TemporaryFile(/tmp/multipartBody3923046118479871834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090774354,"filename":"image_16062025_18_18_35_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d93d270e2ea8a7f95220eb66bddee83a.jpg","text":"TemporaryFile(/tmp/multipartBody2692995157780171250asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090774354,"filename":"image_16062025_18_17_55_10605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5f39742e1c0f5f7211964153063e42c1.jpg","text":"TemporaryFile(/tmp/multipartBody7044048273498454769asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090774354,"filename":"image_16062025_18_18_45_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dff439f65a487fffac523e54a18ac364.jpg","text":"TemporaryFile(/tmp/multipartBody4809451640608600984asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090774354,"filename":"image_16062025_18_18_05_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/818dd439bf151905490512f2c5595c73.jpg","text":"TemporaryFile(/tmp/multipartBody6673042580536823400asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090774354,"filename":"image_16062025_18_18_15_10635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366582290","file1":"1366582284","file0":"1366582280","file4":"1366582298","file5":"1366582302","file3":"1366582294"},"map_files_photo_id_array":[{"photo_id":"1366582302","filename":"file5"},{"photo_id":"1366582290","filename":"file2"},{"photo_id":"1366582298","filename":"file4"},{"photo_id":"1366582284","filename":"file1"},{"photo_id":"1366582280","filename":"file0"},{"photo_id":"1366582294","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366582290":["hashtag1","hashtag2"]},{"1366582284":["hashtag1","hashtag2"]},{"1366582302":["hashtag1","hashtag2"]},{"1366582280":["hashtag1","hashtag2"]},{"1366582298":["hashtag1","hashtag2"]},{"1366582294":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366582290, 1366582284, 1366582302, 1366582280, 1366582298, 1366582294)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 50.50554895401001 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:19:31.940772
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/19/image_16062025_18_19_45_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/18/19/image_16062025_18_19_35_10615.jpg', 2), ('/home/nano/Desktop/images/16062025/18/19/image_16062025_18_19_25_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/18/19/image_16062025_18_19_15_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/18/18/image_16062025_18_19_04_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/18/18/image_16062025_18_18_55_9609.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/19/image_16062025_18_19_45_9621.jpg', '/home/nano/Desktop/images/16062025/18/19/image_16062025_18_19_35_10615.jpg', '/home/nano/Desktop/images/16062025/18/19/image_16062025_18_19_25_9610.jpg', '/home/nano/Desktop/images/16062025/18/19/image_16062025_18_19_15_10638.jpg', '/home/nano/Desktop/images/16062025/18/18/image_16062025_18_19_04_9624.jpg', '/home/nano/Desktop/images/16062025/18/18/image_16062025_18_18_55_9609.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/19/image_16062025_18_19_45_9621.jpg
/home/nano/Desktop/images/16062025/18/19/image_16062025_18_19_35_10615.jpg
/home/nano/Desktop/images/16062025/18/19/image_16062025_18_19_25_9610.jpg
/home/nano/Desktop/images/16062025/18/19/image_16062025_18_19_15_10638.jpg
/home/nano/Desktop/images/16062025/18/18/image_16062025_18_19_04_9624.jpg
/home/nano/Desktop/images/16062025/18/18/image_16062025_18_18_55_9609.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366582342","1366582336","1366582327","1366582350","1366582358","1366582367"],"photo_ids_order":["1366582327","1366582336","1366582342","1366582350","1366582358","1366582367"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a5ca0aad7296e602d0696cd74125ae03.jpg","text":"TemporaryFile(/tmp/multipartBody4518594187386282431asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090837167,"filename":"image_16062025_18_19_25_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8d550ea00381bc3e9b9346d1a34c9751.jpg","text":"TemporaryFile(/tmp/multipartBody4685202028872765951asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090837167,"filename":"image_16062025_18_19_35_10615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/98c82c0a940679ff50f43438cdc5950a.jpg","text":"TemporaryFile(/tmp/multipartBody5058655644405629071asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090837167,"filename":"image_16062025_18_19_45_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/be7033ba167eeada9e4d3663dba181f0.jpg","text":"TemporaryFile(/tmp/multipartBody4745647283517924385asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090837167,"filename":"image_16062025_18_19_15_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c9433a5737c822b76aafc4ddb2114720.jpg","text":"TemporaryFile(/tmp/multipartBody4900480056052615076asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090837167,"filename":"image_16062025_18_19_04_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/06dbef99a80f758379e4a12a32877b1d.jpg","text":"TemporaryFile(/tmp/multipartBody25159917819490578asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090837167,"filename":"image_16062025_18_18_55_9609.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366582342","file1":"1366582336","file0":"1366582327","file4":"1366582358","file5":"1366582367","file3":"1366582350"},"map_files_photo_id_array":[{"photo_id":"1366582367","filename":"file5"},{"photo_id":"1366582342","filename":"file2"},{"photo_id":"1366582358","filename":"file4"},{"photo_id":"1366582336","filename":"file1"},{"photo_id":"1366582327","filename":"file0"},{"photo_id":"1366582350","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366582342":["hashtag1","hashtag2"]},{"1366582336":["hashtag1","hashtag2"]},{"1366582327":["hashtag1","hashtag2"]},{"1366582350":["hashtag1","hashtag2"]},{"1366582358":["hashtag1","hashtag2"]},{"1366582367":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366582342, 1366582336, 1366582327, 1366582350, 1366582358, 1366582367)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 75.00405526161194 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:21:02.900275
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/20/image_16062025_18_20_45_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/18/20/image_16062025_18_20_35_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/18/20/image_16062025_18_20_25_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/18/20/image_16062025_18_20_15_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/18/19/image_16062025_18_20_05_10706.jpg', 2), ('/home/nano/Desktop/images/16062025/18/19/image_16062025_18_19_55_9633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/20/image_16062025_18_20_45_9623.jpg', '/home/nano/Desktop/images/16062025/18/20/image_16062025_18_20_35_10648.jpg', '/home/nano/Desktop/images/16062025/18/20/image_16062025_18_20_25_9622.jpg', '/home/nano/Desktop/images/16062025/18/20/image_16062025_18_20_15_9639.jpg', '/home/nano/Desktop/images/16062025/18/19/image_16062025_18_20_05_10706.jpg', '/home/nano/Desktop/images/16062025/18/19/image_16062025_18_19_55_9633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/20/image_16062025_18_20_45_9623.jpg
/home/nano/Desktop/images/16062025/18/20/image_16062025_18_20_35_10648.jpg
/home/nano/Desktop/images/16062025/18/20/image_16062025_18_20_25_9622.jpg
/home/nano/Desktop/images/16062025/18/20/image_16062025_18_20_15_9639.jpg
/home/nano/Desktop/images/16062025/18/19/image_16062025_18_20_05_10706.jpg
/home/nano/Desktop/images/16062025/18/19/image_16062025_18_19_55_9633.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366582402","1366582380","1366582425","1366582394","1366582418","1366582387"],"photo_ids_order":["1366582380","1366582387","1366582394","1366582402","1366582418","1366582425"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/80769cd149d7c91e860ec25f40529f66.jpg","text":"TemporaryFile(/tmp/multipartBody1330242034048775387asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090952966,"filename":"image_16062025_18_20_15_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a91a84baf0090bc31bef4a885c890a3a.jpg","text":"TemporaryFile(/tmp/multipartBody1947628026431794726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090952966,"filename":"image_16062025_18_20_45_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1279f63fd0c3a616c32e13b86024805a.jpg","text":"TemporaryFile(/tmp/multipartBody2665149191205156899asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090952966,"filename":"image_16062025_18_19_55_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3e3c920719b0a1fdfae6e51862b10e14.jpg","text":"TemporaryFile(/tmp/multipartBody8384965297433780708asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090952966,"filename":"image_16062025_18_20_25_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3957203c392eed37684478da8ad51b6c.jpg","text":"TemporaryFile(/tmp/multipartBody1608191352657883888asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090952966,"filename":"image_16062025_18_20_05_10706.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4b23d45c212ee89da6fbfd1c31506310.jpg","text":"TemporaryFile(/tmp/multipartBody829309344289003093asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750090952966,"filename":"image_16062025_18_20_35_10648.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366582394","file1":"1366582387","file0":"1366582380","file4":"1366582418","file5":"1366582425","file3":"1366582402"},"map_files_photo_id_array":[{"photo_id":"1366582425","filename":"file5"},{"photo_id":"1366582394","filename":"file2"},{"photo_id":"1366582418","filename":"file4"},{"photo_id":"1366582387","filename":"file1"},{"photo_id":"1366582380","filename":"file0"},{"photo_id":"1366582402","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366582402":["hashtag1","hashtag2"]},{"1366582380":["hashtag1","hashtag2"]},{"1366582425":["hashtag1","hashtag2"]},{"1366582394":["hashtag1","hashtag2"]},{"1366582418":["hashtag1","hashtag2"]},{"1366582387":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366582402, 1366582380, 1366582425, 1366582394, 1366582418, 1366582387)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 136.06092643737793 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:23:32.349745
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/23/image_16062025_18_23_44_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/18/23/image_16062025_18_23_35_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/18/23/image_16062025_18_23_25_10668.jpg', 2), ('/home/nano/Desktop/images/16062025/18/23/image_16062025_18_23_14_9648.jpg', 2), ('/home/nano/Desktop/images/16062025/18/22/image_16062025_18_23_05_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/18/22/image_16062025_18_22_55_10663.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/23/image_16062025_18_23_44_9640.jpg', '/home/nano/Desktop/images/16062025/18/23/image_16062025_18_23_35_9635.jpg', '/home/nano/Desktop/images/16062025/18/23/image_16062025_18_23_25_10668.jpg', '/home/nano/Desktop/images/16062025/18/23/image_16062025_18_23_14_9648.jpg', '/home/nano/Desktop/images/16062025/18/22/image_16062025_18_23_05_9637.jpg', '/home/nano/Desktop/images/16062025/18/22/image_16062025_18_22_55_10663.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/23/image_16062025_18_23_44_9640.jpg
/home/nano/Desktop/images/16062025/18/23/image_16062025_18_23_35_9635.jpg
/home/nano/Desktop/images/16062025/18/23/image_16062025_18_23_25_10668.jpg
/home/nano/Desktop/images/16062025/18/23/image_16062025_18_23_14_9648.jpg
/home/nano/Desktop/images/16062025/18/22/image_16062025_18_23_05_9637.jpg
/home/nano/Desktop/images/16062025/18/22/image_16062025_18_22_55_10663.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366582468","1366582464","1366582548","1366582589","1366582475","1366582457"],"photo_ids_order":["1366582457","1366582464","1366582468","1366582475","1366582548","1366582589"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4c19741f1fad311a53fa0f89bfec3703.jpg","text":"TemporaryFile(/tmp/multipartBody7012758442614013312asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091076482,"filename":"image_16062025_18_23_25_10668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/838f1a59d545ae4ed2f6b345478870e2.jpg","text":"TemporaryFile(/tmp/multipartBody2729374121323987120asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091076482,"filename":"image_16062025_18_23_35_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1d02f4a22684bf7c3f0de478562825cc.jpg","text":"TemporaryFile(/tmp/multipartBody7313401014830162621asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091076482,"filename":"image_16062025_18_23_05_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5359c8e9b6fc3681a2179008e635a5af.jpg","text":"TemporaryFile(/tmp/multipartBody5445197085672232582asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091076482,"filename":"image_16062025_18_22_55_10663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1de030631af38299265133e6f8775fd0.jpg","text":"TemporaryFile(/tmp/multipartBody7024471811694204176asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091076482,"filename":"image_16062025_18_23_14_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e1cec28d02baf6593ab01866a3376c4e.jpg","text":"TemporaryFile(/tmp/multipartBody190705017636657275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091076482,"filename":"image_16062025_18_23_44_9640.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366582468","file1":"1366582464","file0":"1366582457","file4":"1366582548","file5":"1366582589","file3":"1366582475"},"map_files_photo_id_array":[{"photo_id":"1366582589","filename":"file5"},{"photo_id":"1366582468","filename":"file2"},{"photo_id":"1366582548","filename":"file4"},{"photo_id":"1366582464","filename":"file1"},{"photo_id":"1366582457","filename":"file0"},{"photo_id":"1366582475","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366582468":["hashtag1","hashtag2"]},{"1366582464":["hashtag1","hashtag2"]},{"1366582548":["hashtag1","hashtag2"]},{"1366582589":["hashtag1","hashtag2"]},{"1366582475":["hashtag1","hashtag2"]},{"1366582457":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366582468, 1366582464, 1366582548, 1366582589, 1366582475, 1366582457)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 91.12896776199341 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:25:17.559049
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/25/image_16062025_18_25_45_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/18/25/image_16062025_18_25_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/18/25/image_16062025_18_25_25_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/18/25/image_16062025_18_25_15_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/18/24/image_16062025_18_25_05_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/18/24/image_16062025_18_24_55_9617.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/25/image_16062025_18_25_45_10631.jpg', '/home/nano/Desktop/images/16062025/18/25/image_16062025_18_25_34_9624.jpg', '/home/nano/Desktop/images/16062025/18/25/image_16062025_18_25_25_9627.jpg', '/home/nano/Desktop/images/16062025/18/25/image_16062025_18_25_15_10666.jpg', '/home/nano/Desktop/images/16062025/18/24/image_16062025_18_25_05_9641.jpg', '/home/nano/Desktop/images/16062025/18/24/image_16062025_18_24_55_9617.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/25/image_16062025_18_25_45_10631.jpg
/home/nano/Desktop/images/16062025/18/25/image_16062025_18_25_34_9624.jpg
/home/nano/Desktop/images/16062025/18/25/image_16062025_18_25_25_9627.jpg
/home/nano/Desktop/images/16062025/18/25/image_16062025_18_25_15_10666.jpg
/home/nano/Desktop/images/16062025/18/24/image_16062025_18_25_05_9641.jpg
/home/nano/Desktop/images/16062025/18/24/image_16062025_18_24_55_9617.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366582636","1366582640","1366582643","1366582646","1366582631","1366582625"],"photo_ids_order":["1366582625","1366582631","1366582636","1366582640","1366582643","1366582646"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bcd5412a715d131a1d6370149fce2049.jpg","text":"TemporaryFile(/tmp/multipartBody6564554722052724019asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091181770,"filename":"image_16062025_18_25_25_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5a2b112c90224badb540a11b9062bf78.jpg","text":"TemporaryFile(/tmp/multipartBody8397445028435338392asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091181770,"filename":"image_16062025_18_25_15_10666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2908535ec06d9fd94e996b8c0764c275.jpg","text":"TemporaryFile(/tmp/multipartBody6408278431637264785asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091181770,"filename":"image_16062025_18_25_05_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ee07aa9dff47741a383b78f2b982be74.jpg","text":"TemporaryFile(/tmp/multipartBody2266164410114950247asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091181770,"filename":"image_16062025_18_24_55_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9bf205f4b9fc2aca72a5d0cbe750acb8.jpg","text":"TemporaryFile(/tmp/multipartBody3969757281463883967asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091181770,"filename":"image_16062025_18_25_34_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4b14560640f208c9ea39f9b14bb7003b.jpg","text":"TemporaryFile(/tmp/multipartBody9171434922502128890asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091181770,"filename":"image_16062025_18_25_45_10631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366582636","file1":"1366582631","file0":"1366582625","file4":"1366582643","file5":"1366582646","file3":"1366582640"},"map_files_photo_id_array":[{"photo_id":"1366582646","filename":"file5"},{"photo_id":"1366582636","filename":"file2"},{"photo_id":"1366582643","filename":"file4"},{"photo_id":"1366582631","filename":"file1"},{"photo_id":"1366582625","filename":"file0"},{"photo_id":"1366582640","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366582636":["hashtag1","hashtag2"]},{"1366582640":["hashtag1","hashtag2"]},{"1366582643":["hashtag1","hashtag2"]},{"1366582646":["hashtag1","hashtag2"]},{"1366582631":["hashtag1","hashtag2"]},{"1366582625":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366582636, 1366582640, 1366582643, 1366582646, 1366582631, 1366582625)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 73.08106851577759 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:26:32.657663
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/26/image_16062025_18_26_45_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/18/26/image_16062025_18_26_35_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/18/26/image_16062025_18_26_25_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/18/26/image_16062025_18_26_15_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/18/25/image_16062025_18_26_05_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/18/25/image_16062025_18_25_55_9617.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/26/image_16062025_18_26_45_9646.jpg', '/home/nano/Desktop/images/16062025/18/26/image_16062025_18_26_35_10625.jpg', '/home/nano/Desktop/images/16062025/18/26/image_16062025_18_26_25_9631.jpg', '/home/nano/Desktop/images/16062025/18/26/image_16062025_18_26_15_9651.jpg', '/home/nano/Desktop/images/16062025/18/25/image_16062025_18_26_05_10631.jpg', '/home/nano/Desktop/images/16062025/18/25/image_16062025_18_25_55_9617.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/26/image_16062025_18_26_45_9646.jpg
/home/nano/Desktop/images/16062025/18/26/image_16062025_18_26_35_10625.jpg
/home/nano/Desktop/images/16062025/18/26/image_16062025_18_26_25_9631.jpg
/home/nano/Desktop/images/16062025/18/26/image_16062025_18_26_15_9651.jpg
/home/nano/Desktop/images/16062025/18/25/image_16062025_18_26_05_10631.jpg
/home/nano/Desktop/images/16062025/18/25/image_16062025_18_25_55_9617.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366582714","1366582668","1366582707","1366582701","1366582676","1366582681"],"photo_ids_order":["1366582668","1366582676","1366582681","1366582701","1366582707","1366582714"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/80be718d4a7e5bc217575d3c3872f0ab.jpg","text":"TemporaryFile(/tmp/multipartBody9125638248818431689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091255704,"filename":"image_16062025_18_25_55_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e2a1f25c2a6e0cb3fd5ce05b36b0ce7c.jpg","text":"TemporaryFile(/tmp/multipartBody4176646788617894101asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091255704,"filename":"image_16062025_18_26_45_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/49707f36236052199e7880a5c60ac15f.jpg","text":"TemporaryFile(/tmp/multipartBody1391537191189153471asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091255704,"filename":"image_16062025_18_26_05_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bbcd9241df62c86b4f99e718111de5ca.jpg","text":"TemporaryFile(/tmp/multipartBody1080787665484308172asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091255704,"filename":"image_16062025_18_26_15_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5e2c4af096e6405a64f6f4c58047a15a.jpg","text":"TemporaryFile(/tmp/multipartBody6019599732530914235asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091255704,"filename":"image_16062025_18_26_35_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0f564d3435a09578ed5158bb564e5058.jpg","text":"TemporaryFile(/tmp/multipartBody4844352918231325787asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091255704,"filename":"image_16062025_18_26_25_9631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366582681","file1":"1366582676","file0":"1366582668","file4":"1366582707","file5":"1366582714","file3":"1366582701"},"map_files_photo_id_array":[{"photo_id":"1366582714","filename":"file5"},{"photo_id":"1366582681","filename":"file2"},{"photo_id":"1366582707","filename":"file4"},{"photo_id":"1366582676","filename":"file1"},{"photo_id":"1366582668","filename":"file0"},{"photo_id":"1366582701","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366582714":["hashtag1","hashtag2"]},{"1366582668":["hashtag1","hashtag2"]},{"1366582707":["hashtag1","hashtag2"]},{"1366582701":["hashtag1","hashtag2"]},{"1366582676":["hashtag1","hashtag2"]},{"1366582681":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366582714, 1366582668, 1366582707, 1366582701, 1366582676, 1366582681)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 73.80622839927673 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:27:47.752940
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/27/image_16062025_18_27_45_9822.jpg', 2), ('/home/nano/Desktop/images/16062025/18/27/image_16062025_18_27_35_10717.jpg', 2), ('/home/nano/Desktop/images/16062025/18/27/image_16062025_18_27_25_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/18/27/image_16062025_18_27_15_9666.jpg', 2), ('/home/nano/Desktop/images/16062025/18/26/image_16062025_18_27_05_10680.jpg', 2), ('/home/nano/Desktop/images/16062025/18/26/image_16062025_18_26_55_9663.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/27/image_16062025_18_27_45_9822.jpg', '/home/nano/Desktop/images/16062025/18/27/image_16062025_18_27_35_10717.jpg', '/home/nano/Desktop/images/16062025/18/27/image_16062025_18_27_25_9634.jpg', '/home/nano/Desktop/images/16062025/18/27/image_16062025_18_27_15_9666.jpg', '/home/nano/Desktop/images/16062025/18/26/image_16062025_18_27_05_10680.jpg', '/home/nano/Desktop/images/16062025/18/26/image_16062025_18_26_55_9663.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/27/image_16062025_18_27_45_9822.jpg
/home/nano/Desktop/images/16062025/18/27/image_16062025_18_27_35_10717.jpg
/home/nano/Desktop/images/16062025/18/27/image_16062025_18_27_25_9634.jpg
/home/nano/Desktop/images/16062025/18/27/image_16062025_18_27_15_9666.jpg
/home/nano/Desktop/images/16062025/18/26/image_16062025_18_27_05_10680.jpg
/home/nano/Desktop/images/16062025/18/26/image_16062025_18_26_55_9663.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366582744","1366582738","1366582732","1366582725","1366582728","1366582751"],"photo_ids_order":["1366582725","1366582728","1366582732","1366582738","1366582744","1366582751"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2796092f37be314d98d76acf799f3be8.jpg","text":"TemporaryFile(/tmp/multipartBody9130463235146663135asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091331368,"filename":"image_16062025_18_27_05_10680.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ad8563ebe6a2020723c14ccb44916573.jpg","text":"TemporaryFile(/tmp/multipartBody5527890398190271331asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091331368,"filename":"image_16062025_18_27_15_9666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/37a77fc5fdf38ac1a5e9244ed96752e3.jpg","text":"TemporaryFile(/tmp/multipartBody2347963903760895770asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091331368,"filename":"image_16062025_18_27_25_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ca0511b0476047ab818f8b685d00ab17.jpg","text":"TemporaryFile(/tmp/multipartBody3082561508871526701asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091331368,"filename":"image_16062025_18_27_45_9822.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/740633f6697143614cc28db9e1f6c7c9.jpg","text":"TemporaryFile(/tmp/multipartBody4338027779646535288asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091331368,"filename":"image_16062025_18_27_35_10717.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/12e8f0ae5b4df39e6e0d6c50c3a18fb9.jpg","text":"TemporaryFile(/tmp/multipartBody849777707177408935asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091331368,"filename":"image_16062025_18_26_55_9663.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366582732","file1":"1366582728","file0":"1366582725","file4":"1366582744","file5":"1366582751","file3":"1366582738"},"map_files_photo_id_array":[{"photo_id":"1366582751","filename":"file5"},{"photo_id":"1366582732","filename":"file2"},{"photo_id":"1366582744","filename":"file4"},{"photo_id":"1366582728","filename":"file1"},{"photo_id":"1366582725","filename":"file0"},{"photo_id":"1366582738","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366582744":["hashtag1","hashtag2"]},{"1366582738":["hashtag1","hashtag2"]},{"1366582732":["hashtag1","hashtag2"]},{"1366582725":["hashtag1","hashtag2"]},{"1366582728":["hashtag1","hashtag2"]},{"1366582751":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366582744, 1366582738, 1366582732, 1366582725, 1366582728, 1366582751)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 78.1821653842926 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:29:16.956815
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/29/image_16062025_18_29_35_10669.jpg', 2), ('/home/nano/Desktop/images/16062025/18/29/image_16062025_18_29_24_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/18/29/image_16062025_18_29_15_9843.jpg', 2), ('/home/nano/Desktop/images/16062025/18/28/image_16062025_18_29_05_9719.jpg', 2), ('/home/nano/Desktop/images/16062025/18/28/image_16062025_18_28_55_10685.jpg', 2), ('/home/nano/Desktop/images/16062025/18/28/image_16062025_18_28_45_9682.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/29/image_16062025_18_29_35_10669.jpg', '/home/nano/Desktop/images/16062025/18/29/image_16062025_18_29_24_9644.jpg', '/home/nano/Desktop/images/16062025/18/29/image_16062025_18_29_15_9843.jpg', '/home/nano/Desktop/images/16062025/18/28/image_16062025_18_29_05_9719.jpg', '/home/nano/Desktop/images/16062025/18/28/image_16062025_18_28_55_10685.jpg', '/home/nano/Desktop/images/16062025/18/28/image_16062025_18_28_45_9682.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/29/image_16062025_18_29_35_10669.jpg
/home/nano/Desktop/images/16062025/18/29/image_16062025_18_29_24_9644.jpg
/home/nano/Desktop/images/16062025/18/29/image_16062025_18_29_15_9843.jpg
/home/nano/Desktop/images/16062025/18/28/image_16062025_18_29_05_9719.jpg
/home/nano/Desktop/images/16062025/18/28/image_16062025_18_28_55_10685.jpg
/home/nano/Desktop/images/16062025/18/28/image_16062025_18_28_45_9682.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366583008","1366582867","1366582906","1366582828","1366582775","1366582780"],"photo_ids_order":["1366582775","1366582780","1366582828","1366582867","1366582906","1366583008"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/641f126a33147ed6c5fe03aa85e80713.jpg","text":"TemporaryFile(/tmp/multipartBody6527428262954458182asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091421140,"filename":"image_16062025_18_28_45_9682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/eb3c705e9a1f6d92e6c2bef2e5c31745.jpg","text":"TemporaryFile(/tmp/multipartBody327487763558775199asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091421140,"filename":"image_16062025_18_29_05_9719.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c326e7bad440496badb98204c64f456b.jpg","text":"TemporaryFile(/tmp/multipartBody653961722644847692asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091421140,"filename":"image_16062025_18_28_55_10685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3340332e2c546b87c0f59fd182911c3d.jpg","text":"TemporaryFile(/tmp/multipartBody6955003481483828382asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091421140,"filename":"image_16062025_18_29_15_9843.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e602880fb94386a3a921b00284ccbde1.jpg","text":"TemporaryFile(/tmp/multipartBody5246321307882449891asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091421140,"filename":"image_16062025_18_29_35_10669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/141c9a7b07bf323603071c0e48809625.jpg","text":"TemporaryFile(/tmp/multipartBody8664322626980621421asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091421140,"filename":"image_16062025_18_29_24_9644.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366582828","file1":"1366582780","file0":"1366582775","file4":"1366582906","file5":"1366583008","file3":"1366582867"},"map_files_photo_id_array":[{"photo_id":"1366583008","filename":"file5"},{"photo_id":"1366582828","filename":"file2"},{"photo_id":"1366582906","filename":"file4"},{"photo_id":"1366582780","filename":"file1"},{"photo_id":"1366582775","filename":"file0"},{"photo_id":"1366582867","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366583008":["hashtag1","hashtag2"]},{"1366582867":["hashtag1","hashtag2"]},{"1366582906":["hashtag1","hashtag2"]},{"1366582828":["hashtag1","hashtag2"]},{"1366582775":["hashtag1","hashtag2"]},{"1366582780":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366583008, 1366582867, 1366582906, 1366582828, 1366582775, 1366582780)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 72.39730834960938 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:30:32.034860
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/30/image_16062025_18_30_45_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/18/30/image_16062025_18_30_35_10675.jpg', 2), ('/home/nano/Desktop/images/16062025/18/30/image_16062025_18_30_25_9758.jpg', 2), ('/home/nano/Desktop/images/16062025/18/30/image_16062025_18_30_15_9742.jpg', 2), ('/home/nano/Desktop/images/16062025/18/29/image_16062025_18_30_05_10699.jpg', 2), ('/home/nano/Desktop/images/16062025/18/29/image_16062025_18_29_54_9676.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/30/image_16062025_18_30_45_9625.jpg', '/home/nano/Desktop/images/16062025/18/30/image_16062025_18_30_35_10675.jpg', '/home/nano/Desktop/images/16062025/18/30/image_16062025_18_30_25_9758.jpg', '/home/nano/Desktop/images/16062025/18/30/image_16062025_18_30_15_9742.jpg', '/home/nano/Desktop/images/16062025/18/29/image_16062025_18_30_05_10699.jpg', '/home/nano/Desktop/images/16062025/18/29/image_16062025_18_29_54_9676.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/30/image_16062025_18_30_45_9625.jpg
/home/nano/Desktop/images/16062025/18/30/image_16062025_18_30_35_10675.jpg
/home/nano/Desktop/images/16062025/18/30/image_16062025_18_30_25_9758.jpg
/home/nano/Desktop/images/16062025/18/30/image_16062025_18_30_15_9742.jpg
/home/nano/Desktop/images/16062025/18/29/image_16062025_18_30_05_10699.jpg
/home/nano/Desktop/images/16062025/18/29/image_16062025_18_29_54_9676.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366583212","1366583229","1366583246","1366583234","1366583188","1366583221"],"photo_ids_order":["1366583188","1366583212","1366583221","1366583229","1366583234","1366583246"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/feb5122fbe984910984b34dcf2913fa0.jpg","text":"TemporaryFile(/tmp/multipartBody7629805890913970716asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091495785,"filename":"image_16062025_18_30_35_10675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9ad37f82f2b0f386855e33a9a835e58a.jpg","text":"TemporaryFile(/tmp/multipartBody5518247744329896925asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091495785,"filename":"image_16062025_18_30_15_9742.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a9e163b86e8d508183e8a73ed05fd255.jpg","text":"TemporaryFile(/tmp/multipartBody6979371492281337655asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091495785,"filename":"image_16062025_18_29_54_9676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bf37e9423d615bde35a118668044fb12.jpg","text":"TemporaryFile(/tmp/multipartBody4142640754043889525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091495785,"filename":"image_16062025_18_30_05_10699.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/67bf838b14678fe858022892b16f41bd.jpg","text":"TemporaryFile(/tmp/multipartBody4255646192734439808asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091495785,"filename":"image_16062025_18_30_45_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/69f57c6e12bc110b7192828363bb69c2.jpg","text":"TemporaryFile(/tmp/multipartBody2869799019831717136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091495785,"filename":"image_16062025_18_30_25_9758.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366583221","file1":"1366583212","file0":"1366583188","file4":"1366583234","file5":"1366583246","file3":"1366583229"},"map_files_photo_id_array":[{"photo_id":"1366583246","filename":"file5"},{"photo_id":"1366583221","filename":"file2"},{"photo_id":"1366583234","filename":"file4"},{"photo_id":"1366583212","filename":"file1"},{"photo_id":"1366583188","filename":"file0"},{"photo_id":"1366583229","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366583212":["hashtag1","hashtag2"]},{"1366583229":["hashtag1","hashtag2"]},{"1366583246":["hashtag1","hashtag2"]},{"1366583234":["hashtag1","hashtag2"]},{"1366583188":["hashtag1","hashtag2"]},{"1366583221":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366583212, 1366583229, 1366583246, 1366583234, 1366583188, 1366583221)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 97.57830023765564 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:32:17.322705
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/32/image_16062025_18_32_45_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/18/32/image_16062025_18_32_35_10614.jpg', 2), ('/home/nano/Desktop/images/16062025/18/32/image_16062025_18_32_25_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/18/32/image_16062025_18_32_15_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/18/31/image_16062025_18_32_04_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/18/31/image_16062025_18_31_55_9598.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/32/image_16062025_18_32_45_9626.jpg', '/home/nano/Desktop/images/16062025/18/32/image_16062025_18_32_35_10614.jpg', '/home/nano/Desktop/images/16062025/18/32/image_16062025_18_32_25_9615.jpg', '/home/nano/Desktop/images/16062025/18/32/image_16062025_18_32_15_10647.jpg', '/home/nano/Desktop/images/16062025/18/31/image_16062025_18_32_04_9635.jpg', '/home/nano/Desktop/images/16062025/18/31/image_16062025_18_31_55_9598.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/32/image_16062025_18_32_45_9626.jpg
/home/nano/Desktop/images/16062025/18/32/image_16062025_18_32_35_10614.jpg
/home/nano/Desktop/images/16062025/18/32/image_16062025_18_32_25_9615.jpg
/home/nano/Desktop/images/16062025/18/32/image_16062025_18_32_15_10647.jpg
/home/nano/Desktop/images/16062025/18/31/image_16062025_18_32_04_9635.jpg
/home/nano/Desktop/images/16062025/18/31/image_16062025_18_31_55_9598.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366583295","1366583286","1366583271","1366583279","1366583264","1366583293"],"photo_ids_order":["1366583264","1366583271","1366583279","1366583286","1366583293","1366583295"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/89f909ffafa45aeda514f96f37b364cb.jpg","text":"TemporaryFile(/tmp/multipartBody6821767866202682241asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091600794,"filename":"image_16062025_18_31_55_9598.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bab8a445396693e0b1450d230d22a255.jpg","text":"TemporaryFile(/tmp/multipartBody8321409964371601502asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091600794,"filename":"image_16062025_18_32_15_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/948c008642f3c6b90937b98ac2d5a303.jpg","text":"TemporaryFile(/tmp/multipartBody5791421031228154377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091600794,"filename":"image_16062025_18_32_35_10614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c84148acbcdf704c13d6d5cc84b9a2ff.jpg","text":"TemporaryFile(/tmp/multipartBody3055148788001818789asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091600794,"filename":"image_16062025_18_32_25_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ca9b334ad3ce14f16b28e191209ccf88.jpg","text":"TemporaryFile(/tmp/multipartBody8028841656357043392asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091600794,"filename":"image_16062025_18_32_45_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c030b00c505b646a9328c53592d08b1e.jpg","text":"TemporaryFile(/tmp/multipartBody4273554284759321384asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091600794,"filename":"image_16062025_18_32_04_9635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366583279","file1":"1366583271","file0":"1366583264","file4":"1366583293","file5":"1366583295","file3":"1366583286"},"map_files_photo_id_array":[{"photo_id":"1366583295","filename":"file5"},{"photo_id":"1366583279","filename":"file2"},{"photo_id":"1366583293","filename":"file4"},{"photo_id":"1366583271","filename":"file1"},{"photo_id":"1366583264","filename":"file0"},{"photo_id":"1366583286","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366583295":["hashtag1","hashtag2"]},{"1366583286":["hashtag1","hashtag2"]},{"1366583271":["hashtag1","hashtag2"]},{"1366583279":["hashtag1","hashtag2"]},{"1366583264":["hashtag1","hashtag2"]},{"1366583293":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366583295, 1366583286, 1366583271, 1366583279, 1366583264, 1366583293)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 72.16772365570068 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:33:32.411712
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/33/image_16062025_18_33_45_9710.jpg', 2), ('/home/nano/Desktop/images/16062025/18/33/image_16062025_18_33_35_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/18/33/image_16062025_18_33_24_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/18/33/image_16062025_18_33_15_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/18/32/image_16062025_18_33_05_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/18/32/image_16062025_18_32_55_9616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/33/image_16062025_18_33_45_9710.jpg', '/home/nano/Desktop/images/16062025/18/33/image_16062025_18_33_35_10652.jpg', '/home/nano/Desktop/images/16062025/18/33/image_16062025_18_33_24_9612.jpg', '/home/nano/Desktop/images/16062025/18/33/image_16062025_18_33_15_9636.jpg', '/home/nano/Desktop/images/16062025/18/32/image_16062025_18_33_05_10642.jpg', '/home/nano/Desktop/images/16062025/18/32/image_16062025_18_32_55_9616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/33/image_16062025_18_33_45_9710.jpg
/home/nano/Desktop/images/16062025/18/33/image_16062025_18_33_35_10652.jpg
/home/nano/Desktop/images/16062025/18/33/image_16062025_18_33_24_9612.jpg
/home/nano/Desktop/images/16062025/18/33/image_16062025_18_33_15_9636.jpg
/home/nano/Desktop/images/16062025/18/32/image_16062025_18_33_05_10642.jpg
/home/nano/Desktop/images/16062025/18/32/image_16062025_18_32_55_9616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366583326","1366583311","1366583331","1366583304","1366583300","1366583320"],"photo_ids_order":["1366583300","1366583304","1366583311","1366583320","1366583326","1366583331"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6dc61bd7298d923fbcd3a77234172896.jpg","text":"TemporaryFile(/tmp/multipartBody8162718312170198415asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091677694,"filename":"image_16062025_18_33_05_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6dd8544139c7cb99633badc725218e25.jpg","text":"TemporaryFile(/tmp/multipartBody1938156664863173564asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091677694,"filename":"image_16062025_18_33_24_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/710f2a55cd1404685e2eed37010b2cc2.jpg","text":"TemporaryFile(/tmp/multipartBody8645365936507469036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091677694,"filename":"image_16062025_18_32_55_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/31c3f4b6034b2c76509c753ba1f6542a.jpg","text":"TemporaryFile(/tmp/multipartBody7794388993733335375asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091677694,"filename":"image_16062025_18_33_35_10652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/da1b2764ab187c89426802d1c40961b6.jpg","text":"TemporaryFile(/tmp/multipartBody5163102388477283421asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091677694,"filename":"image_16062025_18_33_45_9710.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2774c2d0660b82e4c23143c57eb49c2f.jpg","text":"TemporaryFile(/tmp/multipartBody1592510234122420593asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091677694,"filename":"image_16062025_18_33_15_9636.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366583311","file1":"1366583304","file0":"1366583300","file4":"1366583326","file5":"1366583331","file3":"1366583320"},"map_files_photo_id_array":[{"photo_id":"1366583331","filename":"file5"},{"photo_id":"1366583311","filename":"file2"},{"photo_id":"1366583326","filename":"file4"},{"photo_id":"1366583304","filename":"file1"},{"photo_id":"1366583300","filename":"file0"},{"photo_id":"1366583320","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366583326":["hashtag1","hashtag2"]},{"1366583311":["hashtag1","hashtag2"]},{"1366583331":["hashtag1","hashtag2"]},{"1366583304":["hashtag1","hashtag2"]},{"1366583300":["hashtag1","hashtag2"]},{"1366583320":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366583326, 1366583311, 1366583331, 1366583304, 1366583300, 1366583320)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 97.56988453865051 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:35:17.597439
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/35/image_16062025_18_35_44_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/18/35/image_16062025_18_35_35_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/18/35/image_16062025_18_35_25_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/18/35/image_16062025_18_35_14_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/18/34/image_16062025_18_35_05_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/18/34/image_16062025_18_34_55_10647.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/35/image_16062025_18_35_44_9618.jpg', '/home/nano/Desktop/images/16062025/18/35/image_16062025_18_35_35_9657.jpg', '/home/nano/Desktop/images/16062025/18/35/image_16062025_18_35_25_10656.jpg', '/home/nano/Desktop/images/16062025/18/35/image_16062025_18_35_14_9645.jpg', '/home/nano/Desktop/images/16062025/18/34/image_16062025_18_35_05_9640.jpg', '/home/nano/Desktop/images/16062025/18/34/image_16062025_18_34_55_10647.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/35/image_16062025_18_35_44_9618.jpg
/home/nano/Desktop/images/16062025/18/35/image_16062025_18_35_35_9657.jpg
/home/nano/Desktop/images/16062025/18/35/image_16062025_18_35_25_10656.jpg
/home/nano/Desktop/images/16062025/18/35/image_16062025_18_35_14_9645.jpg
/home/nano/Desktop/images/16062025/18/34/image_16062025_18_35_05_9640.jpg
/home/nano/Desktop/images/16062025/18/34/image_16062025_18_34_55_10647.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366583391","1366583348","1366583345","1366583377","1366583365","1366583353"],"photo_ids_order":["1366583345","1366583348","1366583353","1366583365","1366583377","1366583391"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/60ac0ed6c19f4ff48428565c3282b4da.jpg","text":"TemporaryFile(/tmp/multipartBody6418388220294930465asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091781134,"filename":"image_16062025_18_34_55_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/51142fb7ad8d80696827da9498ba6ab1.jpg","text":"TemporaryFile(/tmp/multipartBody3781892363206598093asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091781134,"filename":"image_16062025_18_35_35_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b84c7d039d0d2a53d8068c1d781dc0b6.jpg","text":"TemporaryFile(/tmp/multipartBody7638842941951695474asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091781134,"filename":"image_16062025_18_35_44_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ef8388a98f7e2cd2c1eb7221d25a90a5.jpg","text":"TemporaryFile(/tmp/multipartBody4197651584104278870asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091781134,"filename":"image_16062025_18_35_05_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/83ed4c5fea9155e467f9a4f0779f13c4.jpg","text":"TemporaryFile(/tmp/multipartBody1193428416773841073asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091781134,"filename":"image_16062025_18_35_14_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1316812a1a2cb80c5c596bc933224d60.jpg","text":"TemporaryFile(/tmp/multipartBody4809296876147468437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091781134,"filename":"image_16062025_18_35_25_10656.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366583353","file1":"1366583348","file0":"1366583345","file4":"1366583377","file5":"1366583391","file3":"1366583365"},"map_files_photo_id_array":[{"photo_id":"1366583391","filename":"file5"},{"photo_id":"1366583353","filename":"file2"},{"photo_id":"1366583377","filename":"file4"},{"photo_id":"1366583348","filename":"file1"},{"photo_id":"1366583345","filename":"file0"},{"photo_id":"1366583365","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366583391":["hashtag1","hashtag2"]},{"1366583348":["hashtag1","hashtag2"]},{"1366583345":["hashtag1","hashtag2"]},{"1366583377":["hashtag1","hashtag2"]},{"1366583365":["hashtag1","hashtag2"]},{"1366583353":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366583391, 1366583348, 1366583345, 1366583377, 1366583365, 1366583353)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 194.72139930725098 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:38:46.907733
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/38/image_16062025_18_38_45_10680.jpg', 2), ('/home/nano/Desktop/images/16062025/18/38/image_16062025_18_38_34_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/18/38/image_16062025_18_38_25_9737.jpg', 2), ('/home/nano/Desktop/images/16062025/18/38/image_16062025_18_38_15_9799.jpg', 2), ('/home/nano/Desktop/images/16062025/18/37/image_16062025_18_38_05_10687.jpg', 2), ('/home/nano/Desktop/images/16062025/18/37/image_16062025_18_37_55_9641.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/38/image_16062025_18_38_45_10680.jpg', '/home/nano/Desktop/images/16062025/18/38/image_16062025_18_38_34_9645.jpg', '/home/nano/Desktop/images/16062025/18/38/image_16062025_18_38_25_9737.jpg', '/home/nano/Desktop/images/16062025/18/38/image_16062025_18_38_15_9799.jpg', '/home/nano/Desktop/images/16062025/18/37/image_16062025_18_38_05_10687.jpg', '/home/nano/Desktop/images/16062025/18/37/image_16062025_18_37_55_9641.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/38/image_16062025_18_38_45_10680.jpg
/home/nano/Desktop/images/16062025/18/38/image_16062025_18_38_34_9645.jpg
/home/nano/Desktop/images/16062025/18/38/image_16062025_18_38_25_9737.jpg
/home/nano/Desktop/images/16062025/18/38/image_16062025_18_38_15_9799.jpg
/home/nano/Desktop/images/16062025/18/37/image_16062025_18_38_05_10687.jpg
/home/nano/Desktop/images/16062025/18/37/image_16062025_18_37_55_9641.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366583422","1366583419","1366583447","1366583456","1366583428","1366583413"],"photo_ids_order":["1366583413","1366583419","1366583422","1366583428","1366583447","1366583456"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ea26a6d886bf632ea187192ba46f4d52.jpg","text":"TemporaryFile(/tmp/multipartBody8311443257259451842asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091991418,"filename":"image_16062025_18_38_25_9737.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5ccd1c9ac7a37e421f0a2b1015ebcfed.jpg","text":"TemporaryFile(/tmp/multipartBody3050307613254144936asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091991418,"filename":"image_16062025_18_38_34_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f3f82b714742d7cf2e1eb3f57862b3a8.jpg","text":"TemporaryFile(/tmp/multipartBody327917530805467720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091991418,"filename":"image_16062025_18_38_05_10687.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/50f7723344f0b1309a6a9dfc3e337daf.jpg","text":"TemporaryFile(/tmp/multipartBody3216337031257436474asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091991418,"filename":"image_16062025_18_37_55_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f6fc85507851280aea7303645a4ce4d6.jpg","text":"TemporaryFile(/tmp/multipartBody1234886823159511077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091991418,"filename":"image_16062025_18_38_15_9799.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2c186532e261e66ec311697d641de8e8.jpg","text":"TemporaryFile(/tmp/multipartBody9214919536030564752asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750091991418,"filename":"image_16062025_18_38_45_10680.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366583422","file1":"1366583419","file0":"1366583413","file4":"1366583447","file5":"1366583456","file3":"1366583428"},"map_files_photo_id_array":[{"photo_id":"1366583456","filename":"file5"},{"photo_id":"1366583422","filename":"file2"},{"photo_id":"1366583447","filename":"file4"},{"photo_id":"1366583419","filename":"file1"},{"photo_id":"1366583413","filename":"file0"},{"photo_id":"1366583428","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366583422":["hashtag1","hashtag2"]},{"1366583419":["hashtag1","hashtag2"]},{"1366583447":["hashtag1","hashtag2"]},{"1366583456":["hashtag1","hashtag2"]},{"1366583428":["hashtag1","hashtag2"]},{"1366583413":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366583422, 1366583419, 1366583447, 1366583456, 1366583428, 1366583413)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 106.59048652648926 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:40:47.115518
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/40/image_16062025_18_40_45_9711.jpg', 2), ('/home/nano/Desktop/images/16062025/18/40/image_16062025_18_40_35_9678.jpg', 2), ('/home/nano/Desktop/images/16062025/18/40/image_16062025_18_40_25_9843.jpg', 2), ('/home/nano/Desktop/images/16062025/18/40/image_16062025_18_40_15_10898.jpg', 2), ('/home/nano/Desktop/images/16062025/18/39/image_16062025_18_40_04_9853.jpg', 2), ('/home/nano/Desktop/images/16062025/18/39/image_16062025_18_39_55_9716.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/40/image_16062025_18_40_45_9711.jpg', '/home/nano/Desktop/images/16062025/18/40/image_16062025_18_40_35_9678.jpg', '/home/nano/Desktop/images/16062025/18/40/image_16062025_18_40_25_9843.jpg', '/home/nano/Desktop/images/16062025/18/40/image_16062025_18_40_15_10898.jpg', '/home/nano/Desktop/images/16062025/18/39/image_16062025_18_40_04_9853.jpg', '/home/nano/Desktop/images/16062025/18/39/image_16062025_18_39_55_9716.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/40/image_16062025_18_40_45_9711.jpg
/home/nano/Desktop/images/16062025/18/40/image_16062025_18_40_35_9678.jpg
/home/nano/Desktop/images/16062025/18/40/image_16062025_18_40_25_9843.jpg
/home/nano/Desktop/images/16062025/18/40/image_16062025_18_40_15_10898.jpg
/home/nano/Desktop/images/16062025/18/39/image_16062025_18_40_04_9853.jpg
/home/nano/Desktop/images/16062025/18/39/image_16062025_18_39_55_9716.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366583499","1366583490","1366583558","1366583540","1366583572","1366583512"],"photo_ids_order":["1366583490","1366583499","1366583512","1366583540","1366583558","1366583572"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8393eed61932bd1944116bd30da70c32.jpg","text":"TemporaryFile(/tmp/multipartBody4424674497794853386asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092110907,"filename":"image_16062025_18_40_35_9678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/08ae45626151f434053d6a62b16a2f60.jpg","text":"TemporaryFile(/tmp/multipartBody893975961179978700asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092110907,"filename":"image_16062025_18_40_45_9711.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ce1b5ea8e9d0bc1a36444a4327ba09ef.jpg","text":"TemporaryFile(/tmp/multipartBody8361923805314669849asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092110907,"filename":"image_16062025_18_40_04_9853.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fb002d2640eb6124f2b66f8b30319593.jpg","text":"TemporaryFile(/tmp/multipartBody6270700167357673190asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092110907,"filename":"image_16062025_18_40_15_10898.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/30d0f6e7b2936f0263cc14e0aa55ca70.jpg","text":"TemporaryFile(/tmp/multipartBody6222303021547325803asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092110907,"filename":"image_16062025_18_39_55_9716.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/98112cca766ab3a1409309b1a3090201.jpg","text":"TemporaryFile(/tmp/multipartBody3479647806271523217asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092110907,"filename":"image_16062025_18_40_25_9843.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366583512","file1":"1366583499","file0":"1366583490","file4":"1366583558","file5":"1366583572","file3":"1366583540"},"map_files_photo_id_array":[{"photo_id":"1366583572","filename":"file5"},{"photo_id":"1366583512","filename":"file2"},{"photo_id":"1366583558","filename":"file4"},{"photo_id":"1366583499","filename":"file1"},{"photo_id":"1366583490","filename":"file0"},{"photo_id":"1366583540","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366583499":["hashtag1","hashtag2"]},{"1366583490":["hashtag1","hashtag2"]},{"1366583558":["hashtag1","hashtag2"]},{"1366583540":["hashtag1","hashtag2"]},{"1366583572":["hashtag1","hashtag2"]},{"1366583512":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366583499, 1366583490, 1366583558, 1366583540, 1366583572, 1366583512)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 98.7029492855072 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:42:32.315694
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/42/image_16062025_18_42_44_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/18/42/image_16062025_18_42_35_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/18/42/image_16062025_18_42_25_10668.jpg', 2), ('/home/nano/Desktop/images/16062025/18/42/image_16062025_18_42_15_9663.jpg', 2), ('/home/nano/Desktop/images/16062025/18/41/image_16062025_18_42_05_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/18/41/image_16062025_18_41_55_10630.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/42/image_16062025_18_42_44_9649.jpg', '/home/nano/Desktop/images/16062025/18/42/image_16062025_18_42_35_9618.jpg', '/home/nano/Desktop/images/16062025/18/42/image_16062025_18_42_25_10668.jpg', '/home/nano/Desktop/images/16062025/18/42/image_16062025_18_42_15_9663.jpg', '/home/nano/Desktop/images/16062025/18/41/image_16062025_18_42_05_9640.jpg', '/home/nano/Desktop/images/16062025/18/41/image_16062025_18_41_55_10630.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/42/image_16062025_18_42_44_9649.jpg
/home/nano/Desktop/images/16062025/18/42/image_16062025_18_42_35_9618.jpg
/home/nano/Desktop/images/16062025/18/42/image_16062025_18_42_25_10668.jpg
/home/nano/Desktop/images/16062025/18/42/image_16062025_18_42_15_9663.jpg
/home/nano/Desktop/images/16062025/18/41/image_16062025_18_42_05_9640.jpg
/home/nano/Desktop/images/16062025/18/41/image_16062025_18_41_55_10630.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366583614","1366583608","1366583619","1366583639","1366583603","1366583626"],"photo_ids_order":["1366583603","1366583608","1366583614","1366583619","1366583626","1366583639"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/aa6d03d1b787f9bb8b45e3cfdd95e02a.jpg","text":"TemporaryFile(/tmp/multipartBody5238125779207345796asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092215581,"filename":"image_16062025_18_42_25_10668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/00adeb9da0f5c4d0868b673c3de621be.jpg","text":"TemporaryFile(/tmp/multipartBody6363548641269023403asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092215581,"filename":"image_16062025_18_42_35_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cf12b06e54a906c745b8bcbea76c454d.jpg","text":"TemporaryFile(/tmp/multipartBody1927885193220796438asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092215581,"filename":"image_16062025_18_42_15_9663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d65dc33a42b402bfed7b312bf5d1d6eb.jpg","text":"TemporaryFile(/tmp/multipartBody6499996091462512136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092215581,"filename":"image_16062025_18_41_55_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e73411cb32eefc16618b0613f29ebdae.jpg","text":"TemporaryFile(/tmp/multipartBody6026676723473716510asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092215581,"filename":"image_16062025_18_42_44_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f16d7c7463516055d88ecdebcfa3327b.jpg","text":"TemporaryFile(/tmp/multipartBody216557699641938734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092215581,"filename":"image_16062025_18_42_05_9640.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366583614","file1":"1366583608","file0":"1366583603","file4":"1366583626","file5":"1366583639","file3":"1366583619"},"map_files_photo_id_array":[{"photo_id":"1366583639","filename":"file5"},{"photo_id":"1366583614","filename":"file2"},{"photo_id":"1366583626","filename":"file4"},{"photo_id":"1366583608","filename":"file1"},{"photo_id":"1366583603","filename":"file0"},{"photo_id":"1366583619","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366583614":["hashtag1","hashtag2"]},{"1366583608":["hashtag1","hashtag2"]},{"1366583619":["hashtag1","hashtag2"]},{"1366583639":["hashtag1","hashtag2"]},{"1366583603":["hashtag1","hashtag2"]},{"1366583626":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366583614, 1366583608, 1366583619, 1366583639, 1366583603, 1366583626)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 96.31045842170715 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:44:17.582851
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/44/image_16062025_18_44_45_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/18/44/image_16062025_18_44_35_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/18/44/image_16062025_18_44_25_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/18/44/image_16062025_18_44_14_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/18/43/image_16062025_18_44_05_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/18/43/image_16062025_18_43_55_10657.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/44/image_16062025_18_44_45_10623.jpg', '/home/nano/Desktop/images/16062025/18/44/image_16062025_18_44_35_9621.jpg', '/home/nano/Desktop/images/16062025/18/44/image_16062025_18_44_25_10644.jpg', '/home/nano/Desktop/images/16062025/18/44/image_16062025_18_44_14_9628.jpg', '/home/nano/Desktop/images/16062025/18/43/image_16062025_18_44_05_9613.jpg', '/home/nano/Desktop/images/16062025/18/43/image_16062025_18_43_55_10657.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/44/image_16062025_18_44_45_10623.jpg
/home/nano/Desktop/images/16062025/18/44/image_16062025_18_44_35_9621.jpg
/home/nano/Desktop/images/16062025/18/44/image_16062025_18_44_25_10644.jpg
/home/nano/Desktop/images/16062025/18/44/image_16062025_18_44_14_9628.jpg
/home/nano/Desktop/images/16062025/18/43/image_16062025_18_44_05_9613.jpg
/home/nano/Desktop/images/16062025/18/43/image_16062025_18_43_55_10657.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366583717","1366583692","1366583711","1366583683","1366583722","1366583665"],"photo_ids_order":["1366583665","1366583683","1366583692","1366583711","1366583717","1366583722"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6007c51a02986ea32fba30c23191165e.jpg","text":"TemporaryFile(/tmp/multipartBody8123126846123094216asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092320607,"filename":"image_16062025_18_44_05_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9f75c89c6a738e57798bcbbc91bb5615.jpg","text":"TemporaryFile(/tmp/multipartBody3429222810030624149asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092320607,"filename":"image_16062025_18_44_25_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/888c98b4e84d070a3c5e0c6f7b459291.jpg","text":"TemporaryFile(/tmp/multipartBody3589172995603501892asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092320607,"filename":"image_16062025_18_44_14_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e362c73c98aab78352176963a7e1c30c.jpg","text":"TemporaryFile(/tmp/multipartBody1993124591422576831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092320607,"filename":"image_16062025_18_44_35_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/74a7fcf27a27dc0846f40e341e2b6656.jpg","text":"TemporaryFile(/tmp/multipartBody4340138105705884274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092320607,"filename":"image_16062025_18_43_55_10657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8caede2f6fb4e98ac27da330bf0e3c91.jpg","text":"TemporaryFile(/tmp/multipartBody3229670286585100533asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092320607,"filename":"image_16062025_18_44_45_10623.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366583692","file1":"1366583683","file0":"1366583665","file4":"1366583717","file5":"1366583722","file3":"1366583711"},"map_files_photo_id_array":[{"photo_id":"1366583722","filename":"file5"},{"photo_id":"1366583692","filename":"file2"},{"photo_id":"1366583717","filename":"file4"},{"photo_id":"1366583683","filename":"file1"},{"photo_id":"1366583665","filename":"file0"},{"photo_id":"1366583711","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366583717":["hashtag1","hashtag2"]},{"1366583692":["hashtag1","hashtag2"]},{"1366583711":["hashtag1","hashtag2"]},{"1366583683":["hashtag1","hashtag2"]},{"1366583722":["hashtag1","hashtag2"]},{"1366583665":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366583717, 1366583692, 1366583711, 1366583683, 1366583722, 1366583665)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 71.27082014083862 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:45:32.661383
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/45/image_16062025_18_45_45_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/18/45/image_16062025_18_45_34_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/18/45/image_16062025_18_45_25_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/18/45/image_16062025_18_45_15_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/18/44/image_16062025_18_45_05_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/18/44/image_16062025_18_44_55_9622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/45/image_16062025_18_45_45_10618.jpg', '/home/nano/Desktop/images/16062025/18/45/image_16062025_18_45_34_9629.jpg', '/home/nano/Desktop/images/16062025/18/45/image_16062025_18_45_25_9619.jpg', '/home/nano/Desktop/images/16062025/18/45/image_16062025_18_45_15_10645.jpg', '/home/nano/Desktop/images/16062025/18/44/image_16062025_18_45_05_9632.jpg', '/home/nano/Desktop/images/16062025/18/44/image_16062025_18_44_55_9622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/45/image_16062025_18_45_45_10618.jpg
/home/nano/Desktop/images/16062025/18/45/image_16062025_18_45_34_9629.jpg
/home/nano/Desktop/images/16062025/18/45/image_16062025_18_45_25_9619.jpg
/home/nano/Desktop/images/16062025/18/45/image_16062025_18_45_15_10645.jpg
/home/nano/Desktop/images/16062025/18/44/image_16062025_18_45_05_9632.jpg
/home/nano/Desktop/images/16062025/18/44/image_16062025_18_44_55_9622.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366583772","1366583781","1366583755","1366583740","1366583764","1366583737"],"photo_ids_order":["1366583737","1366583740","1366583755","1366583764","1366583772","1366583781"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4ce57f06b4d706e36fc3e6b7031cdbf9.jpg","text":"TemporaryFile(/tmp/multipartBody2319643642576034684asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092399431,"filename":"image_16062025_18_45_05_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e58f843a239cca3093d155f1c7b9bdf7.jpg","text":"TemporaryFile(/tmp/multipartBody2857284332051170520asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092399431,"filename":"image_16062025_18_44_55_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fae6b2fd06f5c9b6bcc4aaa1ec257ea4.jpg","text":"TemporaryFile(/tmp/multipartBody832878386961510888asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092399431,"filename":"image_16062025_18_45_25_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/21472c861da42d3925525c6040ea4298.jpg","text":"TemporaryFile(/tmp/multipartBody647700400858312123asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092399431,"filename":"image_16062025_18_45_34_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/127e18e47ec065d8f3c939628d50c5e2.jpg","text":"TemporaryFile(/tmp/multipartBody3329883380210132795asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092399431,"filename":"image_16062025_18_45_15_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2903c12eba99443ef7e8959679184d34.jpg","text":"TemporaryFile(/tmp/multipartBody4827552732133205683asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092399431,"filename":"image_16062025_18_45_45_10618.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366583755","file1":"1366583740","file0":"1366583737","file4":"1366583772","file5":"1366583781","file3":"1366583764"},"map_files_photo_id_array":[{"photo_id":"1366583781","filename":"file5"},{"photo_id":"1366583755","filename":"file2"},{"photo_id":"1366583772","filename":"file4"},{"photo_id":"1366583740","filename":"file1"},{"photo_id":"1366583737","filename":"file0"},{"photo_id":"1366583764","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366583772":["hashtag1","hashtag2"]},{"1366583781":["hashtag1","hashtag2"]},{"1366583755":["hashtag1","hashtag2"]},{"1366583740":["hashtag1","hashtag2"]},{"1366583764":["hashtag1","hashtag2"]},{"1366583737":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366583772, 1366583781, 1366583755, 1366583740, 1366583764, 1366583737)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 106.54469275474548 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:47:31.906129
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/47/image_16062025_18_47_45_9681.jpg', 2), ('/home/nano/Desktop/images/16062025/18/47/image_16062025_18_47_35_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/18/47/image_16062025_18_47_25_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/18/47/image_16062025_18_47_15_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/18/46/image_16062025_18_47_05_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/18/46/image_16062025_18_46_55_9656.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/47/image_16062025_18_47_45_9681.jpg', '/home/nano/Desktop/images/16062025/18/47/image_16062025_18_47_35_10639.jpg', '/home/nano/Desktop/images/16062025/18/47/image_16062025_18_47_25_9657.jpg', '/home/nano/Desktop/images/16062025/18/47/image_16062025_18_47_15_9623.jpg', '/home/nano/Desktop/images/16062025/18/46/image_16062025_18_47_05_10652.jpg', '/home/nano/Desktop/images/16062025/18/46/image_16062025_18_46_55_9656.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/47/image_16062025_18_47_45_9681.jpg
/home/nano/Desktop/images/16062025/18/47/image_16062025_18_47_35_10639.jpg
/home/nano/Desktop/images/16062025/18/47/image_16062025_18_47_25_9657.jpg
/home/nano/Desktop/images/16062025/18/47/image_16062025_18_47_15_9623.jpg
/home/nano/Desktop/images/16062025/18/46/image_16062025_18_47_05_10652.jpg
/home/nano/Desktop/images/16062025/18/46/image_16062025_18_46_55_9656.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 303.0162355899811 secondes ---
<Response [502]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>502 Proxy Error</title>\n</head><body>\n<h1>Proxy Error</h1>\n<p>The proxy server received an invalid\r\nresponse from an upstream server.<br />\r\nThe proxy server could not handle the request<p>Reason: <strong>Error reading from remote server</strong></p></p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
502
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:52:47.402211
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/52/image_16062025_18_52_45_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/18/52/image_16062025_18_52_25_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/18/52/image_16062025_18_52_15_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/18/51/image_16062025_18_52_04_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/18/51/image_16062025_18_51_55_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/18/51/image_16062025_18_51_45_10639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/52/image_16062025_18_52_45_9637.jpg', '/home/nano/Desktop/images/16062025/18/52/image_16062025_18_52_25_9620.jpg', '/home/nano/Desktop/images/16062025/18/52/image_16062025_18_52_15_10648.jpg', '/home/nano/Desktop/images/16062025/18/51/image_16062025_18_52_04_9623.jpg', '/home/nano/Desktop/images/16062025/18/51/image_16062025_18_51_55_9619.jpg', '/home/nano/Desktop/images/16062025/18/51/image_16062025_18_51_45_10639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/52/image_16062025_18_52_45_9637.jpg
/home/nano/Desktop/images/16062025/18/52/image_16062025_18_52_25_9620.jpg
/home/nano/Desktop/images/16062025/18/52/image_16062025_18_52_15_10648.jpg
/home/nano/Desktop/images/16062025/18/51/image_16062025_18_52_04_9623.jpg
/home/nano/Desktop/images/16062025/18/51/image_16062025_18_51_55_9619.jpg
/home/nano/Desktop/images/16062025/18/51/image_16062025_18_51_45_10639.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366583994","1366583987","1366583969","1366584005","1366583945","1366583935"],"photo_ids_order":["1366583935","1366583945","1366583969","1366583987","1366583994","1366584005"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1b4c11bd3f03068d21b813c66ec153b9.jpg","text":"TemporaryFile(/tmp/multipartBody3974181248317422550asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092861158,"filename":"image_16062025_18_51_55_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/02e5e7ee8197c4227303072353e452cd.jpg","text":"TemporaryFile(/tmp/multipartBody6577531548043870141asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092861158,"filename":"image_16062025_18_52_04_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/771b3ee6f3fadd7fba1b935e942e95e7.jpg","text":"TemporaryFile(/tmp/multipartBody1351689597555311654asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092861158,"filename":"image_16062025_18_52_15_10648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/954e904467c74feceb66c293bb27603e.jpg","text":"TemporaryFile(/tmp/multipartBody1028861340518920442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092861158,"filename":"image_16062025_18_51_45_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/58fd9b187b61fe8a769a5ae1d368299b.jpg","text":"TemporaryFile(/tmp/multipartBody7301451316245008084asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092861158,"filename":"image_16062025_18_52_25_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ec1390aee3839cf3fc4fa67e07791538.jpg","text":"TemporaryFile(/tmp/multipartBody1417199486608811422asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750092861158,"filename":"image_16062025_18_52_45_9637.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366583969","file1":"1366583945","file0":"1366583935","file4":"1366583994","file5":"1366584005","file3":"1366583987"},"map_files_photo_id_array":[{"photo_id":"1366584005","filename":"file5"},{"photo_id":"1366583969","filename":"file2"},{"photo_id":"1366583994","filename":"file4"},{"photo_id":"1366583945","filename":"file1"},{"photo_id":"1366583935","filename":"file0"},{"photo_id":"1366583987","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366583994":["hashtag1","hashtag2"]},{"1366583987":["hashtag1","hashtag2"]},{"1366583969":["hashtag1","hashtag2"]},{"1366584005":["hashtag1","hashtag2"]},{"1366583945":["hashtag1","hashtag2"]},{"1366583935":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366583994, 1366583987, 1366583969, 1366584005, 1366583945, 1366583935)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 197.23956680297852 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:56:16.811930
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/56/image_16062025_18_56_45_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/18/56/image_16062025_18_56_34_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/18/56/image_16062025_18_56_25_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/18/56/image_16062025_18_56_15_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/18/55/image_16062025_18_56_05_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/18/55/image_16062025_18_55_55_9611.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/56/image_16062025_18_56_45_10635.jpg', '/home/nano/Desktop/images/16062025/18/56/image_16062025_18_56_34_9617.jpg', '/home/nano/Desktop/images/16062025/18/56/image_16062025_18_56_25_9617.jpg', '/home/nano/Desktop/images/16062025/18/56/image_16062025_18_56_15_10643.jpg', '/home/nano/Desktop/images/16062025/18/55/image_16062025_18_56_05_9638.jpg', '/home/nano/Desktop/images/16062025/18/55/image_16062025_18_55_55_9611.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/56/image_16062025_18_56_45_10635.jpg
/home/nano/Desktop/images/16062025/18/56/image_16062025_18_56_34_9617.jpg
/home/nano/Desktop/images/16062025/18/56/image_16062025_18_56_25_9617.jpg
/home/nano/Desktop/images/16062025/18/56/image_16062025_18_56_15_10643.jpg
/home/nano/Desktop/images/16062025/18/55/image_16062025_18_56_05_9638.jpg
/home/nano/Desktop/images/16062025/18/55/image_16062025_18_55_55_9611.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 18:59:02.873990
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/18/58/image_16062025_18_58_45_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/18/58/image_16062025_18_58_35_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/18/58/image_16062025_18_58_25_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/18/58/image_16062025_18_58_15_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/18/57/image_16062025_18_58_05_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/18/57/image_16062025_18_57_54_9608.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/18/58/image_16062025_18_58_45_9618.jpg', '/home/nano/Desktop/images/16062025/18/58/image_16062025_18_58_35_9609.jpg', '/home/nano/Desktop/images/16062025/18/58/image_16062025_18_58_25_10636.jpg', '/home/nano/Desktop/images/16062025/18/58/image_16062025_18_58_15_9609.jpg', '/home/nano/Desktop/images/16062025/18/57/image_16062025_18_58_05_10642.jpg', '/home/nano/Desktop/images/16062025/18/57/image_16062025_18_57_54_9608.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/18/58/image_16062025_18_58_45_9618.jpg
/home/nano/Desktop/images/16062025/18/58/image_16062025_18_58_35_9609.jpg
/home/nano/Desktop/images/16062025/18/58/image_16062025_18_58_25_10636.jpg
/home/nano/Desktop/images/16062025/18/58/image_16062025_18_58_15_9609.jpg
/home/nano/Desktop/images/16062025/18/57/image_16062025_18_58_05_10642.jpg
/home/nano/Desktop/images/16062025/18/57/image_16062025_18_57_54_9608.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366584867","1366584848","1366584857","1366584877","1366584800","1366584832"],"photo_ids_order":["1366584800","1366584832","1366584848","1366584857","1366584867","1366584877"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e9e4880fca9ee8dab0eeebb4f2f90e2a.jpg","text":"TemporaryFile(/tmp/multipartBody6823278692033357220asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093240209,"filename":"image_16062025_18_58_05_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/020f89ec634b09c1947c34c98c4bff92.jpg","text":"TemporaryFile(/tmp/multipartBody7139222853953015025asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093240209,"filename":"image_16062025_18_58_25_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f5b33373bd68b06c309f3b28281ecd9e.jpg","text":"TemporaryFile(/tmp/multipartBody7130540305360332048asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093240209,"filename":"image_16062025_18_58_15_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/81595c87ce12ca27f3d8d0aa29ec140b.jpg","text":"TemporaryFile(/tmp/multipartBody7854233172055532980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093240209,"filename":"image_16062025_18_57_54_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/47b5dadd208a74aa5ff8d4a4ac04528e.jpg","text":"TemporaryFile(/tmp/multipartBody6650471232547759043asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093240209,"filename":"image_16062025_18_58_45_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/438441560f063963a3916f0997c4349b.jpg","text":"TemporaryFile(/tmp/multipartBody8766779586726638816asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093240209,"filename":"image_16062025_18_58_35_9609.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366584848","file1":"1366584832","file0":"1366584800","file4":"1366584867","file5":"1366584877","file3":"1366584857"},"map_files_photo_id_array":[{"photo_id":"1366584877","filename":"file5"},{"photo_id":"1366584848","filename":"file2"},{"photo_id":"1366584867","filename":"file4"},{"photo_id":"1366584832","filename":"file1"},{"photo_id":"1366584800","filename":"file0"},{"photo_id":"1366584857","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366584867":["hashtag1","hashtag2"]},{"1366584848":["hashtag1","hashtag2"]},{"1366584857":["hashtag1","hashtag2"]},{"1366584877":["hashtag1","hashtag2"]},{"1366584800":["hashtag1","hashtag2"]},{"1366584832":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366584867, 1366584848, 1366584857, 1366584877, 1366584800, 1366584832)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 204.3514425754547 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:02:32.377547
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/02/image_16062025_19_02_45_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/19/02/image_16062025_19_02_35_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/19/02/image_16062025_19_02_25_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/19/02/image_16062025_19_02_15_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/19/01/image_16062025_19_02_05_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/19/01/image_16062025_19_01_55_10620.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/02/image_16062025_19_02_45_9633.jpg', '/home/nano/Desktop/images/16062025/19/02/image_16062025_19_02_35_9628.jpg', '/home/nano/Desktop/images/16062025/19/02/image_16062025_19_02_25_10640.jpg', '/home/nano/Desktop/images/16062025/19/02/image_16062025_19_02_15_9627.jpg', '/home/nano/Desktop/images/16062025/19/01/image_16062025_19_02_05_9630.jpg', '/home/nano/Desktop/images/16062025/19/01/image_16062025_19_01_55_10620.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/02/image_16062025_19_02_45_9633.jpg
/home/nano/Desktop/images/16062025/19/02/image_16062025_19_02_35_9628.jpg
/home/nano/Desktop/images/16062025/19/02/image_16062025_19_02_25_10640.jpg
/home/nano/Desktop/images/16062025/19/02/image_16062025_19_02_15_9627.jpg
/home/nano/Desktop/images/16062025/19/01/image_16062025_19_02_05_9630.jpg
/home/nano/Desktop/images/16062025/19/01/image_16062025_19_01_55_10620.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366585317","1366584948","1366585160","1366585390","1366585051","1366584897"],"photo_ids_order":["1366584897","1366584948","1366585051","1366585160","1366585317","1366585390"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/11808a72beb8c1256bb36ef0319a47bc.jpg","text":"TemporaryFile(/tmp/multipartBody5638059360121925239asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093417499,"filename":"image_16062025_19_02_05_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/553d52e4ad0ff2d7fd6b6d2a12a6ecb8.jpg","text":"TemporaryFile(/tmp/multipartBody3255064854557896980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093417499,"filename":"image_16062025_19_02_35_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0f9bf3977e1ee8b15bbdacb6121abecd.jpg","text":"TemporaryFile(/tmp/multipartBody2154852101156973836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093417499,"filename":"image_16062025_19_02_15_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/10d234b7a6f7ba8836e2dd36bb601459.jpg","text":"TemporaryFile(/tmp/multipartBody2145188664296348672asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093417499,"filename":"image_16062025_19_01_55_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9e79e039168105f9022eadd4cdf41b6f.jpg","text":"TemporaryFile(/tmp/multipartBody2175245616476994913asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093417499,"filename":"image_16062025_19_02_25_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/380147ca857010b6c18c224785b4f4b2.jpg","text":"TemporaryFile(/tmp/multipartBody4386725454896540375asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093417499,"filename":"image_16062025_19_02_45_9633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366585051","file1":"1366584948","file0":"1366584897","file4":"1366585317","file5":"1366585390","file3":"1366585160"},"map_files_photo_id_array":[{"photo_id":"1366585390","filename":"file5"},{"photo_id":"1366585051","filename":"file2"},{"photo_id":"1366585317","filename":"file4"},{"photo_id":"1366584948","filename":"file1"},{"photo_id":"1366584897","filename":"file0"},{"photo_id":"1366585160","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366585317":["hashtag1","hashtag2"]},{"1366584948":["hashtag1","hashtag2"]},{"1366585160":["hashtag1","hashtag2"]},{"1366585390":["hashtag1","hashtag2"]},{"1366585051":["hashtag1","hashtag2"]},{"1366584897":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366585317, 1366584948, 1366585160, 1366585390, 1366585051, 1366584897)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 117.33825182914734 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:04:32.680150
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/04/image_16062025_19_04_45_10620.jpg', 2), ('/home/nano/Desktop/images/16062025/19/04/image_16062025_19_04_34_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/19/04/image_16062025_19_04_25_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/19/04/image_16062025_19_04_15_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/19/03/image_16062025_19_04_05_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/19/03/image_16062025_19_03_45_10617.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/04/image_16062025_19_04_45_10620.jpg', '/home/nano/Desktop/images/16062025/19/04/image_16062025_19_04_34_9626.jpg', '/home/nano/Desktop/images/16062025/19/04/image_16062025_19_04_25_9627.jpg', '/home/nano/Desktop/images/16062025/19/04/image_16062025_19_04_15_10637.jpg', '/home/nano/Desktop/images/16062025/19/03/image_16062025_19_04_05_9627.jpg', '/home/nano/Desktop/images/16062025/19/03/image_16062025_19_03_45_10617.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/04/image_16062025_19_04_45_10620.jpg
/home/nano/Desktop/images/16062025/19/04/image_16062025_19_04_34_9626.jpg
/home/nano/Desktop/images/16062025/19/04/image_16062025_19_04_25_9627.jpg
/home/nano/Desktop/images/16062025/19/04/image_16062025_19_04_15_10637.jpg
/home/nano/Desktop/images/16062025/19/03/image_16062025_19_04_05_9627.jpg
/home/nano/Desktop/images/16062025/19/03/image_16062025_19_03_45_10617.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366585748","1366585640","1366585634","1366585849","1366585627","1366585804"],"photo_ids_order":["1366585627","1366585634","1366585640","1366585748","1366585804","1366585849"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7b805bbd2bd367edf893b1f9fafd9e26.jpg","text":"TemporaryFile(/tmp/multipartBody2335429954685029547asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093535462,"filename":"image_16062025_19_04_15_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/96b1dc857b203364f1408f64c7fafd6f.jpg","text":"TemporaryFile(/tmp/multipartBody1499749812990224000asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093535462,"filename":"image_16062025_19_04_25_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b019d4f176c136914528283992984230.jpg","text":"TemporaryFile(/tmp/multipartBody8031698264414527570asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093535462,"filename":"image_16062025_19_04_34_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fd331054e0a44f057896e86aa27752ca.jpg","text":"TemporaryFile(/tmp/multipartBody1090394123041798839asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093535462,"filename":"image_16062025_19_03_45_10617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/805c608941c893932d3c929e501e97c7.jpg","text":"TemporaryFile(/tmp/multipartBody7008171369595405903asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093535462,"filename":"image_16062025_19_04_45_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/172af61eda11e8c52499737f00dfead1.jpg","text":"TemporaryFile(/tmp/multipartBody6811309727903882213asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093535462,"filename":"image_16062025_19_04_05_9627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366585640","file1":"1366585634","file0":"1366585627","file4":"1366585804","file5":"1366585849","file3":"1366585748"},"map_files_photo_id_array":[{"photo_id":"1366585849","filename":"file5"},{"photo_id":"1366585640","filename":"file2"},{"photo_id":"1366585804","filename":"file4"},{"photo_id":"1366585634","filename":"file1"},{"photo_id":"1366585627","filename":"file0"},{"photo_id":"1366585748","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366585748":["hashtag1","hashtag2"]},{"1366585640":["hashtag1","hashtag2"]},{"1366585634":["hashtag1","hashtag2"]},{"1366585849":["hashtag1","hashtag2"]},{"1366585627":["hashtag1","hashtag2"]},{"1366585804":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366585748, 1366585640, 1366585634, 1366585849, 1366585627, 1366585804)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 92.70804500579834 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:06:16.874749
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/06/image_16062025_19_06_44_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/19/06/image_16062025_19_06_25_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/19/06/image_16062025_19_06_15_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/19/05/image_16062025_19_06_05_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/19/05/image_16062025_19_05_55_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/19/05/image_16062025_19_05_45_9609.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/06/image_16062025_19_06_44_9610.jpg', '/home/nano/Desktop/images/16062025/19/06/image_16062025_19_06_25_10628.jpg', '/home/nano/Desktop/images/16062025/19/06/image_16062025_19_06_15_9631.jpg', '/home/nano/Desktop/images/16062025/19/05/image_16062025_19_06_05_9627.jpg', '/home/nano/Desktop/images/16062025/19/05/image_16062025_19_05_55_10625.jpg', '/home/nano/Desktop/images/16062025/19/05/image_16062025_19_05_45_9609.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/06/image_16062025_19_06_44_9610.jpg
/home/nano/Desktop/images/16062025/19/06/image_16062025_19_06_25_10628.jpg
/home/nano/Desktop/images/16062025/19/06/image_16062025_19_06_15_9631.jpg
/home/nano/Desktop/images/16062025/19/05/image_16062025_19_06_05_9627.jpg
/home/nano/Desktop/images/16062025/19/05/image_16062025_19_05_55_10625.jpg
/home/nano/Desktop/images/16062025/19/05/image_16062025_19_05_45_9609.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366586141","1366586207","1366586185","1366586193","1366586082","1366586198"],"photo_ids_order":["1366586082","1366586141","1366586185","1366586193","1366586198","1366586207"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/30e1351b0c2cba18af9390e00156e89f.jpg","text":"TemporaryFile(/tmp/multipartBody2597190848246506761asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093640250,"filename":"image_16062025_19_06_25_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/72b42de0d0363c7c9160b9604aff4098.jpg","text":"TemporaryFile(/tmp/multipartBody4067423525817904692asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093640250,"filename":"image_16062025_19_05_45_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/325db18fbdc924994da04b8f6b01f108.jpg","text":"TemporaryFile(/tmp/multipartBody1807025243272513742asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093640250,"filename":"image_16062025_19_06_15_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dcbf30c4f0f9bb66ba07130850dd9596.jpg","text":"TemporaryFile(/tmp/multipartBody2449840231148209428asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093640250,"filename":"image_16062025_19_06_05_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1f9603ecf218c348ac6def03a9251e4c.jpg","text":"TemporaryFile(/tmp/multipartBody5805488793067942783asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093640250,"filename":"image_16062025_19_06_44_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/09e840ba190a22b0eac5e972a3140fbb.jpg","text":"TemporaryFile(/tmp/multipartBody2055141394352525102asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093640250,"filename":"image_16062025_19_05_55_10625.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366586185","file1":"1366586141","file0":"1366586082","file4":"1366586198","file5":"1366586207","file3":"1366586193"},"map_files_photo_id_array":[{"photo_id":"1366586207","filename":"file5"},{"photo_id":"1366586185","filename":"file2"},{"photo_id":"1366586198","filename":"file4"},{"photo_id":"1366586141","filename":"file1"},{"photo_id":"1366586082","filename":"file0"},{"photo_id":"1366586193","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366586141":["hashtag1","hashtag2"]},{"1366586207":["hashtag1","hashtag2"]},{"1366586185":["hashtag1","hashtag2"]},{"1366586193":["hashtag1","hashtag2"]},{"1366586082":["hashtag1","hashtag2"]},{"1366586198":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366586141, 1366586207, 1366586185, 1366586193, 1366586082, 1366586198)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 113.04807829856873 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:08:17.064039
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/08/image_16062025_19_08_35_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/19/08/image_16062025_19_08_25_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/19/08/image_16062025_19_08_15_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/19/07/image_16062025_19_08_04_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/19/07/image_16062025_19_07_55_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/19/07/image_16062025_19_07_45_10620.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/08/image_16062025_19_08_35_10626.jpg', '/home/nano/Desktop/images/16062025/19/08/image_16062025_19_08_25_9611.jpg', '/home/nano/Desktop/images/16062025/19/08/image_16062025_19_08_15_10643.jpg', '/home/nano/Desktop/images/16062025/19/07/image_16062025_19_08_04_9608.jpg', '/home/nano/Desktop/images/16062025/19/07/image_16062025_19_07_55_9617.jpg', '/home/nano/Desktop/images/16062025/19/07/image_16062025_19_07_45_10620.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/08/image_16062025_19_08_35_10626.jpg
/home/nano/Desktop/images/16062025/19/08/image_16062025_19_08_25_9611.jpg
/home/nano/Desktop/images/16062025/19/08/image_16062025_19_08_15_10643.jpg
/home/nano/Desktop/images/16062025/19/07/image_16062025_19_08_04_9608.jpg
/home/nano/Desktop/images/16062025/19/07/image_16062025_19_07_55_9617.jpg
/home/nano/Desktop/images/16062025/19/07/image_16062025_19_07_45_10620.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366586228","1366586266","1366586269","1366586254","1366586257","1366586244"],"photo_ids_order":["1366586228","1366586244","1366586254","1366586257","1366586266","1366586269"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/94a7249a31c05e17525946c2a236bbd6.jpg","text":"TemporaryFile(/tmp/multipartBody220382034010480675asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093762667,"filename":"image_16062025_19_08_35_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d383a8e7a33788def0a5b149f67761f8.jpg","text":"TemporaryFile(/tmp/multipartBody7739625415076821058asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093762667,"filename":"image_16062025_19_07_55_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/71024bab371fcbafc8c741dff3fd7b31.jpg","text":"TemporaryFile(/tmp/multipartBody4417427993105751193asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093762667,"filename":"image_16062025_19_07_45_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f884a783fb72a8043f82ce3adbc59b9b.jpg","text":"TemporaryFile(/tmp/multipartBody3087373125007885046asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093762667,"filename":"image_16062025_19_08_15_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ba54af1c0bb2d983ab9a22431aae63ed.jpg","text":"TemporaryFile(/tmp/multipartBody3538314945085830582asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093762667,"filename":"image_16062025_19_08_04_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6f11db332b05ad77c6a964960a74b454.jpg","text":"TemporaryFile(/tmp/multipartBody4760933347897463938asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093762667,"filename":"image_16062025_19_08_25_9611.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366586254","file1":"1366586244","file0":"1366586228","file4":"1366586266","file5":"1366586269","file3":"1366586257"},"map_files_photo_id_array":[{"photo_id":"1366586269","filename":"file5"},{"photo_id":"1366586254","filename":"file2"},{"photo_id":"1366586266","filename":"file4"},{"photo_id":"1366586244","filename":"file1"},{"photo_id":"1366586228","filename":"file0"},{"photo_id":"1366586257","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366586228":["hashtag1","hashtag2"]},{"1366586266":["hashtag1","hashtag2"]},{"1366586269":["hashtag1","hashtag2"]},{"1366586254":["hashtag1","hashtag2"]},{"1366586257":["hashtag1","hashtag2"]},{"1366586244":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366586228, 1366586266, 1366586269, 1366586254, 1366586257, 1366586244)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 93.24108409881592 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:10:02.911501
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/09/image_16062025_19_09_45_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/19/09/image_16062025_19_09_35_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/19/09/image_16062025_19_09_24_9627.jpg', 2), ('/home/nano/Desktop/images/16062025/19/08/image_16062025_19_09_05_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/19/08/image_16062025_19_08_45_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/19/07/image_16062025_19_07_35_9609.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/09/image_16062025_19_09_45_9608.jpg', '/home/nano/Desktop/images/16062025/19/09/image_16062025_19_09_35_10623.jpg', '/home/nano/Desktop/images/16062025/19/09/image_16062025_19_09_24_9627.jpg', '/home/nano/Desktop/images/16062025/19/08/image_16062025_19_09_05_10635.jpg', '/home/nano/Desktop/images/16062025/19/08/image_16062025_19_08_45_9617.jpg', '/home/nano/Desktop/images/16062025/19/07/image_16062025_19_07_35_9609.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/09/image_16062025_19_09_45_9608.jpg
/home/nano/Desktop/images/16062025/19/09/image_16062025_19_09_35_10623.jpg
/home/nano/Desktop/images/16062025/19/09/image_16062025_19_09_24_9627.jpg
/home/nano/Desktop/images/16062025/19/08/image_16062025_19_09_05_10635.jpg
/home/nano/Desktop/images/16062025/19/08/image_16062025_19_08_45_9617.jpg
/home/nano/Desktop/images/16062025/19/07/image_16062025_19_07_35_9609.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366586596","1366586398","1366586362","1366586536","1366586439","1366586319"],"photo_ids_order":["1366586319","1366586362","1366586398","1366586439","1366586536","1366586596"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/45f782f0f7a29065fe1d003f2b8ba2a5.jpg","text":"TemporaryFile(/tmp/multipartBody1171067632907225399asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093872936,"filename":"image_16062025_19_07_35_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/10c8e4d61bff798802380b405371dfbc.jpg","text":"TemporaryFile(/tmp/multipartBody6911809267705864184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093872936,"filename":"image_16062025_19_09_24_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2043823e66cd697efe369b0629177212.jpg","text":"TemporaryFile(/tmp/multipartBody1449100574835257074asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093872936,"filename":"image_16062025_19_09_35_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d803ada978dddf53155475d3a0d2eb9e.jpg","text":"TemporaryFile(/tmp/multipartBody8681692085118696043asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093872936,"filename":"image_16062025_19_08_45_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f47827972f25f8871a13da116135c12d.jpg","text":"TemporaryFile(/tmp/multipartBody831004918175680646asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093872936,"filename":"image_16062025_19_09_05_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8b724163086c1fb402ed8fec6136dd4a.jpg","text":"TemporaryFile(/tmp/multipartBody8015335849015316558asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093872936,"filename":"image_16062025_19_09_45_9608.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366586398","file1":"1366586362","file0":"1366586319","file4":"1366586536","file5":"1366586596","file3":"1366586439"},"map_files_photo_id_array":[{"photo_id":"1366586596","filename":"file5"},{"photo_id":"1366586398","filename":"file2"},{"photo_id":"1366586536","filename":"file4"},{"photo_id":"1366586362","filename":"file1"},{"photo_id":"1366586319","filename":"file0"},{"photo_id":"1366586439","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366586596":["hashtag1","hashtag2"]},{"1366586398":["hashtag1","hashtag2"]},{"1366586362":["hashtag1","hashtag2"]},{"1366586536":["hashtag1","hashtag2"]},{"1366586439":["hashtag1","hashtag2"]},{"1366586319":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366586596, 1366586398, 1366586362, 1366586536, 1366586439, 1366586319)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 77.32312035560608 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:11:32.406593
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/11/image_16062025_19_11_35_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/19/11/image_16062025_19_11_25_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/19/11/image_16062025_19_11_15_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/19/10/image_16062025_19_11_05_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/19/10/image_16062025_19_10_55_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/19/10/image_16062025_19_10_44_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/11/image_16062025_19_11_35_9612.jpg', '/home/nano/Desktop/images/16062025/19/11/image_16062025_19_11_25_9609.jpg', '/home/nano/Desktop/images/16062025/19/11/image_16062025_19_11_15_10647.jpg', '/home/nano/Desktop/images/16062025/19/10/image_16062025_19_11_05_9628.jpg', '/home/nano/Desktop/images/16062025/19/10/image_16062025_19_10_55_10635.jpg', '/home/nano/Desktop/images/16062025/19/10/image_16062025_19_10_44_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/11/image_16062025_19_11_35_9612.jpg
/home/nano/Desktop/images/16062025/19/11/image_16062025_19_11_25_9609.jpg
/home/nano/Desktop/images/16062025/19/11/image_16062025_19_11_15_10647.jpg
/home/nano/Desktop/images/16062025/19/10/image_16062025_19_11_05_9628.jpg
/home/nano/Desktop/images/16062025/19/10/image_16062025_19_10_55_10635.jpg
/home/nano/Desktop/images/16062025/19/10/image_16062025_19_10_44_9610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366586831","1366586900","1366586803","1366586892","1366586853","1366586820"],"photo_ids_order":["1366586803","1366586820","1366586831","1366586853","1366586892","1366586900"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0a19307fce33451d0b7703a386d2ef2c.jpg","text":"TemporaryFile(/tmp/multipartBody1732976453370701806asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093955866,"filename":"image_16062025_19_11_15_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/590380a5c1588d09505c820e232b4779.jpg","text":"TemporaryFile(/tmp/multipartBody8923631168726810931asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093955866,"filename":"image_16062025_19_10_44_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4a70dd0679e80e705b0a9d460e32dcdd.jpg","text":"TemporaryFile(/tmp/multipartBody8225071187621547641asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093955866,"filename":"image_16062025_19_11_35_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/39e795843f3baba4b8243aabbed7d28e.jpg","text":"TemporaryFile(/tmp/multipartBody6951776001836034735asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093955866,"filename":"image_16062025_19_10_55_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6d3db0f0389ab77ca7922e5c510c615e.jpg","text":"TemporaryFile(/tmp/multipartBody5298578311158726804asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093955866,"filename":"image_16062025_19_11_05_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0a97581c06ccbf212d611508f1432413.jpg","text":"TemporaryFile(/tmp/multipartBody8926363071462030279asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750093955866,"filename":"image_16062025_19_11_25_9609.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366586831","file1":"1366586820","file0":"1366586803","file4":"1366586892","file5":"1366586900","file3":"1366586853"},"map_files_photo_id_array":[{"photo_id":"1366586900","filename":"file5"},{"photo_id":"1366586831","filename":"file2"},{"photo_id":"1366586892","filename":"file4"},{"photo_id":"1366586820","filename":"file1"},{"photo_id":"1366586803","filename":"file0"},{"photo_id":"1366586853","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366586831":["hashtag1","hashtag2"]},{"1366586900":["hashtag1","hashtag2"]},{"1366586803":["hashtag1","hashtag2"]},{"1366586892":["hashtag1","hashtag2"]},{"1366586853":["hashtag1","hashtag2"]},{"1366586820":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366586831, 1366586900, 1366586803, 1366586892, 1366586853, 1366586820)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 90.26358556747437 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:13:17.564890
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/13/image_16062025_19_13_45_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/19/13/image_16062025_19_13_35_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/19/13/image_16062025_19_13_25_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/19/13/image_16062025_19_13_15_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/19/12/image_16062025_19_13_05_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/19/12/image_16062025_19_12_54_9608.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/13/image_16062025_19_13_45_9609.jpg', '/home/nano/Desktop/images/16062025/19/13/image_16062025_19_13_35_9613.jpg', '/home/nano/Desktop/images/16062025/19/13/image_16062025_19_13_25_10619.jpg', '/home/nano/Desktop/images/16062025/19/13/image_16062025_19_13_15_9618.jpg', '/home/nano/Desktop/images/16062025/19/12/image_16062025_19_13_05_10634.jpg', '/home/nano/Desktop/images/16062025/19/12/image_16062025_19_12_54_9608.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/13/image_16062025_19_13_45_9609.jpg
/home/nano/Desktop/images/16062025/19/13/image_16062025_19_13_35_9613.jpg
/home/nano/Desktop/images/16062025/19/13/image_16062025_19_13_25_10619.jpg
/home/nano/Desktop/images/16062025/19/13/image_16062025_19_13_15_9618.jpg
/home/nano/Desktop/images/16062025/19/12/image_16062025_19_13_05_10634.jpg
/home/nano/Desktop/images/16062025/19/12/image_16062025_19_12_54_9608.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366586971","1366586950","1366586962","1366586979","1366586954","1366586948"],"photo_ids_order":["1366586948","1366586950","1366586954","1366586962","1366586971","1366586979"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e39b7bf9770301c17cafdbb3227d87fe.jpg","text":"TemporaryFile(/tmp/multipartBody8685322611933817133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094059673,"filename":"image_16062025_19_13_05_10634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3042c872c987cc9503644572e7e774bc.jpg","text":"TemporaryFile(/tmp/multipartBody4070386420523386843asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094059673,"filename":"image_16062025_19_13_35_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b39476433f821753faf9ce6ff8674512.jpg","text":"TemporaryFile(/tmp/multipartBody1836854611351221165asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094059673,"filename":"image_16062025_19_13_15_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7a4cb29596512f15f6b11d98bfe746c7.jpg","text":"TemporaryFile(/tmp/multipartBody4234846162288911895asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094059673,"filename":"image_16062025_19_12_54_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e7e1b6997d6ca5392733531493be546b.jpg","text":"TemporaryFile(/tmp/multipartBody1524976346521723888asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094059673,"filename":"image_16062025_19_13_25_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6964deebfb320df6a087e8f2af64af54.jpg","text":"TemporaryFile(/tmp/multipartBody6909104643878095890asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094059673,"filename":"image_16062025_19_13_45_9609.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366586954","file1":"1366586950","file0":"1366586948","file4":"1366586971","file5":"1366586979","file3":"1366586962"},"map_files_photo_id_array":[{"photo_id":"1366586979","filename":"file5"},{"photo_id":"1366586954","filename":"file2"},{"photo_id":"1366586971","filename":"file4"},{"photo_id":"1366586950","filename":"file1"},{"photo_id":"1366586948","filename":"file0"},{"photo_id":"1366586962","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366586971":["hashtag1","hashtag2"]},{"1366586950":["hashtag1","hashtag2"]},{"1366586962":["hashtag1","hashtag2"]},{"1366586979":["hashtag1","hashtag2"]},{"1366586954":["hashtag1","hashtag2"]},{"1366586948":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366586971, 1366586950, 1366586962, 1366586979, 1366586954, 1366586948)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 75.4421272277832 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:14:47.720908
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/14/image_16062025_19_14_45_10620.jpg', 2), ('/home/nano/Desktop/images/16062025/19/14/image_16062025_19_14_35_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/19/14/image_16062025_19_14_25_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/19/14/image_16062025_19_14_14_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/19/13/image_16062025_19_14_05_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/19/13/image_16062025_19_13_55_10626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/14/image_16062025_19_14_45_10620.jpg', '/home/nano/Desktop/images/16062025/19/14/image_16062025_19_14_35_9615.jpg', '/home/nano/Desktop/images/16062025/19/14/image_16062025_19_14_25_10624.jpg', '/home/nano/Desktop/images/16062025/19/14/image_16062025_19_14_14_9639.jpg', '/home/nano/Desktop/images/16062025/19/13/image_16062025_19_14_05_9621.jpg', '/home/nano/Desktop/images/16062025/19/13/image_16062025_19_13_55_10626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/14/image_16062025_19_14_45_10620.jpg
/home/nano/Desktop/images/16062025/19/14/image_16062025_19_14_35_9615.jpg
/home/nano/Desktop/images/16062025/19/14/image_16062025_19_14_25_10624.jpg
/home/nano/Desktop/images/16062025/19/14/image_16062025_19_14_14_9639.jpg
/home/nano/Desktop/images/16062025/19/13/image_16062025_19_14_05_9621.jpg
/home/nano/Desktop/images/16062025/19/13/image_16062025_19_13_55_10626.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366587064","1366587061","1366587028","1366587048","1366587006","1366587018"],"photo_ids_order":["1366587006","1366587018","1366587028","1366587048","1366587061","1366587064"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f8d9661d9e2086d074574b9986207f99.jpg","text":"TemporaryFile(/tmp/multipartBody6613277730533637610asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094150709,"filename":"image_16062025_19_13_55_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fb4e16ab6f22f9134b4f0d9686d5f7d9.jpg","text":"TemporaryFile(/tmp/multipartBody5239253739622353104asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094150709,"filename":"image_16062025_19_14_05_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6b857d840f296ce25187ba14bd1292fe.jpg","text":"TemporaryFile(/tmp/multipartBody4927979531719768945asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094150709,"filename":"image_16062025_19_14_25_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a0eb7d9fd0e3ee536b10bb4da9f6c3ab.jpg","text":"TemporaryFile(/tmp/multipartBody2655111262956630709asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094150709,"filename":"image_16062025_19_14_14_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7cf3d193cb6326b955b055da3ce8ab46.jpg","text":"TemporaryFile(/tmp/multipartBody1679816226180501367asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094150709,"filename":"image_16062025_19_14_45_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a4bf5b43c5cae8be792e3d984969da2b.jpg","text":"TemporaryFile(/tmp/multipartBody197955086793973994asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094150709,"filename":"image_16062025_19_14_35_9615.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366587028","file1":"1366587018","file0":"1366587006","file4":"1366587061","file5":"1366587064","file3":"1366587048"},"map_files_photo_id_array":[{"photo_id":"1366587064","filename":"file5"},{"photo_id":"1366587028","filename":"file2"},{"photo_id":"1366587061","filename":"file4"},{"photo_id":"1366587018","filename":"file1"},{"photo_id":"1366587006","filename":"file0"},{"photo_id":"1366587048","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366587064":["hashtag1","hashtag2"]},{"1366587061":["hashtag1","hashtag2"]},{"1366587028":["hashtag1","hashtag2"]},{"1366587048":["hashtag1","hashtag2"]},{"1366587006":["hashtag1","hashtag2"]},{"1366587018":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366587064, 1366587061, 1366587028, 1366587048, 1366587006, 1366587018)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 65.68132495880127 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:16:02.545150
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/15/image_16062025_19_15_55_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/19/15/image_16062025_19_15_34_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/19/15/image_16062025_19_15_25_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/19/15/image_16062025_19_15_15_10669.jpg', 2), ('/home/nano/Desktop/images/16062025/19/14/image_16062025_19_15_05_9663.jpg', 2), ('/home/nano/Desktop/images/16062025/19/14/image_16062025_19_14_55_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/15/image_16062025_19_15_55_9614.jpg', '/home/nano/Desktop/images/16062025/19/15/image_16062025_19_15_34_9616.jpg', '/home/nano/Desktop/images/16062025/19/15/image_16062025_19_15_25_9610.jpg', '/home/nano/Desktop/images/16062025/19/15/image_16062025_19_15_15_10669.jpg', '/home/nano/Desktop/images/16062025/19/14/image_16062025_19_15_05_9663.jpg', '/home/nano/Desktop/images/16062025/19/14/image_16062025_19_14_55_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/15/image_16062025_19_15_55_9614.jpg
/home/nano/Desktop/images/16062025/19/15/image_16062025_19_15_34_9616.jpg
/home/nano/Desktop/images/16062025/19/15/image_16062025_19_15_25_9610.jpg
/home/nano/Desktop/images/16062025/19/15/image_16062025_19_15_15_10669.jpg
/home/nano/Desktop/images/16062025/19/14/image_16062025_19_15_05_9663.jpg
/home/nano/Desktop/images/16062025/19/14/image_16062025_19_14_55_9612.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 2.582120895385742 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:16:16.924653
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/16/image_16062025_19_16_45_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/19/16/image_16062025_19_16_35_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/19/16/image_16062025_19_16_25_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/19/15/image_16062025_19_16_05_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/19/15/image_16062025_19_15_55_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/19/15/image_16062025_19_15_45_10625.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/16/image_16062025_19_16_45_9608.jpg', '/home/nano/Desktop/images/16062025/19/16/image_16062025_19_16_35_10619.jpg', '/home/nano/Desktop/images/16062025/19/16/image_16062025_19_16_25_9613.jpg', '/home/nano/Desktop/images/16062025/19/15/image_16062025_19_16_05_10639.jpg', '/home/nano/Desktop/images/16062025/19/15/image_16062025_19_15_55_9614.jpg', '/home/nano/Desktop/images/16062025/19/15/image_16062025_19_15_45_10625.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/16/image_16062025_19_16_45_9608.jpg
/home/nano/Desktop/images/16062025/19/16/image_16062025_19_16_35_10619.jpg
/home/nano/Desktop/images/16062025/19/16/image_16062025_19_16_25_9613.jpg
/home/nano/Desktop/images/16062025/19/15/image_16062025_19_16_05_10639.jpg
/home/nano/Desktop/images/16062025/19/15/image_16062025_19_15_55_9614.jpg
/home/nano/Desktop/images/16062025/19/15/image_16062025_19_15_45_10625.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366587148","1366587133","1366587153","1366587156","1366587138","1366587126"],"photo_ids_order":["1366587126","1366587133","1366587138","1366587148","1366587153","1366587156"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2a0a10f91f361366c1b5f4a282044048.jpg","text":"TemporaryFile(/tmp/multipartBody2788465645495526953asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094239016,"filename":"image_16062025_19_16_05_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d038762472748c0ec802995ab499c3cb.jpg","text":"TemporaryFile(/tmp/multipartBody545304661299167346asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094239016,"filename":"image_16062025_19_16_35_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/88232bc42863b1f999a26acbb741290c.jpg","text":"TemporaryFile(/tmp/multipartBody1711523527294440613asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094239016,"filename":"image_16062025_19_15_55_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/191a685bd67b3264d7dab17ae4bf9801.jpg","text":"TemporaryFile(/tmp/multipartBody7384096206485000195asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094239016,"filename":"image_16062025_19_15_45_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0cb425e051974ef2d0134ecfd01f11c8.jpg","text":"TemporaryFile(/tmp/multipartBody1346809662577298635asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094239016,"filename":"image_16062025_19_16_25_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/55e476bc858dce14198967d5f673c54a.jpg","text":"TemporaryFile(/tmp/multipartBody8376021755796559247asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094239016,"filename":"image_16062025_19_16_45_9608.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366587138","file1":"1366587133","file0":"1366587126","file4":"1366587153","file5":"1366587156","file3":"1366587148"},"map_files_photo_id_array":[{"photo_id":"1366587156","filename":"file5"},{"photo_id":"1366587138","filename":"file2"},{"photo_id":"1366587153","filename":"file4"},{"photo_id":"1366587133","filename":"file1"},{"photo_id":"1366587126","filename":"file0"},{"photo_id":"1366587148","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366587148":["hashtag1","hashtag2"]},{"1366587133":["hashtag1","hashtag2"]},{"1366587153":["hashtag1","hashtag2"]},{"1366587156":["hashtag1","hashtag2"]},{"1366587138":["hashtag1","hashtag2"]},{"1366587126":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366587148, 1366587133, 1366587153, 1366587156, 1366587138, 1366587126)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 70.7978880405426 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:17:32.025570
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/17/image_16062025_19_17_45_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/19/17/image_16062025_19_17_35_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/19/17/image_16062025_19_17_25_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/19/17/image_16062025_19_17_15_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/19/16/image_16062025_19_17_05_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/19/16/image_16062025_19_16_54_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/17/image_16062025_19_17_45_9618.jpg', '/home/nano/Desktop/images/16062025/19/17/image_16062025_19_17_35_9608.jpg', '/home/nano/Desktop/images/16062025/19/17/image_16062025_19_17_25_10643.jpg', '/home/nano/Desktop/images/16062025/19/17/image_16062025_19_17_15_9612.jpg', '/home/nano/Desktop/images/16062025/19/16/image_16062025_19_17_05_10627.jpg', '/home/nano/Desktop/images/16062025/19/16/image_16062025_19_16_54_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/17/image_16062025_19_17_45_9618.jpg
/home/nano/Desktop/images/16062025/19/17/image_16062025_19_17_35_9608.jpg
/home/nano/Desktop/images/16062025/19/17/image_16062025_19_17_25_10643.jpg
/home/nano/Desktop/images/16062025/19/17/image_16062025_19_17_15_9612.jpg
/home/nano/Desktop/images/16062025/19/16/image_16062025_19_17_05_10627.jpg
/home/nano/Desktop/images/16062025/19/16/image_16062025_19_16_54_9610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366587199","1366587190","1366587178","1366587195","1366587185","1366587173"],"photo_ids_order":["1366587173","1366587178","1366587185","1366587190","1366587195","1366587199"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/17a6a79278906ac9b090affbfb56b502.jpg","text":"TemporaryFile(/tmp/multipartBody6052924252495004030asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094313791,"filename":"image_16062025_19_16_54_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cec5c92cb50028c259bd91ac4eeb1cc4.jpg","text":"TemporaryFile(/tmp/multipartBody4336314249156373892asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094313791,"filename":"image_16062025_19_17_15_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/513be9375e74dbcd13defd1e12ac7031.jpg","text":"TemporaryFile(/tmp/multipartBody7233890023812962063asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094313791,"filename":"image_16062025_19_17_35_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c5c9162f0c13b33903c69ab7263aec42.jpg","text":"TemporaryFile(/tmp/multipartBody234192713164967940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094313791,"filename":"image_16062025_19_17_05_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4e7f677337fbc8b202a28cadac945ffa.jpg","text":"TemporaryFile(/tmp/multipartBody5306943827755254948asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094313791,"filename":"image_16062025_19_17_25_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/84ba0a76809969c5e54b4cb077722e3e.jpg","text":"TemporaryFile(/tmp/multipartBody8351280846027164191asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094313791,"filename":"image_16062025_19_17_45_9618.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366587185","file1":"1366587178","file0":"1366587173","file4":"1366587195","file5":"1366587199","file3":"1366587190"},"map_files_photo_id_array":[{"photo_id":"1366587199","filename":"file5"},{"photo_id":"1366587185","filename":"file2"},{"photo_id":"1366587195","filename":"file4"},{"photo_id":"1366587178","filename":"file1"},{"photo_id":"1366587173","filename":"file0"},{"photo_id":"1366587190","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366587199":["hashtag1","hashtag2"]},{"1366587190":["hashtag1","hashtag2"]},{"1366587178":["hashtag1","hashtag2"]},{"1366587195":["hashtag1","hashtag2"]},{"1366587185":["hashtag1","hashtag2"]},{"1366587173":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366587199, 1366587190, 1366587178, 1366587195, 1366587185, 1366587173)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 52.26497745513916 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:18:32.177208
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/18/image_16062025_19_18_35_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/19/18/image_16062025_19_18_25_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/19/18/image_16062025_19_18_14_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/19/17/image_16062025_19_18_05_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/19/17/image_16062025_19_17_55_10620.jpg', 2), ('/home/nano/Desktop/images/16062025/19/15/image_16062025_19_15_34_9616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/18/image_16062025_19_18_35_9611.jpg', '/home/nano/Desktop/images/16062025/19/18/image_16062025_19_18_25_10627.jpg', '/home/nano/Desktop/images/16062025/19/18/image_16062025_19_18_14_9628.jpg', '/home/nano/Desktop/images/16062025/19/17/image_16062025_19_18_05_9618.jpg', '/home/nano/Desktop/images/16062025/19/17/image_16062025_19_17_55_10620.jpg', '/home/nano/Desktop/images/16062025/19/15/image_16062025_19_15_34_9616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/18/image_16062025_19_18_35_9611.jpg
/home/nano/Desktop/images/16062025/19/18/image_16062025_19_18_25_10627.jpg
/home/nano/Desktop/images/16062025/19/18/image_16062025_19_18_14_9628.jpg
/home/nano/Desktop/images/16062025/19/17/image_16062025_19_18_05_9618.jpg
/home/nano/Desktop/images/16062025/19/17/image_16062025_19_17_55_10620.jpg
/home/nano/Desktop/images/16062025/19/15/image_16062025_19_15_34_9616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366587230","1366587212","1366587235","1366587217","1366587222","1366587227"],"photo_ids_order":["1366587212","1366587217","1366587222","1366587227","1366587230","1366587235"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a444cb1b7dbe9707056d218167386674.jpg","text":"TemporaryFile(/tmp/multipartBody8545683129809527708asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094374298,"filename":"image_16062025_19_17_55_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e18b2b9780a3ff95881b6887232e223b.jpg","text":"TemporaryFile(/tmp/multipartBody1253276339204184114asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094374298,"filename":"image_16062025_19_18_35_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2f2b47f2ec140d973975232520d3bf8c.jpg","text":"TemporaryFile(/tmp/multipartBody2879139900265285740asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094374298,"filename":"image_16062025_19_15_34_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/24f005e3c702a927ab4c534501ad6a13.jpg","text":"TemporaryFile(/tmp/multipartBody4295322609044683066asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094374298,"filename":"image_16062025_19_18_25_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c73cfa1fdc1da806e2571d47348878ab.jpg","text":"TemporaryFile(/tmp/multipartBody5300833317980562368asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094374298,"filename":"image_16062025_19_18_14_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b748c886cf49f732c04cd71c668d8e28.jpg","text":"TemporaryFile(/tmp/multipartBody2988090548188507155asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094374298,"filename":"image_16062025_19_18_05_9618.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366587222","file1":"1366587217","file0":"1366587212","file4":"1366587230","file5":"1366587235","file3":"1366587227"},"map_files_photo_id_array":[{"photo_id":"1366587235","filename":"file5"},{"photo_id":"1366587222","filename":"file2"},{"photo_id":"1366587230","filename":"file4"},{"photo_id":"1366587217","filename":"file1"},{"photo_id":"1366587212","filename":"file0"},{"photo_id":"1366587227","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366587230":["hashtag1","hashtag2"]},{"1366587212":["hashtag1","hashtag2"]},{"1366587235":["hashtag1","hashtag2"]},{"1366587217":["hashtag1","hashtag2"]},{"1366587222":["hashtag1","hashtag2"]},{"1366587227":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366587230, 1366587212, 1366587235, 1366587217, 1366587222, 1366587227)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 57.075475454330444 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:19:32.270952
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/19/image_16062025_19_19_45_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/19/19/image_16062025_19_19_35_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/19/19/image_16062025_19_19_25_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/19/19/image_16062025_19_19_15_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/19/18/image_16062025_19_19_04_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/19/18/image_16062025_19_18_55_9615.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/19/image_16062025_19_19_45_9615.jpg', '/home/nano/Desktop/images/16062025/19/19/image_16062025_19_19_35_10626.jpg', '/home/nano/Desktop/images/16062025/19/19/image_16062025_19_19_25_9611.jpg', '/home/nano/Desktop/images/16062025/19/19/image_16062025_19_19_15_10647.jpg', '/home/nano/Desktop/images/16062025/19/18/image_16062025_19_19_04_9626.jpg', '/home/nano/Desktop/images/16062025/19/18/image_16062025_19_18_55_9615.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/19/image_16062025_19_19_45_9615.jpg
/home/nano/Desktop/images/16062025/19/19/image_16062025_19_19_35_10626.jpg
/home/nano/Desktop/images/16062025/19/19/image_16062025_19_19_25_9611.jpg
/home/nano/Desktop/images/16062025/19/19/image_16062025_19_19_15_10647.jpg
/home/nano/Desktop/images/16062025/19/18/image_16062025_19_19_04_9626.jpg
/home/nano/Desktop/images/16062025/19/18/image_16062025_19_18_55_9615.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366587268","1366587271","1366587322","1366587279","1366587251","1366587257"],"photo_ids_order":["1366587251","1366587257","1366587268","1366587271","1366587279","1366587322"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d6451e7f38fa6d76121fc1d1597f3e8c.jpg","text":"TemporaryFile(/tmp/multipartBody4582811930816110062asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094434411,"filename":"image_16062025_19_19_25_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e5b9a775ab12794b8a289af26c2fc63e.jpg","text":"TemporaryFile(/tmp/multipartBody7395835996792798163asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094434411,"filename":"image_16062025_19_19_15_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/405e672b5ea1a05145bf5cc36967f48d.jpg","text":"TemporaryFile(/tmp/multipartBody5199544768485028458asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094434411,"filename":"image_16062025_19_18_55_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/01531f91dce0875f803dbe3590829db4.jpg","text":"TemporaryFile(/tmp/multipartBody5029312835982842391asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094434411,"filename":"image_16062025_19_19_04_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/819ac3e0d9edabc438c1defa49b1a6c4.jpg","text":"TemporaryFile(/tmp/multipartBody494369681560307694asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094434411,"filename":"image_16062025_19_19_45_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d666f9c48967fdab3b9538d0b5ca78f9.jpg","text":"TemporaryFile(/tmp/multipartBody2435380248147843919asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094434411,"filename":"image_16062025_19_19_35_10626.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366587268","file1":"1366587257","file0":"1366587251","file4":"1366587279","file5":"1366587322","file3":"1366587271"},"map_files_photo_id_array":[{"photo_id":"1366587322","filename":"file5"},{"photo_id":"1366587268","filename":"file2"},{"photo_id":"1366587279","filename":"file4"},{"photo_id":"1366587257","filename":"file1"},{"photo_id":"1366587251","filename":"file0"},{"photo_id":"1366587271","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366587268":["hashtag1","hashtag2"]},{"1366587271":["hashtag1","hashtag2"]},{"1366587322":["hashtag1","hashtag2"]},{"1366587279":["hashtag1","hashtag2"]},{"1366587251":["hashtag1","hashtag2"]},{"1366587257":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366587268, 1366587271, 1366587322, 1366587279, 1366587251, 1366587257)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 80.48752617835999 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:21:03.155758
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/20/image_16062025_19_20_45_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/19/20/image_16062025_19_20_35_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/19/20/image_16062025_19_20_24_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/19/20/image_16062025_19_20_15_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/19/19/image_16062025_19_20_05_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/19/19/image_16062025_19_19_55_9616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/20/image_16062025_19_20_45_9629.jpg', '/home/nano/Desktop/images/16062025/19/20/image_16062025_19_20_35_10624.jpg', '/home/nano/Desktop/images/16062025/19/20/image_16062025_19_20_24_9620.jpg', '/home/nano/Desktop/images/16062025/19/20/image_16062025_19_20_15_9634.jpg', '/home/nano/Desktop/images/16062025/19/19/image_16062025_19_20_05_10645.jpg', '/home/nano/Desktop/images/16062025/19/19/image_16062025_19_19_55_9616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/20/image_16062025_19_20_45_9629.jpg
/home/nano/Desktop/images/16062025/19/20/image_16062025_19_20_35_10624.jpg
/home/nano/Desktop/images/16062025/19/20/image_16062025_19_20_24_9620.jpg
/home/nano/Desktop/images/16062025/19/20/image_16062025_19_20_15_9634.jpg
/home/nano/Desktop/images/16062025/19/19/image_16062025_19_20_05_10645.jpg
/home/nano/Desktop/images/16062025/19/19/image_16062025_19_19_55_9616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366587358","1366587384","1366587387","1366587389","1366587380","1366587368"],"photo_ids_order":["1366587358","1366587368","1366587380","1366587384","1366587387","1366587389"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/aac59d1239b8f9fcc81efb01e1b8547f.jpg","text":"TemporaryFile(/tmp/multipartBody2853649742341585169asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094524210,"filename":"image_16062025_19_20_45_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/95f3ff7299e346a7c00a164929e43852.jpg","text":"TemporaryFile(/tmp/multipartBody350059740866848255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094524210,"filename":"image_16062025_19_20_15_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c98caf272c6b5769f430193a3b24eaba.jpg","text":"TemporaryFile(/tmp/multipartBody1800551271795192569asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094524210,"filename":"image_16062025_19_20_05_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/366124323493ec3beea09f88f53e8b15.jpg","text":"TemporaryFile(/tmp/multipartBody7954833918476354014asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094524210,"filename":"image_16062025_19_19_55_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9a97ac0a837e549d9b58c4ec87af6a3e.jpg","text":"TemporaryFile(/tmp/multipartBody3028654167313234196asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094524210,"filename":"image_16062025_19_20_24_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d4fbe0f78cbf0c3eb0d4c4f8e5ea60ee.jpg","text":"TemporaryFile(/tmp/multipartBody2619404217514805050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094524210,"filename":"image_16062025_19_20_35_10624.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366587380","file1":"1366587368","file0":"1366587358","file4":"1366587387","file5":"1366587389","file3":"1366587384"},"map_files_photo_id_array":[{"photo_id":"1366587389","filename":"file5"},{"photo_id":"1366587380","filename":"file2"},{"photo_id":"1366587387","filename":"file4"},{"photo_id":"1366587368","filename":"file1"},{"photo_id":"1366587358","filename":"file0"},{"photo_id":"1366587384","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366587358":["hashtag1","hashtag2"]},{"1366587384":["hashtag1","hashtag2"]},{"1366587387":["hashtag1","hashtag2"]},{"1366587389":["hashtag1","hashtag2"]},{"1366587380":["hashtag1","hashtag2"]},{"1366587368":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366587358, 1366587384, 1366587387, 1366587389, 1366587380, 1366587368)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 62.773953676223755 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:22:17.564933
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/22/image_16062025_19_22_45_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/19/22/image_16062025_19_22_35_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/19/22/image_16062025_19_22_25_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/19/22/image_16062025_19_22_15_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/19/21/image_16062025_19_22_05_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/19/21/image_16062025_19_21_55_10626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/22/image_16062025_19_22_45_10631.jpg', '/home/nano/Desktop/images/16062025/19/22/image_16062025_19_22_35_9612.jpg', '/home/nano/Desktop/images/16062025/19/22/image_16062025_19_22_25_9645.jpg', '/home/nano/Desktop/images/16062025/19/22/image_16062025_19_22_15_10646.jpg', '/home/nano/Desktop/images/16062025/19/21/image_16062025_19_22_05_9621.jpg', '/home/nano/Desktop/images/16062025/19/21/image_16062025_19_21_55_10626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/22/image_16062025_19_22_45_10631.jpg
/home/nano/Desktop/images/16062025/19/22/image_16062025_19_22_35_9612.jpg
/home/nano/Desktop/images/16062025/19/22/image_16062025_19_22_25_9645.jpg
/home/nano/Desktop/images/16062025/19/22/image_16062025_19_22_15_10646.jpg
/home/nano/Desktop/images/16062025/19/21/image_16062025_19_22_05_9621.jpg
/home/nano/Desktop/images/16062025/19/21/image_16062025_19_21_55_10626.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366587416","1366587410","1366587421","1366587433","1366587437","1366587428"],"photo_ids_order":["1366587410","1366587416","1366587421","1366587428","1366587433","1366587437"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5be74bc2b2dc38caa0a61cc5b64d7d65.jpg","text":"TemporaryFile(/tmp/multipartBody8128854032385927637asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094599900,"filename":"image_16062025_19_22_35_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/190e415fe87c26b6f47bd94306d0b07d.jpg","text":"TemporaryFile(/tmp/multipartBody3502003733863490971asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094599900,"filename":"image_16062025_19_22_45_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/45a741300fa3f400cf846cec44044f62.jpg","text":"TemporaryFile(/tmp/multipartBody9052690812851384807asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094599900,"filename":"image_16062025_19_22_25_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1e186c9ad4cfd1be3ebc4ca1a2a78360.jpg","text":"TemporaryFile(/tmp/multipartBody9128820610905769954asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094599900,"filename":"image_16062025_19_22_05_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d824506af3d753bc94a7626c2301bdb2.jpg","text":"TemporaryFile(/tmp/multipartBody5911451620314587557asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094599900,"filename":"image_16062025_19_21_55_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7c313e3b80cdbd1ed69ab8a6842f2f50.jpg","text":"TemporaryFile(/tmp/multipartBody1749048007161246683asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094599900,"filename":"image_16062025_19_22_15_10646.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366587421","file1":"1366587416","file0":"1366587410","file4":"1366587433","file5":"1366587437","file3":"1366587428"},"map_files_photo_id_array":[{"photo_id":"1366587437","filename":"file5"},{"photo_id":"1366587421","filename":"file2"},{"photo_id":"1366587433","filename":"file4"},{"photo_id":"1366587416","filename":"file1"},{"photo_id":"1366587410","filename":"file0"},{"photo_id":"1366587428","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366587416":["hashtag1","hashtag2"]},{"1366587410":["hashtag1","hashtag2"]},{"1366587421":["hashtag1","hashtag2"]},{"1366587433":["hashtag1","hashtag2"]},{"1366587437":["hashtag1","hashtag2"]},{"1366587428":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366587416, 1366587410, 1366587421, 1366587433, 1366587437, 1366587428)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 63.71815371513367 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:23:32.688085
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/23/image_16062025_19_23_45_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/19/23/image_16062025_19_23_34_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/19/23/image_16062025_19_23_25_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/19/23/image_16062025_19_23_15_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/19/22/image_16062025_19_23_05_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/19/22/image_16062025_19_22_55_9619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/23/image_16062025_19_23_45_10623.jpg', '/home/nano/Desktop/images/16062025/19/23/image_16062025_19_23_34_9629.jpg', '/home/nano/Desktop/images/16062025/19/23/image_16062025_19_23_25_9619.jpg', '/home/nano/Desktop/images/16062025/19/23/image_16062025_19_23_15_10644.jpg', '/home/nano/Desktop/images/16062025/19/22/image_16062025_19_23_05_9635.jpg', '/home/nano/Desktop/images/16062025/19/22/image_16062025_19_22_55_9619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/23/image_16062025_19_23_45_10623.jpg
/home/nano/Desktop/images/16062025/19/23/image_16062025_19_23_34_9629.jpg
/home/nano/Desktop/images/16062025/19/23/image_16062025_19_23_25_9619.jpg
/home/nano/Desktop/images/16062025/19/23/image_16062025_19_23_15_10644.jpg
/home/nano/Desktop/images/16062025/19/22/image_16062025_19_23_05_9635.jpg
/home/nano/Desktop/images/16062025/19/22/image_16062025_19_22_55_9619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366587469","1366587445","1366587459","1366587453","1366587462","1366587449"],"photo_ids_order":["1366587445","1366587449","1366587453","1366587459","1366587462","1366587469"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/10ee7ee9ac0bdf318ea686dc9631ba0e.jpg","text":"TemporaryFile(/tmp/multipartBody5679513111022469384asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094674722,"filename":"image_16062025_19_22_55_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a89a1665101fb25f472296101767436f.jpg","text":"TemporaryFile(/tmp/multipartBody4406016333426022525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094674722,"filename":"image_16062025_19_23_45_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/36adadd12ee94d4b983245243f664301.jpg","text":"TemporaryFile(/tmp/multipartBody1112819479875487908asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094674722,"filename":"image_16062025_19_23_15_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/96195e3021ab1a18eebaa46ea9490609.jpg","text":"TemporaryFile(/tmp/multipartBody8572840740978860068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094674722,"filename":"image_16062025_19_23_25_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/950e09ea397444aafe43d43f44adc867.jpg","text":"TemporaryFile(/tmp/multipartBody1077597295257199754asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094674722,"filename":"image_16062025_19_23_05_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d213f720b95a85d30ecc694f4d0c29f3.jpg","text":"TemporaryFile(/tmp/multipartBody6070668177568609783asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094674722,"filename":"image_16062025_19_23_34_9629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366587453","file1":"1366587449","file0":"1366587445","file4":"1366587462","file5":"1366587469","file3":"1366587459"},"map_files_photo_id_array":[{"photo_id":"1366587469","filename":"file5"},{"photo_id":"1366587453","filename":"file2"},{"photo_id":"1366587462","filename":"file4"},{"photo_id":"1366587449","filename":"file1"},{"photo_id":"1366587445","filename":"file0"},{"photo_id":"1366587459","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366587469":["hashtag1","hashtag2"]},{"1366587445":["hashtag1","hashtag2"]},{"1366587459":["hashtag1","hashtag2"]},{"1366587453":["hashtag1","hashtag2"]},{"1366587462":["hashtag1","hashtag2"]},{"1366587449":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366587469, 1366587445, 1366587459, 1366587453, 1366587462, 1366587449)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.18564200401306 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:24:46.792344
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/24/image_16062025_19_24_35_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/19/24/image_16062025_19_24_25_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/19/24/image_16062025_19_24_15_9646.jpg', 2), ('/home/nano/Desktop/images/16062025/19/23/image_16062025_19_24_05_10631.jpg', 2), ('/home/nano/Desktop/images/16062025/19/23/image_16062025_19_23_55_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/19/21/image_16062025_19_21_44_9613.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/24/image_16062025_19_24_35_10637.jpg', '/home/nano/Desktop/images/16062025/19/24/image_16062025_19_24_25_9614.jpg', '/home/nano/Desktop/images/16062025/19/24/image_16062025_19_24_15_9646.jpg', '/home/nano/Desktop/images/16062025/19/23/image_16062025_19_24_05_10631.jpg', '/home/nano/Desktop/images/16062025/19/23/image_16062025_19_23_55_9612.jpg', '/home/nano/Desktop/images/16062025/19/21/image_16062025_19_21_44_9613.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/24/image_16062025_19_24_35_10637.jpg
/home/nano/Desktop/images/16062025/19/24/image_16062025_19_24_25_9614.jpg
/home/nano/Desktop/images/16062025/19/24/image_16062025_19_24_15_9646.jpg
/home/nano/Desktop/images/16062025/19/23/image_16062025_19_24_05_10631.jpg
/home/nano/Desktop/images/16062025/19/23/image_16062025_19_23_55_9612.jpg
/home/nano/Desktop/images/16062025/19/21/image_16062025_19_21_44_9613.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366587503","1366587550","1366587538","1366587522","1366587516","1366587494"],"photo_ids_order":["1366587494","1366587503","1366587516","1366587522","1366587538","1366587550"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1bd3a6b3fea987ed82d54349559c3edc.jpg","text":"TemporaryFile(/tmp/multipartBody6093516232547549639asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094750957,"filename":"image_16062025_19_24_25_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/feacfa22fc191f8c40846edd77d247cf.jpg","text":"TemporaryFile(/tmp/multipartBody8666084626299590242asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094750957,"filename":"image_16062025_19_21_44_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/852adc1031ce18905f47f75a1c18c269.jpg","text":"TemporaryFile(/tmp/multipartBody3457380505802317015asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094750957,"filename":"image_16062025_19_23_55_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/33de670f225fe58eafcbb681692b6a1e.jpg","text":"TemporaryFile(/tmp/multipartBody3210677543281018185asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094750957,"filename":"image_16062025_19_24_05_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/92cf38f3280934346629367c84d74e5e.jpg","text":"TemporaryFile(/tmp/multipartBody8727833422307354087asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094750957,"filename":"image_16062025_19_24_15_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/98b2da6a28054dda54b9fe0a2d6462aa.jpg","text":"TemporaryFile(/tmp/multipartBody8436090485154466275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094750957,"filename":"image_16062025_19_24_35_10637.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366587516","file1":"1366587503","file0":"1366587494","file4":"1366587538","file5":"1366587550","file3":"1366587522"},"map_files_photo_id_array":[{"photo_id":"1366587550","filename":"file5"},{"photo_id":"1366587516","filename":"file2"},{"photo_id":"1366587538","filename":"file4"},{"photo_id":"1366587503","filename":"file1"},{"photo_id":"1366587494","filename":"file0"},{"photo_id":"1366587522","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366587503":["hashtag1","hashtag2"]},{"1366587550":["hashtag1","hashtag2"]},{"1366587538":["hashtag1","hashtag2"]},{"1366587522":["hashtag1","hashtag2"]},{"1366587516":["hashtag1","hashtag2"]},{"1366587494":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366587503, 1366587550, 1366587538, 1366587522, 1366587516, 1366587494)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 64.74813580513 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:26:02.532980
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/25/image_16062025_19_25_35_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/19/25/image_16062025_19_25_25_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/19/25/image_16062025_19_25_15_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/19/24/image_16062025_19_25_05_10655.jpg', 2), ('/home/nano/Desktop/images/16062025/19/24/image_16062025_19_24_54_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/19/21/image_16062025_19_21_35_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/25/image_16062025_19_25_35_9613.jpg', '/home/nano/Desktop/images/16062025/19/25/image_16062025_19_25_25_10643.jpg', '/home/nano/Desktop/images/16062025/19/25/image_16062025_19_25_15_9620.jpg', '/home/nano/Desktop/images/16062025/19/24/image_16062025_19_25_05_10655.jpg', '/home/nano/Desktop/images/16062025/19/24/image_16062025_19_24_54_9611.jpg', '/home/nano/Desktop/images/16062025/19/21/image_16062025_19_21_35_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/25/image_16062025_19_25_35_9613.jpg
/home/nano/Desktop/images/16062025/19/25/image_16062025_19_25_25_10643.jpg
/home/nano/Desktop/images/16062025/19/25/image_16062025_19_25_15_9620.jpg
/home/nano/Desktop/images/16062025/19/24/image_16062025_19_25_05_10655.jpg
/home/nano/Desktop/images/16062025/19/24/image_16062025_19_24_54_9611.jpg
/home/nano/Desktop/images/16062025/19/21/image_16062025_19_21_35_9610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366587610","1366587613","1366587624","1366587618","1366587603","1366587606"],"photo_ids_order":["1366587603","1366587606","1366587610","1366587613","1366587618","1366587624"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fd2e0614c82249ae2e6366e26c847049.jpg","text":"TemporaryFile(/tmp/multipartBody7507786641159652992asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094826040,"filename":"image_16062025_19_25_15_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4c5afbdbcfbc4e1376e81442960f8c6b.jpg","text":"TemporaryFile(/tmp/multipartBody2562616864491980650asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094826040,"filename":"image_16062025_19_25_05_10655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7e1d8ef4191ea7d7a7ad88ac127db760.jpg","text":"TemporaryFile(/tmp/multipartBody2440196490699314064asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094826040,"filename":"image_16062025_19_21_35_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8a7ee634f7f46066bf84478d6446ce78.jpg","text":"TemporaryFile(/tmp/multipartBody5104935042522525751asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094826040,"filename":"image_16062025_19_24_54_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/643371298660a1122db0fb27211b26f9.jpg","text":"TemporaryFile(/tmp/multipartBody780150144108374521asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094826040,"filename":"image_16062025_19_25_35_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fed25a9ac2407465f0e33f5883f2e4da.jpg","text":"TemporaryFile(/tmp/multipartBody9195395760871122531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094826040,"filename":"image_16062025_19_25_25_10643.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366587610","file1":"1366587606","file0":"1366587603","file4":"1366587618","file5":"1366587624","file3":"1366587613"},"map_files_photo_id_array":[{"photo_id":"1366587624","filename":"file5"},{"photo_id":"1366587610","filename":"file2"},{"photo_id":"1366587618","filename":"file4"},{"photo_id":"1366587606","filename":"file1"},{"photo_id":"1366587603","filename":"file0"},{"photo_id":"1366587613","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366587610":["hashtag1","hashtag2"]},{"1366587613":["hashtag1","hashtag2"]},{"1366587624":["hashtag1","hashtag2"]},{"1366587618":["hashtag1","hashtag2"]},{"1366587603":["hashtag1","hashtag2"]},{"1366587606":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366587610, 1366587613, 1366587624, 1366587618, 1366587603, 1366587606)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 62.988486528396606 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:27:17.237386
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/27/image_16062025_19_27_45_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/19/27/image_16062025_19_27_34_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/19/27/image_16062025_19_27_25_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/19/27/image_16062025_19_27_15_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/19/26/image_16062025_19_27_05_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/19/26/image_16062025_19_26_45_10629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/27/image_16062025_19_27_45_10618.jpg', '/home/nano/Desktop/images/16062025/19/27/image_16062025_19_27_34_9628.jpg', '/home/nano/Desktop/images/16062025/19/27/image_16062025_19_27_25_9618.jpg', '/home/nano/Desktop/images/16062025/19/27/image_16062025_19_27_15_10646.jpg', '/home/nano/Desktop/images/16062025/19/26/image_16062025_19_27_05_9614.jpg', '/home/nano/Desktop/images/16062025/19/26/image_16062025_19_26_45_10629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/27/image_16062025_19_27_45_10618.jpg
/home/nano/Desktop/images/16062025/19/27/image_16062025_19_27_34_9628.jpg
/home/nano/Desktop/images/16062025/19/27/image_16062025_19_27_25_9618.jpg
/home/nano/Desktop/images/16062025/19/27/image_16062025_19_27_15_10646.jpg
/home/nano/Desktop/images/16062025/19/26/image_16062025_19_27_05_9614.jpg
/home/nano/Desktop/images/16062025/19/26/image_16062025_19_26_45_10629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366587658","1366587654","1366587648","1366587642","1366587662","1366587635"],"photo_ids_order":["1366587635","1366587642","1366587648","1366587654","1366587658","1366587662"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8e177a92a59ea9b93c0a292bb622b5b0.jpg","text":"TemporaryFile(/tmp/multipartBody1882970392167943274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094899205,"filename":"image_16062025_19_27_05_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2ebb1101a6a64ab4a1dd86da62355edd.jpg","text":"TemporaryFile(/tmp/multipartBody2366079172582583973asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094899205,"filename":"image_16062025_19_27_15_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0aa5cbea1901053660ffd5491aea8edb.jpg","text":"TemporaryFile(/tmp/multipartBody7268381685069156632asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094899205,"filename":"image_16062025_19_27_25_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2453c964ef619468dc97a4e585af61b3.jpg","text":"TemporaryFile(/tmp/multipartBody8134635574368828044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094899205,"filename":"image_16062025_19_27_34_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3675a69bd826520d166efd67ab2e66fa.jpg","text":"TemporaryFile(/tmp/multipartBody6427795154626029099asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094899205,"filename":"image_16062025_19_26_45_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/75648ad40a70cdd89a2caf14a9f80e02.jpg","text":"TemporaryFile(/tmp/multipartBody7809269055676063439asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094899205,"filename":"image_16062025_19_27_45_10618.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366587648","file1":"1366587642","file0":"1366587635","file4":"1366587658","file5":"1366587662","file3":"1366587654"},"map_files_photo_id_array":[{"photo_id":"1366587662","filename":"file5"},{"photo_id":"1366587648","filename":"file2"},{"photo_id":"1366587658","filename":"file4"},{"photo_id":"1366587642","filename":"file1"},{"photo_id":"1366587635","filename":"file0"},{"photo_id":"1366587654","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366587658":["hashtag1","hashtag2"]},{"1366587654":["hashtag1","hashtag2"]},{"1366587648":["hashtag1","hashtag2"]},{"1366587642":["hashtag1","hashtag2"]},{"1366587662":["hashtag1","hashtag2"]},{"1366587635":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366587658, 1366587654, 1366587648, 1366587642, 1366587662, 1366587635)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 52.61364722251892 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:28:17.280073
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/28/image_16062025_19_28_45_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/19/28/image_16062025_19_28_35_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/19/28/image_16062025_19_28_24_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/19/28/image_16062025_19_28_15_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/19/27/image_16062025_19_28_05_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/19/27/image_16062025_19_27_55_9609.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/28/image_16062025_19_28_45_9611.jpg', '/home/nano/Desktop/images/16062025/19/28/image_16062025_19_28_35_10619.jpg', '/home/nano/Desktop/images/16062025/19/28/image_16062025_19_28_24_9610.jpg', '/home/nano/Desktop/images/16062025/19/28/image_16062025_19_28_15_9617.jpg', '/home/nano/Desktop/images/16062025/19/27/image_16062025_19_28_05_10627.jpg', '/home/nano/Desktop/images/16062025/19/27/image_16062025_19_27_55_9609.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/28/image_16062025_19_28_45_9611.jpg
/home/nano/Desktop/images/16062025/19/28/image_16062025_19_28_35_10619.jpg
/home/nano/Desktop/images/16062025/19/28/image_16062025_19_28_24_9610.jpg
/home/nano/Desktop/images/16062025/19/28/image_16062025_19_28_15_9617.jpg
/home/nano/Desktop/images/16062025/19/27/image_16062025_19_28_05_10627.jpg
/home/nano/Desktop/images/16062025/19/27/image_16062025_19_27_55_9609.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366587673","1366587676","1366587700","1366587693","1366587706","1366587686"],"photo_ids_order":["1366587673","1366587676","1366587686","1366587693","1366587700","1366587706"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e5a1c28132b2d4899d69a8196432db70.jpg","text":"TemporaryFile(/tmp/multipartBody919141314293629772asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094958761,"filename":"image_16062025_19_28_45_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ce769c325adc15ad3212402d793ffae1.jpg","text":"TemporaryFile(/tmp/multipartBody7303704210144881458asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094958761,"filename":"image_16062025_19_28_35_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ace568371f43300828831bcffbb01b7a.jpg","text":"TemporaryFile(/tmp/multipartBody6247910553165452542asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094958761,"filename":"image_16062025_19_28_05_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cf5bc8c887c815840805b5980f27c041.jpg","text":"TemporaryFile(/tmp/multipartBody1087336562586033629asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094958761,"filename":"image_16062025_19_28_15_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/126154dfe01511feadd838a38a151807.jpg","text":"TemporaryFile(/tmp/multipartBody7014072694077437785asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094958761,"filename":"image_16062025_19_27_55_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a7e03d794902457d6094c2cceaf8749d.jpg","text":"TemporaryFile(/tmp/multipartBody1654291543134464110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750094958761,"filename":"image_16062025_19_28_24_9610.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366587686","file1":"1366587676","file0":"1366587673","file4":"1366587700","file5":"1366587706","file3":"1366587693"},"map_files_photo_id_array":[{"photo_id":"1366587706","filename":"file5"},{"photo_id":"1366587686","filename":"file2"},{"photo_id":"1366587700","filename":"file4"},{"photo_id":"1366587676","filename":"file1"},{"photo_id":"1366587673","filename":"file0"},{"photo_id":"1366587693","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366587673":["hashtag1","hashtag2"]},{"1366587676":["hashtag1","hashtag2"]},{"1366587700":["hashtag1","hashtag2"]},{"1366587693":["hashtag1","hashtag2"]},{"1366587706":["hashtag1","hashtag2"]},{"1366587686":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366587673, 1366587676, 1366587700, 1366587693, 1366587706, 1366587686)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 63.60435628890991 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:29:32.400425
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_35_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_25_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_15_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/19/28/image_16062025_19_28_55_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/19/26/image_16062025_19_26_35_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_44_9617.jpg', '/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_35_9616.jpg', '/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_25_10619.jpg', '/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_15_9618.jpg', '/home/nano/Desktop/images/16062025/19/28/image_16062025_19_28_55_10625.jpg', '/home/nano/Desktop/images/16062025/19/26/image_16062025_19_26_35_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_44_9617.jpg
/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_35_9616.jpg
/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_25_10619.jpg
/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_15_9618.jpg
/home/nano/Desktop/images/16062025/19/28/image_16062025_19_28_55_10625.jpg
/home/nano/Desktop/images/16062025/19/26/image_16062025_19_26_35_9612.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.7629504203796387 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:29:47.345388
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_44_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_35_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_25_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_15_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/19/28/image_16062025_19_28_55_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/19/26/image_16062025_19_26_35_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_44_9617.jpg', '/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_35_9616.jpg', '/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_25_10619.jpg', '/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_15_9618.jpg', '/home/nano/Desktop/images/16062025/19/28/image_16062025_19_28_55_10625.jpg', '/home/nano/Desktop/images/16062025/19/26/image_16062025_19_26_35_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_44_9617.jpg
/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_35_9616.jpg
/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_25_10619.jpg
/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_15_9618.jpg
/home/nano/Desktop/images/16062025/19/28/image_16062025_19_28_55_10625.jpg
/home/nano/Desktop/images/16062025/19/26/image_16062025_19_26_35_9612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366587806","1366587793","1366587841","1366587823","1366587817","1366587780"],"photo_ids_order":["1366587780","1366587793","1366587806","1366587817","1366587823","1366587841"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/23ccdebd69173053661177cacd31e062.jpg","text":"TemporaryFile(/tmp/multipartBody8161266695866878839asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095050046,"filename":"image_16062025_19_29_25_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9a203293068836d921e30aa45be109fe.jpg","text":"TemporaryFile(/tmp/multipartBody1284219836933245669asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095050046,"filename":"image_16062025_19_29_35_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/479047aec68ee760e8b560666ae679b4.jpg","text":"TemporaryFile(/tmp/multipartBody8353326177400440151asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095050046,"filename":"image_16062025_19_26_35_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bc5f54b4d2d5598e4f0eaf661df043c4.jpg","text":"TemporaryFile(/tmp/multipartBody1024628394692882751asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095050046,"filename":"image_16062025_19_28_55_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/abe9b5937d70baf7e1d351a1994b26ec.jpg","text":"TemporaryFile(/tmp/multipartBody271548145156725003asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095050046,"filename":"image_16062025_19_29_15_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/89c660904403f745dd7bc002c9f196db.jpg","text":"TemporaryFile(/tmp/multipartBody1709821999117065690asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095050046,"filename":"image_16062025_19_29_44_9617.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366587806","file1":"1366587793","file0":"1366587780","file4":"1366587823","file5":"1366587841","file3":"1366587817"},"map_files_photo_id_array":[{"photo_id":"1366587841","filename":"file5"},{"photo_id":"1366587806","filename":"file2"},{"photo_id":"1366587823","filename":"file4"},{"photo_id":"1366587793","filename":"file1"},{"photo_id":"1366587780","filename":"file0"},{"photo_id":"1366587817","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366587806":["hashtag1","hashtag2"]},{"1366587793":["hashtag1","hashtag2"]},{"1366587841":["hashtag1","hashtag2"]},{"1366587823":["hashtag1","hashtag2"]},{"1366587817":["hashtag1","hashtag2"]},{"1366587780":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366587806, 1366587793, 1366587841, 1366587823, 1366587817, 1366587780)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 58.907822608947754 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:30:47.461327
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/30/image_16062025_19_30_45_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/19/30/image_16062025_19_30_35_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/19/30/image_16062025_19_30_25_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/19/30/image_16062025_19_30_15_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/19/29/image_16062025_19_30_05_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_55_10624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/30/image_16062025_19_30_45_10621.jpg', '/home/nano/Desktop/images/16062025/19/30/image_16062025_19_30_35_9622.jpg', '/home/nano/Desktop/images/16062025/19/30/image_16062025_19_30_25_9611.jpg', '/home/nano/Desktop/images/16062025/19/30/image_16062025_19_30_15_10638.jpg', '/home/nano/Desktop/images/16062025/19/29/image_16062025_19_30_05_9625.jpg', '/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_55_10624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/30/image_16062025_19_30_45_10621.jpg
/home/nano/Desktop/images/16062025/19/30/image_16062025_19_30_35_9622.jpg
/home/nano/Desktop/images/16062025/19/30/image_16062025_19_30_25_9611.jpg
/home/nano/Desktop/images/16062025/19/30/image_16062025_19_30_15_10638.jpg
/home/nano/Desktop/images/16062025/19/29/image_16062025_19_30_05_9625.jpg
/home/nano/Desktop/images/16062025/19/29/image_16062025_19_29_55_10624.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366587865","1366587897","1366587882","1366587878","1366587887","1366587892"],"photo_ids_order":["1366587865","1366587878","1366587882","1366587887","1366587892","1366587897"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/de45a677fa1dae042207659d057aed92.jpg","text":"TemporaryFile(/tmp/multipartBody6767708156438859035asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095112975,"filename":"image_16062025_19_30_45_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2b383a303e55e2b8871289fe1cf7ff05.jpg","text":"TemporaryFile(/tmp/multipartBody5027828110856368008asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095112975,"filename":"image_16062025_19_29_55_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8a03b0a536b761533699cb4d186ce2c2.jpg","text":"TemporaryFile(/tmp/multipartBody8517956532909939470asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095112975,"filename":"image_16062025_19_30_25_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5fa5965a25cf4e14b95f47c007f350dd.jpg","text":"TemporaryFile(/tmp/multipartBody3105873142208892642asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095112975,"filename":"image_16062025_19_30_35_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f5e37b32127119bf057e90d7ff30170b.jpg","text":"TemporaryFile(/tmp/multipartBody362775911505883006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095112975,"filename":"image_16062025_19_30_15_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c9887d7c6b3467e486d6460f305a6e10.jpg","text":"TemporaryFile(/tmp/multipartBody6014156136046618822asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095112975,"filename":"image_16062025_19_30_05_9625.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366587882","file1":"1366587878","file0":"1366587865","file4":"1366587892","file5":"1366587897","file3":"1366587887"},"map_files_photo_id_array":[{"photo_id":"1366587897","filename":"file5"},{"photo_id":"1366587882","filename":"file2"},{"photo_id":"1366587892","filename":"file4"},{"photo_id":"1366587878","filename":"file1"},{"photo_id":"1366587865","filename":"file0"},{"photo_id":"1366587887","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366587865":["hashtag1","hashtag2"]},{"1366587897":["hashtag1","hashtag2"]},{"1366587882":["hashtag1","hashtag2"]},{"1366587878":["hashtag1","hashtag2"]},{"1366587887":["hashtag1","hashtag2"]},{"1366587892":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366587865, 1366587897, 1366587882, 1366587878, 1366587887, 1366587892)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 78.96190285682678 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:32:17.681127
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/32/image_16062025_19_32_45_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/19/32/image_16062025_19_32_35_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/19/32/image_16062025_19_32_24_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/19/32/image_16062025_19_32_15_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/19/31/image_16062025_19_32_05_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/19/31/image_16062025_19_31_55_9609.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/32/image_16062025_19_32_45_9618.jpg', '/home/nano/Desktop/images/16062025/19/32/image_16062025_19_32_35_10637.jpg', '/home/nano/Desktop/images/16062025/19/32/image_16062025_19_32_24_9611.jpg', '/home/nano/Desktop/images/16062025/19/32/image_16062025_19_32_15_9629.jpg', '/home/nano/Desktop/images/16062025/19/31/image_16062025_19_32_05_10630.jpg', '/home/nano/Desktop/images/16062025/19/31/image_16062025_19_31_55_9609.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/32/image_16062025_19_32_45_9618.jpg
/home/nano/Desktop/images/16062025/19/32/image_16062025_19_32_35_10637.jpg
/home/nano/Desktop/images/16062025/19/32/image_16062025_19_32_24_9611.jpg
/home/nano/Desktop/images/16062025/19/32/image_16062025_19_32_15_9629.jpg
/home/nano/Desktop/images/16062025/19/31/image_16062025_19_32_05_10630.jpg
/home/nano/Desktop/images/16062025/19/31/image_16062025_19_31_55_9609.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366587926","1366587946","1366587930","1366587918","1366587941","1366587935"],"photo_ids_order":["1366587918","1366587926","1366587930","1366587935","1366587941","1366587946"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8a4bc183ac476a1ae3ccd3318ea41503.jpg","text":"TemporaryFile(/tmp/multipartBody7844954310929456491asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095201293,"filename":"image_16062025_19_32_35_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/94a3650904c43f4f5299a7da6c86c89a.jpg","text":"TemporaryFile(/tmp/multipartBody964695450095313998asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095201293,"filename":"image_16062025_19_31_55_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c341d6fdbf6a01c97b739756b87a99dd.jpg","text":"TemporaryFile(/tmp/multipartBody7250384132735328505asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095201293,"filename":"image_16062025_19_32_24_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/65398e8a8aff5f6b0fd13963fc33fa8d.jpg","text":"TemporaryFile(/tmp/multipartBody3548085693819491913asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095201293,"filename":"image_16062025_19_32_45_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c09d7a590b3ff8eecd769e50a75065a0.jpg","text":"TemporaryFile(/tmp/multipartBody5595959184994423756asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095201293,"filename":"image_16062025_19_32_05_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a44fa52679fd913f787f64a9fb01f73c.jpg","text":"TemporaryFile(/tmp/multipartBody5295286399895777047asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095201293,"filename":"image_16062025_19_32_15_9629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366587930","file1":"1366587926","file0":"1366587918","file4":"1366587941","file5":"1366587946","file3":"1366587935"},"map_files_photo_id_array":[{"photo_id":"1366587946","filename":"file5"},{"photo_id":"1366587930","filename":"file2"},{"photo_id":"1366587941","filename":"file4"},{"photo_id":"1366587926","filename":"file1"},{"photo_id":"1366587918","filename":"file0"},{"photo_id":"1366587935","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366587926":["hashtag1","hashtag2"]},{"1366587946":["hashtag1","hashtag2"]},{"1366587930":["hashtag1","hashtag2"]},{"1366587918":["hashtag1","hashtag2"]},{"1366587941":["hashtag1","hashtag2"]},{"1366587935":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366587926, 1366587946, 1366587930, 1366587918, 1366587941, 1366587935)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 60.887667655944824 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:33:31.804770
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/33/image_16062025_19_33_44_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/19/33/image_16062025_19_33_35_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/19/33/image_16062025_19_33_25_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/19/33/image_16062025_19_33_15_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/19/32/image_16062025_19_33_05_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/19/32/image_16062025_19_32_55_10619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/33/image_16062025_19_33_44_9609.jpg', '/home/nano/Desktop/images/16062025/19/33/image_16062025_19_33_35_9610.jpg', '/home/nano/Desktop/images/16062025/19/33/image_16062025_19_33_25_10623.jpg', '/home/nano/Desktop/images/16062025/19/33/image_16062025_19_33_15_9634.jpg', '/home/nano/Desktop/images/16062025/19/32/image_16062025_19_33_05_9620.jpg', '/home/nano/Desktop/images/16062025/19/32/image_16062025_19_32_55_10619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/33/image_16062025_19_33_44_9609.jpg
/home/nano/Desktop/images/16062025/19/33/image_16062025_19_33_35_9610.jpg
/home/nano/Desktop/images/16062025/19/33/image_16062025_19_33_25_10623.jpg
/home/nano/Desktop/images/16062025/19/33/image_16062025_19_33_15_9634.jpg
/home/nano/Desktop/images/16062025/19/32/image_16062025_19_33_05_9620.jpg
/home/nano/Desktop/images/16062025/19/32/image_16062025_19_32_55_10619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366587961","1366587970","1366587998","1366587983","1366587977","1366587980"],"photo_ids_order":["1366587961","1366587970","1366587977","1366587980","1366587983","1366587998"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b67ee049b31ebb360db8b43ca8c479ee.jpg","text":"TemporaryFile(/tmp/multipartBody6449122825849372511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095274274,"filename":"image_16062025_19_33_44_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4d6ade5055bd5a2da523eb592602f3b8.jpg","text":"TemporaryFile(/tmp/multipartBody183588826813335145asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095274274,"filename":"image_16062025_19_33_35_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2f7c9b3c99d525bc0af78f9071518e97.jpg","text":"TemporaryFile(/tmp/multipartBody6824417994550395400asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095274274,"filename":"image_16062025_19_32_55_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9d88c3df7ea0c4daabbddb9554c2b8b6.jpg","text":"TemporaryFile(/tmp/multipartBody2611219597808750057asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095274274,"filename":"image_16062025_19_33_05_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/02de6131274f241beb0742746780eb8b.jpg","text":"TemporaryFile(/tmp/multipartBody8892591964802992791asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095274274,"filename":"image_16062025_19_33_25_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/31dfe83fd526bff2da670355df777622.jpg","text":"TemporaryFile(/tmp/multipartBody4944563915368644798asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095274274,"filename":"image_16062025_19_33_15_9634.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366587977","file1":"1366587970","file0":"1366587961","file4":"1366587983","file5":"1366587998","file3":"1366587980"},"map_files_photo_id_array":[{"photo_id":"1366587998","filename":"file5"},{"photo_id":"1366587977","filename":"file2"},{"photo_id":"1366587983","filename":"file4"},{"photo_id":"1366587970","filename":"file1"},{"photo_id":"1366587961","filename":"file0"},{"photo_id":"1366587980","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366587961":["hashtag1","hashtag2"]},{"1366587970":["hashtag1","hashtag2"]},{"1366587998":["hashtag1","hashtag2"]},{"1366587983":["hashtag1","hashtag2"]},{"1366587977":["hashtag1","hashtag2"]},{"1366587980":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366587961, 1366587970, 1366587998, 1366587983, 1366587977, 1366587980)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 55.01101040840149 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:34:31.938327
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/34/image_16062025_19_34_45_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/19/34/image_16062025_19_34_35_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/19/34/image_16062025_19_34_25_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/19/34/image_16062025_19_34_15_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/19/33/image_16062025_19_34_05_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/19/33/image_16062025_19_33_55_10638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/34/image_16062025_19_34_45_10619.jpg', '/home/nano/Desktop/images/16062025/19/34/image_16062025_19_34_35_9610.jpg', '/home/nano/Desktop/images/16062025/19/34/image_16062025_19_34_25_9625.jpg', '/home/nano/Desktop/images/16062025/19/34/image_16062025_19_34_15_10643.jpg', '/home/nano/Desktop/images/16062025/19/33/image_16062025_19_34_05_9633.jpg', '/home/nano/Desktop/images/16062025/19/33/image_16062025_19_33_55_10638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/34/image_16062025_19_34_45_10619.jpg
/home/nano/Desktop/images/16062025/19/34/image_16062025_19_34_35_9610.jpg
/home/nano/Desktop/images/16062025/19/34/image_16062025_19_34_25_9625.jpg
/home/nano/Desktop/images/16062025/19/34/image_16062025_19_34_15_10643.jpg
/home/nano/Desktop/images/16062025/19/33/image_16062025_19_34_05_9633.jpg
/home/nano/Desktop/images/16062025/19/33/image_16062025_19_33_55_10638.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366588065","1366588041","1366588070","1366588052","1366588075","1366588060"],"photo_ids_order":["1366588041","1366588052","1366588060","1366588065","1366588070","1366588075"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/53d97e623a71c8a7452008e90aa3662e.jpg","text":"TemporaryFile(/tmp/multipartBody7179670240106112261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095336002,"filename":"image_16062025_19_34_15_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0f6b907f6fcb096eb1bdade6280802ed.jpg","text":"TemporaryFile(/tmp/multipartBody7859967488021269744asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095336002,"filename":"image_16062025_19_34_45_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1724cee511e3463945e8f1892207e176.jpg","text":"TemporaryFile(/tmp/multipartBody6645568259820852342asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095336002,"filename":"image_16062025_19_34_05_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7e43f1510dab186ae09296dab9016101.jpg","text":"TemporaryFile(/tmp/multipartBody3254874246815154608asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095336002,"filename":"image_16062025_19_34_35_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ad9c21261c9d72ce8849504c4d0050e7.jpg","text":"TemporaryFile(/tmp/multipartBody2977597963380461867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095336002,"filename":"image_16062025_19_33_55_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1c0334806238f30f66762a63d61a2792.jpg","text":"TemporaryFile(/tmp/multipartBody108614167587948036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095336002,"filename":"image_16062025_19_34_25_9625.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366588060","file1":"1366588052","file0":"1366588041","file4":"1366588070","file5":"1366588075","file3":"1366588065"},"map_files_photo_id_array":[{"photo_id":"1366588075","filename":"file5"},{"photo_id":"1366588060","filename":"file2"},{"photo_id":"1366588070","filename":"file4"},{"photo_id":"1366588052","filename":"file1"},{"photo_id":"1366588041","filename":"file0"},{"photo_id":"1366588065","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366588065":["hashtag1","hashtag2"]},{"1366588041":["hashtag1","hashtag2"]},{"1366588070":["hashtag1","hashtag2"]},{"1366588052":["hashtag1","hashtag2"]},{"1366588075":["hashtag1","hashtag2"]},{"1366588060":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366588065, 1366588041, 1366588070, 1366588052, 1366588075, 1366588060)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 67.1951367855072 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:35:47.030531
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/35/image_16062025_19_35_45_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/19/35/image_16062025_19_35_35_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/19/35/image_16062025_19_35_25_9607.jpg', 2), ('/home/nano/Desktop/images/16062025/19/35/image_16062025_19_35_15_10660.jpg', 2), ('/home/nano/Desktop/images/16062025/19/34/image_16062025_19_35_04_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/19/34/image_16062025_19_34_55_9611.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/35/image_16062025_19_35_45_9610.jpg', '/home/nano/Desktop/images/16062025/19/35/image_16062025_19_35_35_10619.jpg', '/home/nano/Desktop/images/16062025/19/35/image_16062025_19_35_25_9607.jpg', '/home/nano/Desktop/images/16062025/19/35/image_16062025_19_35_15_10660.jpg', '/home/nano/Desktop/images/16062025/19/34/image_16062025_19_35_04_9634.jpg', '/home/nano/Desktop/images/16062025/19/34/image_16062025_19_34_55_9611.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/35/image_16062025_19_35_45_9610.jpg
/home/nano/Desktop/images/16062025/19/35/image_16062025_19_35_35_10619.jpg
/home/nano/Desktop/images/16062025/19/35/image_16062025_19_35_25_9607.jpg
/home/nano/Desktop/images/16062025/19/35/image_16062025_19_35_15_10660.jpg
/home/nano/Desktop/images/16062025/19/34/image_16062025_19_35_04_9634.jpg
/home/nano/Desktop/images/16062025/19/34/image_16062025_19_34_55_9611.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366588120","1366588104","1366588094","1366588115","1366588099","1366588090"],"photo_ids_order":["1366588090","1366588094","1366588099","1366588104","1366588115","1366588120"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/aaa5c5740a81f84e49c65d3bdd8d6fe9.jpg","text":"TemporaryFile(/tmp/multipartBody5627091541803181794asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095409600,"filename":"image_16062025_19_34_55_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6b6e4670fa869396d34647497ca2808d.jpg","text":"TemporaryFile(/tmp/multipartBody706092586535361358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095409600,"filename":"image_16062025_19_35_15_10660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ab146ba056a02978eafa90c5035e9bb3.jpg","text":"TemporaryFile(/tmp/multipartBody8869842067999823333asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095409600,"filename":"image_16062025_19_35_35_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/27ed97f689a668d24afb1ef0c0485573.jpg","text":"TemporaryFile(/tmp/multipartBody5307229751577172541asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095409600,"filename":"image_16062025_19_35_04_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6ba1c0a618c22ad7eedf85bc1c9baf2a.jpg","text":"TemporaryFile(/tmp/multipartBody1507509958508627967asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095409600,"filename":"image_16062025_19_35_25_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/321cca01bfe92b6d58184d0b3fa4d37c.jpg","text":"TemporaryFile(/tmp/multipartBody7944770806040136173asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095409600,"filename":"image_16062025_19_35_45_9610.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366588099","file1":"1366588094","file0":"1366588090","file4":"1366588115","file5":"1366588120","file3":"1366588104"},"map_files_photo_id_array":[{"photo_id":"1366588120","filename":"file5"},{"photo_id":"1366588099","filename":"file2"},{"photo_id":"1366588115","filename":"file4"},{"photo_id":"1366588094","filename":"file1"},{"photo_id":"1366588090","filename":"file0"},{"photo_id":"1366588104","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366588120":["hashtag1","hashtag2"]},{"1366588104":["hashtag1","hashtag2"]},{"1366588094":["hashtag1","hashtag2"]},{"1366588115":["hashtag1","hashtag2"]},{"1366588099":["hashtag1","hashtag2"]},{"1366588090":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366588120, 1366588104, 1366588094, 1366588115, 1366588099, 1366588090)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 57.62107038497925 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:36:47.108539
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/36/image_16062025_19_36_45_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/19/36/image_16062025_19_36_35_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/19/36/image_16062025_19_36_24_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/19/36/image_16062025_19_36_15_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/19/35/image_16062025_19_36_05_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/19/35/image_16062025_19_35_55_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/36/image_16062025_19_36_45_9609.jpg', '/home/nano/Desktop/images/16062025/19/36/image_16062025_19_36_35_10618.jpg', '/home/nano/Desktop/images/16062025/19/36/image_16062025_19_36_24_9611.jpg', '/home/nano/Desktop/images/16062025/19/36/image_16062025_19_36_15_9608.jpg', '/home/nano/Desktop/images/16062025/19/35/image_16062025_19_36_05_10639.jpg', '/home/nano/Desktop/images/16062025/19/35/image_16062025_19_35_55_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/36/image_16062025_19_36_45_9609.jpg
/home/nano/Desktop/images/16062025/19/36/image_16062025_19_36_35_10618.jpg
/home/nano/Desktop/images/16062025/19/36/image_16062025_19_36_24_9611.jpg
/home/nano/Desktop/images/16062025/19/36/image_16062025_19_36_15_9608.jpg
/home/nano/Desktop/images/16062025/19/35/image_16062025_19_36_05_10639.jpg
/home/nano/Desktop/images/16062025/19/35/image_16062025_19_35_55_9610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366588147","1366588143","1366588163","1366588157","1366588151","1366588133"],"photo_ids_order":["1366588133","1366588143","1366588147","1366588151","1366588157","1366588163"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8e11381af2c82816d7b63f2d179365cc.jpg","text":"TemporaryFile(/tmp/multipartBody5082347506127741415asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095469991,"filename":"image_16062025_19_36_24_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8bed08d24b7315469f96f397c8f0bdf1.jpg","text":"TemporaryFile(/tmp/multipartBody2751902178315013856asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095469991,"filename":"image_16062025_19_36_35_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6c9857e17c2195fa58fc845b7814d1d5.jpg","text":"TemporaryFile(/tmp/multipartBody7749880397947943895asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095469991,"filename":"image_16062025_19_35_55_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ff14f094fbdf1ecca853f2e2c82d66c5.jpg","text":"TemporaryFile(/tmp/multipartBody3677778880886714513asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095469991,"filename":"image_16062025_19_36_05_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fb821d5519985ee1717ec7b8d80d3dcd.jpg","text":"TemporaryFile(/tmp/multipartBody4676876880075573745asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095469991,"filename":"image_16062025_19_36_15_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a072d3ad45649b72836cb172dd101f07.jpg","text":"TemporaryFile(/tmp/multipartBody5150623563668635468asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095469991,"filename":"image_16062025_19_36_45_9609.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366588147","file1":"1366588143","file0":"1366588133","file4":"1366588157","file5":"1366588163","file3":"1366588151"},"map_files_photo_id_array":[{"photo_id":"1366588163","filename":"file5"},{"photo_id":"1366588147","filename":"file2"},{"photo_id":"1366588157","filename":"file4"},{"photo_id":"1366588143","filename":"file1"},{"photo_id":"1366588133","filename":"file0"},{"photo_id":"1366588151","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366588147":["hashtag1","hashtag2"]},{"1366588143":["hashtag1","hashtag2"]},{"1366588163":["hashtag1","hashtag2"]},{"1366588157":["hashtag1","hashtag2"]},{"1366588151":["hashtag1","hashtag2"]},{"1366588133":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366588147, 1366588143, 1366588163, 1366588157, 1366588151, 1366588133)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 52.702062129974365 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:37:47.264841
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/37/image_16062025_19_37_45_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/19/37/image_16062025_19_37_35_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/19/37/image_16062025_19_37_25_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/19/37/image_16062025_19_37_14_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/19/36/image_16062025_19_37_05_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/19/36/image_16062025_19_36_55_10619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/37/image_16062025_19_37_45_10618.jpg', '/home/nano/Desktop/images/16062025/19/37/image_16062025_19_37_35_9610.jpg', '/home/nano/Desktop/images/16062025/19/37/image_16062025_19_37_25_10619.jpg', '/home/nano/Desktop/images/16062025/19/37/image_16062025_19_37_14_9617.jpg', '/home/nano/Desktop/images/16062025/19/36/image_16062025_19_37_05_9630.jpg', '/home/nano/Desktop/images/16062025/19/36/image_16062025_19_36_55_10619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/37/image_16062025_19_37_45_10618.jpg
/home/nano/Desktop/images/16062025/19/37/image_16062025_19_37_35_9610.jpg
/home/nano/Desktop/images/16062025/19/37/image_16062025_19_37_25_10619.jpg
/home/nano/Desktop/images/16062025/19/37/image_16062025_19_37_14_9617.jpg
/home/nano/Desktop/images/16062025/19/36/image_16062025_19_37_05_9630.jpg
/home/nano/Desktop/images/16062025/19/36/image_16062025_19_36_55_10619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366588177","1366588179","1366588188","1366588181","1366588199","1366588184"],"photo_ids_order":["1366588177","1366588179","1366588181","1366588184","1366588188","1366588199"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fc332c8673bd86bd1ea2295681e3906b.jpg","text":"TemporaryFile(/tmp/multipartBody3415943787402357673asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095529036,"filename":"image_16062025_19_37_45_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6824d963dff7ec96e05fc67d5b6c95a5.jpg","text":"TemporaryFile(/tmp/multipartBody1299194773146949532asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095529036,"filename":"image_16062025_19_37_35_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/eb0551fda53ee082baabc2947c24883c.jpg","text":"TemporaryFile(/tmp/multipartBody1723191124043239579asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095529036,"filename":"image_16062025_19_37_05_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dd5846504c77c90fe729e95ec4fb0acc.jpg","text":"TemporaryFile(/tmp/multipartBody6887764754317974631asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095529036,"filename":"image_16062025_19_37_25_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5fed5fd1aa858e41eff4860e8a24f74a.jpg","text":"TemporaryFile(/tmp/multipartBody3992089426175193129asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095529036,"filename":"image_16062025_19_36_55_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7e08fc65d53548e782ad3cd20cd295c1.jpg","text":"TemporaryFile(/tmp/multipartBody7966500815926208341asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095529036,"filename":"image_16062025_19_37_14_9617.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366588181","file1":"1366588179","file0":"1366588177","file4":"1366588188","file5":"1366588199","file3":"1366588184"},"map_files_photo_id_array":[{"photo_id":"1366588199","filename":"file5"},{"photo_id":"1366588181","filename":"file2"},{"photo_id":"1366588188","filename":"file4"},{"photo_id":"1366588179","filename":"file1"},{"photo_id":"1366588177","filename":"file0"},{"photo_id":"1366588184","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366588177":["hashtag1","hashtag2"]},{"1366588179":["hashtag1","hashtag2"]},{"1366588188":["hashtag1","hashtag2"]},{"1366588181":["hashtag1","hashtag2"]},{"1366588199":["hashtag1","hashtag2"]},{"1366588184":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366588177, 1366588179, 1366588188, 1366588181, 1366588199, 1366588184)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 67.44987106323242 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:39:03.653382
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_45_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_25_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_15_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/19/37/image_16062025_19_38_05_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/19/37/image_16062025_19_37_55_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_45_10626.jpg', '/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_34_9625.jpg', '/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_25_9616.jpg', '/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_15_10637.jpg', '/home/nano/Desktop/images/16062025/19/37/image_16062025_19_38_05_9617.jpg', '/home/nano/Desktop/images/16062025/19/37/image_16062025_19_37_55_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_45_10626.jpg
/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_34_9625.jpg
/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_25_9616.jpg
/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_15_10637.jpg
/home/nano/Desktop/images/16062025/19/37/image_16062025_19_38_05_9617.jpg
/home/nano/Desktop/images/16062025/19/37/image_16062025_19_37_55_9610.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.6586556434631348 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:39:17.549141
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/39/image_16062025_19_39_35_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/19/39/image_16062025_19_39_25_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/19/39/image_16062025_19_39_15_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/19/38/image_16062025_19_39_05_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_55_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_45_10626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/39/image_16062025_19_39_35_10619.jpg', '/home/nano/Desktop/images/16062025/19/39/image_16062025_19_39_25_9610.jpg', '/home/nano/Desktop/images/16062025/19/39/image_16062025_19_39_15_9630.jpg', '/home/nano/Desktop/images/16062025/19/38/image_16062025_19_39_05_10643.jpg', '/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_55_9617.jpg', '/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_45_10626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/39/image_16062025_19_39_35_10619.jpg
/home/nano/Desktop/images/16062025/19/39/image_16062025_19_39_25_9610.jpg
/home/nano/Desktop/images/16062025/19/39/image_16062025_19_39_15_9630.jpg
/home/nano/Desktop/images/16062025/19/38/image_16062025_19_39_05_10643.jpg
/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_55_9617.jpg
/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_45_10626.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366588234","1366588278","1366588274","1366588271","1366588244","1366588229"],"photo_ids_order":["1366588229","1366588234","1366588244","1366588271","1366588274","1366588278"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dda98b8f904aa366d76bf3e9ecd05814.jpg","text":"TemporaryFile(/tmp/multipartBody4881529139049713650asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095619739,"filename":"image_16062025_19_39_25_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e77c29681c905b760c14837a8a4615d0.jpg","text":"TemporaryFile(/tmp/multipartBody4412988934475381062asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095619739,"filename":"image_16062025_19_38_45_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bd1d2a065fa491eda48817edcb74319c.jpg","text":"TemporaryFile(/tmp/multipartBody9093854781005365042asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095619739,"filename":"image_16062025_19_38_55_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d63229226b77059e7a10792e5f3c0966.jpg","text":"TemporaryFile(/tmp/multipartBody5114573395123739550asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095619739,"filename":"image_16062025_19_39_05_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/696f6e0666a812b7ee3456da7c37bb11.jpg","text":"TemporaryFile(/tmp/multipartBody4175871709302343426asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095619739,"filename":"image_16062025_19_39_15_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/32ceb100572b1bbc9a405872c9dc8519.jpg","text":"TemporaryFile(/tmp/multipartBody3598109221835152901asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095619739,"filename":"image_16062025_19_39_35_10619.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366588244","file1":"1366588234","file0":"1366588229","file4":"1366588274","file5":"1366588278","file3":"1366588271"},"map_files_photo_id_array":[{"photo_id":"1366588278","filename":"file5"},{"photo_id":"1366588244","filename":"file2"},{"photo_id":"1366588274","filename":"file4"},{"photo_id":"1366588234","filename":"file1"},{"photo_id":"1366588229","filename":"file0"},{"photo_id":"1366588271","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366588234":["hashtag1","hashtag2"]},{"1366588278":["hashtag1","hashtag2"]},{"1366588274":["hashtag1","hashtag2"]},{"1366588271":["hashtag1","hashtag2"]},{"1366588244":["hashtag1","hashtag2"]},{"1366588229":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366588234, 1366588278, 1366588274, 1366588271, 1366588244, 1366588229)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 68.04531598091125 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:40:32.524482
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/40/image_16062025_19_40_45_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/19/40/image_16062025_19_40_35_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/19/40/image_16062025_19_40_25_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/19/40/image_16062025_19_40_15_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/19/39/image_16062025_19_40_05_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/19/39/image_16062025_19_39_54_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/40/image_16062025_19_40_45_9614.jpg', '/home/nano/Desktop/images/16062025/19/40/image_16062025_19_40_35_9610.jpg', '/home/nano/Desktop/images/16062025/19/40/image_16062025_19_40_25_10622.jpg', '/home/nano/Desktop/images/16062025/19/40/image_16062025_19_40_15_9634.jpg', '/home/nano/Desktop/images/16062025/19/39/image_16062025_19_40_05_10636.jpg', '/home/nano/Desktop/images/16062025/19/39/image_16062025_19_39_54_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/40/image_16062025_19_40_45_9614.jpg
/home/nano/Desktop/images/16062025/19/40/image_16062025_19_40_35_9610.jpg
/home/nano/Desktop/images/16062025/19/40/image_16062025_19_40_25_10622.jpg
/home/nano/Desktop/images/16062025/19/40/image_16062025_19_40_15_9634.jpg
/home/nano/Desktop/images/16062025/19/39/image_16062025_19_40_05_10636.jpg
/home/nano/Desktop/images/16062025/19/39/image_16062025_19_39_54_9610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366588303","1366588293","1366588309","1366588313","1366588297","1366588316"],"photo_ids_order":["1366588293","1366588297","1366588303","1366588309","1366588313","1366588316"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e4bc7e775e4231f6b6f297ba3385e907.jpg","text":"TemporaryFile(/tmp/multipartBody4353971722088787126asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095695282,"filename":"image_16062025_19_40_25_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2147f8c2b6ef225778e6bdd21dbc2964.jpg","text":"TemporaryFile(/tmp/multipartBody7945704661161102907asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095695282,"filename":"image_16062025_19_40_45_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0e7f6d56a3f8733d5815a385b17dab70.jpg","text":"TemporaryFile(/tmp/multipartBody5227375637388916714asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095695282,"filename":"image_16062025_19_40_15_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/aa53d4592a491b077c30222e49d24262.jpg","text":"TemporaryFile(/tmp/multipartBody425004236662921590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095695282,"filename":"image_16062025_19_40_05_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ae73f179c854958b0a6b77fac6e16a7d.jpg","text":"TemporaryFile(/tmp/multipartBody3927444258695133210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095695282,"filename":"image_16062025_19_40_35_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7e26ed7cd0fe1f441cbc995c2e4ce59e.jpg","text":"TemporaryFile(/tmp/multipartBody6162098831790105675asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095695282,"filename":"image_16062025_19_39_54_9610.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366588303","file1":"1366588297","file0":"1366588293","file4":"1366588313","file5":"1366588316","file3":"1366588309"},"map_files_photo_id_array":[{"photo_id":"1366588316","filename":"file5"},{"photo_id":"1366588303","filename":"file2"},{"photo_id":"1366588313","filename":"file4"},{"photo_id":"1366588297","filename":"file1"},{"photo_id":"1366588293","filename":"file0"},{"photo_id":"1366588309","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366588303":["hashtag1","hashtag2"]},{"1366588293":["hashtag1","hashtag2"]},{"1366588309":["hashtag1","hashtag2"]},{"1366588313":["hashtag1","hashtag2"]},{"1366588297":["hashtag1","hashtag2"]},{"1366588316":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366588303, 1366588293, 1366588309, 1366588313, 1366588297, 1366588316)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 52.96822381019592 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:41:32.636042
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/41/image_16062025_19_41_35_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/19/41/image_16062025_19_41_25_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/19/40/image_16062025_19_41_05_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/19/40/image_16062025_19_40_55_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_34_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_25_9616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/41/image_16062025_19_41_35_9619.jpg', '/home/nano/Desktop/images/16062025/19/41/image_16062025_19_41_25_10624.jpg', '/home/nano/Desktop/images/16062025/19/40/image_16062025_19_41_05_9617.jpg', '/home/nano/Desktop/images/16062025/19/40/image_16062025_19_40_55_10622.jpg', '/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_34_9625.jpg', '/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_25_9616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/41/image_16062025_19_41_35_9619.jpg
/home/nano/Desktop/images/16062025/19/41/image_16062025_19_41_25_10624.jpg
/home/nano/Desktop/images/16062025/19/40/image_16062025_19_41_05_9617.jpg
/home/nano/Desktop/images/16062025/19/40/image_16062025_19_40_55_10622.jpg
/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_34_9625.jpg
/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_25_9616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366588348","1366588345","1366588330","1366588340","1366588325","1366588334"],"photo_ids_order":["1366588325","1366588330","1366588334","1366588340","1366588345","1366588348"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/91a52cf38c4ab3170fb66857f792f69a.jpg","text":"TemporaryFile(/tmp/multipartBody1789625042374473511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095755969,"filename":"image_16062025_19_38_25_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/827a745a2a35d9f46c95a73b2998c116.jpg","text":"TemporaryFile(/tmp/multipartBody8702201301642260884asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095755969,"filename":"image_16062025_19_38_34_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/79ed0ff7395fbb6d6fa11f90f86895c2.jpg","text":"TemporaryFile(/tmp/multipartBody4323959897535079041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095755969,"filename":"image_16062025_19_41_25_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/32d9ff1919eb4570d1c1314a780f070d.jpg","text":"TemporaryFile(/tmp/multipartBody1653413493238174917asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095755969,"filename":"image_16062025_19_40_55_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1acc236fe9d8054e8d503ef4435fa778.jpg","text":"TemporaryFile(/tmp/multipartBody8565370180539530250asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095755969,"filename":"image_16062025_19_41_35_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3f06375c83618f760d0eaf0b7dd2465b.jpg","text":"TemporaryFile(/tmp/multipartBody9091295938537463802asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095755969,"filename":"image_16062025_19_41_05_9617.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366588334","file1":"1366588330","file0":"1366588325","file4":"1366588345","file5":"1366588348","file3":"1366588340"},"map_files_photo_id_array":[{"photo_id":"1366588348","filename":"file5"},{"photo_id":"1366588334","filename":"file2"},{"photo_id":"1366588345","filename":"file4"},{"photo_id":"1366588330","filename":"file1"},{"photo_id":"1366588325","filename":"file0"},{"photo_id":"1366588340","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366588348":["hashtag1","hashtag2"]},{"1366588345":["hashtag1","hashtag2"]},{"1366588330":["hashtag1","hashtag2"]},{"1366588340":["hashtag1","hashtag2"]},{"1366588325":["hashtag1","hashtag2"]},{"1366588334":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366588348, 1366588345, 1366588330, 1366588340, 1366588325, 1366588334)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 67.00553011894226 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:42:47.715098
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/42/image_16062025_19_42_45_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/19/42/image_16062025_19_42_34_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/19/42/image_16062025_19_42_25_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/19/42/image_16062025_19_42_15_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/19/41/image_16062025_19_42_05_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/19/41/image_16062025_19_41_45_10618.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/42/image_16062025_19_42_45_10625.jpg', '/home/nano/Desktop/images/16062025/19/42/image_16062025_19_42_34_9612.jpg', '/home/nano/Desktop/images/16062025/19/42/image_16062025_19_42_25_9610.jpg', '/home/nano/Desktop/images/16062025/19/42/image_16062025_19_42_15_10648.jpg', '/home/nano/Desktop/images/16062025/19/41/image_16062025_19_42_05_9634.jpg', '/home/nano/Desktop/images/16062025/19/41/image_16062025_19_41_45_10618.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/42/image_16062025_19_42_45_10625.jpg
/home/nano/Desktop/images/16062025/19/42/image_16062025_19_42_34_9612.jpg
/home/nano/Desktop/images/16062025/19/42/image_16062025_19_42_25_9610.jpg
/home/nano/Desktop/images/16062025/19/42/image_16062025_19_42_15_10648.jpg
/home/nano/Desktop/images/16062025/19/41/image_16062025_19_42_05_9634.jpg
/home/nano/Desktop/images/16062025/19/41/image_16062025_19_41_45_10618.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366588381","1366588369","1366588417","1366588401","1366588394","1366588372"],"photo_ids_order":["1366588369","1366588372","1366588381","1366588394","1366588401","1366588417"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cd984e21219339369ddf897867aade95.jpg","text":"TemporaryFile(/tmp/multipartBody2669070250104214427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095830531,"filename":"image_16062025_19_42_25_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2c49603c48a392c690be2b409d54c079.jpg","text":"TemporaryFile(/tmp/multipartBody6410691141343854929asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095830531,"filename":"image_16062025_19_42_45_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0ba46dbcdc69af3e98d73bc335462bed.jpg","text":"TemporaryFile(/tmp/multipartBody4846873614116094403asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095830531,"filename":"image_16062025_19_41_45_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a8181083d45957accf3c807937cb154f.jpg","text":"TemporaryFile(/tmp/multipartBody727236558639898639asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095830531,"filename":"image_16062025_19_42_05_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/10fa7cfc6e3eedad2d7761f4257381e0.jpg","text":"TemporaryFile(/tmp/multipartBody1755616230617847172asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095830531,"filename":"image_16062025_19_42_15_10648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/99f8b741da18315e23b3a3c80acfe0a2.jpg","text":"TemporaryFile(/tmp/multipartBody6147263685551454124asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095830531,"filename":"image_16062025_19_42_34_9612.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366588381","file1":"1366588372","file0":"1366588369","file4":"1366588401","file5":"1366588417","file3":"1366588394"},"map_files_photo_id_array":[{"photo_id":"1366588417","filename":"file5"},{"photo_id":"1366588381","filename":"file2"},{"photo_id":"1366588401","filename":"file4"},{"photo_id":"1366588372","filename":"file1"},{"photo_id":"1366588369","filename":"file0"},{"photo_id":"1366588394","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366588381":["hashtag1","hashtag2"]},{"1366588369":["hashtag1","hashtag2"]},{"1366588417":["hashtag1","hashtag2"]},{"1366588401":["hashtag1","hashtag2"]},{"1366588394":["hashtag1","hashtag2"]},{"1366588372":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366588381, 1366588369, 1366588417, 1366588401, 1366588394, 1366588372)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 59.965885162353516 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:44:02.647113
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/43/image_16062025_19_43_45_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/19/43/image_16062025_19_43_35_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/19/43/image_16062025_19_43_24_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/19/43/image_16062025_19_43_15_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/19/42/image_16062025_19_43_05_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/19/42/image_16062025_19_42_55_9617.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/43/image_16062025_19_43_45_9609.jpg', '/home/nano/Desktop/images/16062025/19/43/image_16062025_19_43_35_10636.jpg', '/home/nano/Desktop/images/16062025/19/43/image_16062025_19_43_24_9609.jpg', '/home/nano/Desktop/images/16062025/19/43/image_16062025_19_43_15_9642.jpg', '/home/nano/Desktop/images/16062025/19/42/image_16062025_19_43_05_10622.jpg', '/home/nano/Desktop/images/16062025/19/42/image_16062025_19_42_55_9617.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/43/image_16062025_19_43_45_9609.jpg
/home/nano/Desktop/images/16062025/19/43/image_16062025_19_43_35_10636.jpg
/home/nano/Desktop/images/16062025/19/43/image_16062025_19_43_24_9609.jpg
/home/nano/Desktop/images/16062025/19/43/image_16062025_19_43_15_9642.jpg
/home/nano/Desktop/images/16062025/19/42/image_16062025_19_43_05_10622.jpg
/home/nano/Desktop/images/16062025/19/42/image_16062025_19_42_55_9617.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366588534","1366588504","1366588499","1366588490","1366588472","1366588511"],"photo_ids_order":["1366588472","1366588490","1366588499","1366588504","1366588511","1366588534"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e563b7c96be87588f2aaf54d0b3f1ee5.jpg","text":"TemporaryFile(/tmp/multipartBody7133931114978841835asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095914088,"filename":"image_16062025_19_42_55_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ccd42860823d9576319e240d9cc5bf7e.jpg","text":"TemporaryFile(/tmp/multipartBody1461203613909703596asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095914088,"filename":"image_16062025_19_43_15_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c69a466063690adfd3c1b926ec3ab2a5.jpg","text":"TemporaryFile(/tmp/multipartBody2510104573126984022asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095914088,"filename":"image_16062025_19_43_24_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7ff67ab9e7525947e1a6484f5254bf05.jpg","text":"TemporaryFile(/tmp/multipartBody8464726416202291923asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095914088,"filename":"image_16062025_19_43_35_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/080020542ffc9633198491668c69b819.jpg","text":"TemporaryFile(/tmp/multipartBody2974972421425168297asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095914088,"filename":"image_16062025_19_43_45_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b32ea367ed1236ca04788dca69303e5f.jpg","text":"TemporaryFile(/tmp/multipartBody205764122737960564asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095914088,"filename":"image_16062025_19_43_05_10622.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366588499","file1":"1366588490","file0":"1366588472","file4":"1366588511","file5":"1366588534","file3":"1366588504"},"map_files_photo_id_array":[{"photo_id":"1366588534","filename":"file5"},{"photo_id":"1366588499","filename":"file2"},{"photo_id":"1366588511","filename":"file4"},{"photo_id":"1366588490","filename":"file1"},{"photo_id":"1366588472","filename":"file0"},{"photo_id":"1366588504","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366588534":["hashtag1","hashtag2"]},{"1366588504":["hashtag1","hashtag2"]},{"1366588499":["hashtag1","hashtag2"]},{"1366588490":["hashtag1","hashtag2"]},{"1366588472":["hashtag1","hashtag2"]},{"1366588511":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366588534, 1366588504, 1366588499, 1366588490, 1366588472, 1366588511)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 68.84497904777527 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:45:17.024899
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/45/image_16062025_19_45_35_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/19/45/image_16062025_19_45_25_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/19/45/image_16062025_19_45_15_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/19/44/image_16062025_19_45_05_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/19/44/image_16062025_19_44_55_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/19/44/image_16062025_19_44_44_9609.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/45/image_16062025_19_45_35_9608.jpg', '/home/nano/Desktop/images/16062025/19/45/image_16062025_19_45_25_9619.jpg', '/home/nano/Desktop/images/16062025/19/45/image_16062025_19_45_15_10641.jpg', '/home/nano/Desktop/images/16062025/19/44/image_16062025_19_45_05_9624.jpg', '/home/nano/Desktop/images/16062025/19/44/image_16062025_19_44_55_10638.jpg', '/home/nano/Desktop/images/16062025/19/44/image_16062025_19_44_44_9609.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/45/image_16062025_19_45_35_9608.jpg
/home/nano/Desktop/images/16062025/19/45/image_16062025_19_45_25_9619.jpg
/home/nano/Desktop/images/16062025/19/45/image_16062025_19_45_15_10641.jpg
/home/nano/Desktop/images/16062025/19/44/image_16062025_19_45_05_9624.jpg
/home/nano/Desktop/images/16062025/19/44/image_16062025_19_44_55_10638.jpg
/home/nano/Desktop/images/16062025/19/44/image_16062025_19_44_44_9609.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366588609","1366588590","1366588593","1366588620","1366588586","1366588637"],"photo_ids_order":["1366588586","1366588590","1366588593","1366588609","1366588620","1366588637"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2947b7b403ecae073fa8333911796dcc.jpg","text":"TemporaryFile(/tmp/multipartBody945915614573448603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095979588,"filename":"image_16062025_19_45_05_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/48c256d2e05d0812b04101849a825658.jpg","text":"TemporaryFile(/tmp/multipartBody2833588759295526487asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095979588,"filename":"image_16062025_19_45_25_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/19546da1eb87b186d97087573543f469.jpg","text":"TemporaryFile(/tmp/multipartBody7061998510178309758asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095979588,"filename":"image_16062025_19_45_15_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3051f69efc6877bb83ca00c28fe0503a.jpg","text":"TemporaryFile(/tmp/multipartBody3628544866022782507asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095979588,"filename":"image_16062025_19_44_55_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5bba4f6e02464d760e28c205a94a4061.jpg","text":"TemporaryFile(/tmp/multipartBody6215939340298462127asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095979588,"filename":"image_16062025_19_45_35_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/84d016621df1afad9fbbb9dfd5517dae.jpg","text":"TemporaryFile(/tmp/multipartBody7205226721903801440asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750095979588,"filename":"image_16062025_19_44_44_9609.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366588593","file1":"1366588590","file0":"1366588586","file4":"1366588620","file5":"1366588637","file3":"1366588609"},"map_files_photo_id_array":[{"photo_id":"1366588637","filename":"file5"},{"photo_id":"1366588593","filename":"file2"},{"photo_id":"1366588620","filename":"file4"},{"photo_id":"1366588590","filename":"file1"},{"photo_id":"1366588586","filename":"file0"},{"photo_id":"1366588609","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366588609":["hashtag1","hashtag2"]},{"1366588590":["hashtag1","hashtag2"]},{"1366588593":["hashtag1","hashtag2"]},{"1366588620":["hashtag1","hashtag2"]},{"1366588586":["hashtag1","hashtag2"]},{"1366588637":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366588609, 1366588590, 1366588593, 1366588620, 1366588586, 1366588637)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 63.77499961853027 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:46:32.140637
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/46/image_16062025_19_46_45_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/19/46/image_16062025_19_46_35_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/19/46/image_16062025_19_46_25_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/19/46/image_16062025_19_46_15_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/19/45/image_16062025_19_46_04_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/19/45/image_16062025_19_45_55_9630.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/46/image_16062025_19_46_45_9616.jpg', '/home/nano/Desktop/images/16062025/19/46/image_16062025_19_46_35_10624.jpg', '/home/nano/Desktop/images/16062025/19/46/image_16062025_19_46_25_9608.jpg', '/home/nano/Desktop/images/16062025/19/46/image_16062025_19_46_15_10642.jpg', '/home/nano/Desktop/images/16062025/19/45/image_16062025_19_46_04_9619.jpg', '/home/nano/Desktop/images/16062025/19/45/image_16062025_19_45_55_9630.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/46/image_16062025_19_46_45_9616.jpg
/home/nano/Desktop/images/16062025/19/46/image_16062025_19_46_35_10624.jpg
/home/nano/Desktop/images/16062025/19/46/image_16062025_19_46_25_9608.jpg
/home/nano/Desktop/images/16062025/19/46/image_16062025_19_46_15_10642.jpg
/home/nano/Desktop/images/16062025/19/45/image_16062025_19_46_04_9619.jpg
/home/nano/Desktop/images/16062025/19/45/image_16062025_19_45_55_9630.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366588729","1366588708","1366588698","1366588731","1366588725","1366588679"],"photo_ids_order":["1366588679","1366588698","1366588708","1366588725","1366588729","1366588731"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a1a94f244348f0de0456c058d1c7b086.jpg","text":"TemporaryFile(/tmp/multipartBody5018821605845273043asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096056639,"filename":"image_16062025_19_46_04_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/004ad67a2f87b0fbed39eeaef4c07fc0.jpg","text":"TemporaryFile(/tmp/multipartBody6383859425743980656asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096056639,"filename":"image_16062025_19_46_25_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/227466ec2e5ae3f42db7b0b2499eb525.jpg","text":"TemporaryFile(/tmp/multipartBody2964117950589601603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096056639,"filename":"image_16062025_19_46_35_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/10bf0c7b003f15ea4537385c3046edea.jpg","text":"TemporaryFile(/tmp/multipartBody9157885615714583586asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096056639,"filename":"image_16062025_19_45_55_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e3482642694d26226da29e86ba01b7f9.jpg","text":"TemporaryFile(/tmp/multipartBody1725128293057614001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096056639,"filename":"image_16062025_19_46_15_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/14591a988782d758bf7f53df147bf6b7.jpg","text":"TemporaryFile(/tmp/multipartBody7135185562945087662asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096056639,"filename":"image_16062025_19_46_45_9616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366588708","file1":"1366588698","file0":"1366588679","file4":"1366588729","file5":"1366588731","file3":"1366588725"},"map_files_photo_id_array":[{"photo_id":"1366588731","filename":"file5"},{"photo_id":"1366588708","filename":"file2"},{"photo_id":"1366588729","filename":"file4"},{"photo_id":"1366588698","filename":"file1"},{"photo_id":"1366588679","filename":"file0"},{"photo_id":"1366588725","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366588729":["hashtag1","hashtag2"]},{"1366588708":["hashtag1","hashtag2"]},{"1366588698":["hashtag1","hashtag2"]},{"1366588731":["hashtag1","hashtag2"]},{"1366588725":["hashtag1","hashtag2"]},{"1366588679":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366588729, 1366588708, 1366588698, 1366588731, 1366588725, 1366588679)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 70.57545304298401 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:47:47.257404
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/47/image_16062025_19_47_45_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/19/47/image_16062025_19_47_35_10637.jpg', 2), ('/home/nano/Desktop/images/16062025/19/47/image_16062025_19_47_24_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/19/47/image_16062025_19_47_15_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/19/46/image_16062025_19_47_05_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/19/46/image_16062025_19_46_55_9615.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/47/image_16062025_19_47_45_9615.jpg', '/home/nano/Desktop/images/16062025/19/47/image_16062025_19_47_35_10637.jpg', '/home/nano/Desktop/images/16062025/19/47/image_16062025_19_47_24_9612.jpg', '/home/nano/Desktop/images/16062025/19/47/image_16062025_19_47_15_9610.jpg', '/home/nano/Desktop/images/16062025/19/46/image_16062025_19_47_05_10641.jpg', '/home/nano/Desktop/images/16062025/19/46/image_16062025_19_46_55_9615.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/47/image_16062025_19_47_45_9615.jpg
/home/nano/Desktop/images/16062025/19/47/image_16062025_19_47_35_10637.jpg
/home/nano/Desktop/images/16062025/19/47/image_16062025_19_47_24_9612.jpg
/home/nano/Desktop/images/16062025/19/47/image_16062025_19_47_15_9610.jpg
/home/nano/Desktop/images/16062025/19/46/image_16062025_19_47_05_10641.jpg
/home/nano/Desktop/images/16062025/19/46/image_16062025_19_46_55_9615.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366588852","1366588827","1366588799","1366588778","1366588871","1366588817"],"photo_ids_order":["1366588778","1366588799","1366588817","1366588827","1366588852","1366588871"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c7d6385b6fd803b896e81ac9e2401e6b.jpg","text":"TemporaryFile(/tmp/multipartBody1265881537822901403asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096130207,"filename":"image_16062025_19_47_05_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/80867f9c799472a100293ceccb7654aa.jpg","text":"TemporaryFile(/tmp/multipartBody5115840969890562076asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096130207,"filename":"image_16062025_19_47_15_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4203127fc1839c2b65f949a2fe526e78.jpg","text":"TemporaryFile(/tmp/multipartBody4418529527582865761asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096130207,"filename":"image_16062025_19_47_35_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/90ed71096cc43945312ebca9af66b942.jpg","text":"TemporaryFile(/tmp/multipartBody6886195040248555486asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096130207,"filename":"image_16062025_19_47_45_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/175ae14c7960ff34c7864899bc3e6189.jpg","text":"TemporaryFile(/tmp/multipartBody746364063108791244asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096130207,"filename":"image_16062025_19_46_55_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a63fb75be47ca73fa2d98aaca81eabde.jpg","text":"TemporaryFile(/tmp/multipartBody7202306894722448834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096130207,"filename":"image_16062025_19_47_24_9612.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366588817","file1":"1366588799","file0":"1366588778","file4":"1366588852","file5":"1366588871","file3":"1366588827"},"map_files_photo_id_array":[{"photo_id":"1366588871","filename":"file5"},{"photo_id":"1366588817","filename":"file2"},{"photo_id":"1366588852","filename":"file4"},{"photo_id":"1366588799","filename":"file1"},{"photo_id":"1366588778","filename":"file0"},{"photo_id":"1366588827","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366588852":["hashtag1","hashtag2"]},{"1366588827":["hashtag1","hashtag2"]},{"1366588799":["hashtag1","hashtag2"]},{"1366588778":["hashtag1","hashtag2"]},{"1366588871":["hashtag1","hashtag2"]},{"1366588817":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366588852, 1366588827, 1366588799, 1366588778, 1366588871, 1366588817)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 70.2676146030426 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:49:03.531479
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/48/image_16062025_19_48_44_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/19/48/image_16062025_19_48_35_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/19/48/image_16062025_19_48_25_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/19/48/image_16062025_19_48_15_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/19/47/image_16062025_19_48_05_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/19/47/image_16062025_19_47_55_10628.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/48/image_16062025_19_48_44_9628.jpg', '/home/nano/Desktop/images/16062025/19/48/image_16062025_19_48_35_9611.jpg', '/home/nano/Desktop/images/16062025/19/48/image_16062025_19_48_25_10627.jpg', '/home/nano/Desktop/images/16062025/19/48/image_16062025_19_48_15_9639.jpg', '/home/nano/Desktop/images/16062025/19/47/image_16062025_19_48_05_9630.jpg', '/home/nano/Desktop/images/16062025/19/47/image_16062025_19_47_55_10628.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/48/image_16062025_19_48_44_9628.jpg
/home/nano/Desktop/images/16062025/19/48/image_16062025_19_48_35_9611.jpg
/home/nano/Desktop/images/16062025/19/48/image_16062025_19_48_25_10627.jpg
/home/nano/Desktop/images/16062025/19/48/image_16062025_19_48_15_9639.jpg
/home/nano/Desktop/images/16062025/19/47/image_16062025_19_48_05_9630.jpg
/home/nano/Desktop/images/16062025/19/47/image_16062025_19_47_55_10628.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366588939","1366588924","1366588890","1366588883","1366588943","1366588948"],"photo_ids_order":["1366588883","1366588890","1366588924","1366588939","1366588943","1366588948"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/29288097e838e336596e3a44254d1d81.jpg","text":"TemporaryFile(/tmp/multipartBody1636273047141209943asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096220335,"filename":"image_16062025_19_48_15_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a3aae7037ca4fd7b5c40057a35042fb4.jpg","text":"TemporaryFile(/tmp/multipartBody984830765353509809asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096220335,"filename":"image_16062025_19_48_25_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2f9fba156456b8a690f34a5da2e19082.jpg","text":"TemporaryFile(/tmp/multipartBody2053447359099388759asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096220335,"filename":"image_16062025_19_48_35_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f8d33ec3d1213fa650f9aba763ee6a90.jpg","text":"TemporaryFile(/tmp/multipartBody2627772961979194707asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096220335,"filename":"image_16062025_19_48_44_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e4a6f82844aaf5d85bdccdefe6428e96.jpg","text":"TemporaryFile(/tmp/multipartBody3188143396861688240asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096220335,"filename":"image_16062025_19_48_05_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/475415fd710520cdccdeed96046cd537.jpg","text":"TemporaryFile(/tmp/multipartBody5376926843818697110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096220335,"filename":"image_16062025_19_47_55_10628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366588924","file1":"1366588890","file0":"1366588883","file4":"1366588943","file5":"1366588948","file3":"1366588939"},"map_files_photo_id_array":[{"photo_id":"1366588948","filename":"file5"},{"photo_id":"1366588924","filename":"file2"},{"photo_id":"1366588943","filename":"file4"},{"photo_id":"1366588890","filename":"file1"},{"photo_id":"1366588883","filename":"file0"},{"photo_id":"1366588939","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366588939":["hashtag1","hashtag2"]},{"1366588924":["hashtag1","hashtag2"]},{"1366588890":["hashtag1","hashtag2"]},{"1366588883":["hashtag1","hashtag2"]},{"1366588943":["hashtag1","hashtag2"]},{"1366588948":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366588939, 1366588924, 1366588890, 1366588883, 1366588943, 1366588948)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 83.6574125289917 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:50:32.554888
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/50/image_16062025_19_50_45_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/19/50/image_16062025_19_50_35_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/19/50/image_16062025_19_50_25_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/19/50/image_16062025_19_50_15_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/19/49/image_16062025_19_50_04_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/19/49/image_16062025_19_49_55_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/50/image_16062025_19_50_45_9611.jpg', '/home/nano/Desktop/images/16062025/19/50/image_16062025_19_50_35_10626.jpg', '/home/nano/Desktop/images/16062025/19/50/image_16062025_19_50_25_9616.jpg', '/home/nano/Desktop/images/16062025/19/50/image_16062025_19_50_15_10635.jpg', '/home/nano/Desktop/images/16062025/19/49/image_16062025_19_50_04_9634.jpg', '/home/nano/Desktop/images/16062025/19/49/image_16062025_19_49_55_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/50/image_16062025_19_50_45_9611.jpg
/home/nano/Desktop/images/16062025/19/50/image_16062025_19_50_35_10626.jpg
/home/nano/Desktop/images/16062025/19/50/image_16062025_19_50_25_9616.jpg
/home/nano/Desktop/images/16062025/19/50/image_16062025_19_50_15_10635.jpg
/home/nano/Desktop/images/16062025/19/49/image_16062025_19_50_04_9634.jpg
/home/nano/Desktop/images/16062025/19/49/image_16062025_19_49_55_9610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366588968","1366588982","1366588976","1366588979","1366588964","1366588972"],"photo_ids_order":["1366588964","1366588968","1366588972","1366588976","1366588979","1366588982"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8f7466b38ddfd17ff5b52a4a3e765c6d.jpg","text":"TemporaryFile(/tmp/multipartBody4712402212253166003asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096295527,"filename":"image_16062025_19_50_35_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a6612264e2ebe6ab0b85a258b12f70cc.jpg","text":"TemporaryFile(/tmp/multipartBody5336005266794633107asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096295527,"filename":"image_16062025_19_49_55_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cd2b17d44f87cb9cbdbd6afbc5643c9b.jpg","text":"TemporaryFile(/tmp/multipartBody7552663169340895767asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096295527,"filename":"image_16062025_19_50_15_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c7169e1c8b73ea6da37f112b96ba04ce.jpg","text":"TemporaryFile(/tmp/multipartBody5400965653205953316asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096295527,"filename":"image_16062025_19_50_04_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/61f1509b9339dfbcde0c3dba1959c4a6.jpg","text":"TemporaryFile(/tmp/multipartBody8960003275342531013asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096295527,"filename":"image_16062025_19_50_45_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/09dca7949ba606aa9fa6a0e74e8668fb.jpg","text":"TemporaryFile(/tmp/multipartBody5183160327049419135asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096295527,"filename":"image_16062025_19_50_25_9616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366588972","file1":"1366588968","file0":"1366588964","file4":"1366588979","file5":"1366588982","file3":"1366588976"},"map_files_photo_id_array":[{"photo_id":"1366588982","filename":"file5"},{"photo_id":"1366588972","filename":"file2"},{"photo_id":"1366588979","filename":"file4"},{"photo_id":"1366588968","filename":"file1"},{"photo_id":"1366588964","filename":"file0"},{"photo_id":"1366588976","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366588968":["hashtag1","hashtag2"]},{"1366588982":["hashtag1","hashtag2"]},{"1366588976":["hashtag1","hashtag2"]},{"1366588979":["hashtag1","hashtag2"]},{"1366588964":["hashtag1","hashtag2"]},{"1366588972":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366588968, 1366588982, 1366588976, 1366588979, 1366588964, 1366588972)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 52.37610721588135 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:51:32.679738
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/51/image_16062025_19_51_45_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/19/51/image_16062025_19_51_35_10615.jpg', 2), ('/home/nano/Desktop/images/16062025/19/51/image_16062025_19_51_24_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/19/51/image_16062025_19_51_15_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/19/50/image_16062025_19_51_05_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/19/50/image_16062025_19_50_55_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/51/image_16062025_19_51_45_9602.jpg', '/home/nano/Desktop/images/16062025/19/51/image_16062025_19_51_35_10615.jpg', '/home/nano/Desktop/images/16062025/19/51/image_16062025_19_51_24_9622.jpg', '/home/nano/Desktop/images/16062025/19/51/image_16062025_19_51_15_9628.jpg', '/home/nano/Desktop/images/16062025/19/50/image_16062025_19_51_05_10635.jpg', '/home/nano/Desktop/images/16062025/19/50/image_16062025_19_50_55_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/51/image_16062025_19_51_45_9602.jpg
/home/nano/Desktop/images/16062025/19/51/image_16062025_19_51_35_10615.jpg
/home/nano/Desktop/images/16062025/19/51/image_16062025_19_51_24_9622.jpg
/home/nano/Desktop/images/16062025/19/51/image_16062025_19_51_15_9628.jpg
/home/nano/Desktop/images/16062025/19/50/image_16062025_19_51_05_10635.jpg
/home/nano/Desktop/images/16062025/19/50/image_16062025_19_50_55_9610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366588995","1366589022","1366589016","1366589042","1366589048","1366589003"],"photo_ids_order":["1366588995","1366589003","1366589016","1366589022","1366589042","1366589048"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b9adffa60db2b504d392bbdf70ba2112.jpg","text":"TemporaryFile(/tmp/multipartBody869199390387030441asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096355761,"filename":"image_16062025_19_51_45_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/419e9591379cc4eeb35e6ec598473e40.jpg","text":"TemporaryFile(/tmp/multipartBody6086147463577450858asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096355761,"filename":"image_16062025_19_51_15_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/48a7ccc0c4fa675c8869e7f9b6ce7325.jpg","text":"TemporaryFile(/tmp/multipartBody5897288012321575342asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096355761,"filename":"image_16062025_19_51_24_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6f42232ca9229407a45ba73c656ef921.jpg","text":"TemporaryFile(/tmp/multipartBody420621627879594406asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096355761,"filename":"image_16062025_19_51_05_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c579aaaaaf3c501f2a2f1378de857a0b.jpg","text":"TemporaryFile(/tmp/multipartBody304475741830343334asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096355761,"filename":"image_16062025_19_50_55_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f70eca23c891765ed51c7bcbb139d777.jpg","text":"TemporaryFile(/tmp/multipartBody4929180668381841284asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096355761,"filename":"image_16062025_19_51_35_10615.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366589016","file1":"1366589003","file0":"1366588995","file4":"1366589042","file5":"1366589048","file3":"1366589022"},"map_files_photo_id_array":[{"photo_id":"1366589048","filename":"file5"},{"photo_id":"1366589016","filename":"file2"},{"photo_id":"1366589042","filename":"file4"},{"photo_id":"1366589003","filename":"file1"},{"photo_id":"1366588995","filename":"file0"},{"photo_id":"1366589022","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366588995":["hashtag1","hashtag2"]},{"1366589022":["hashtag1","hashtag2"]},{"1366589016":["hashtag1","hashtag2"]},{"1366589042":["hashtag1","hashtag2"]},{"1366589048":["hashtag1","hashtag2"]},{"1366589003":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366588995, 1366589022, 1366589016, 1366589042, 1366589048, 1366589003)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 56.74751019477844 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:52:31.809604
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/52/image_16062025_19_52_44_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/19/52/image_16062025_19_52_35_9656.jpg', 2), ('/home/nano/Desktop/images/16062025/19/52/image_16062025_19_52_25_10608.jpg', 2), ('/home/nano/Desktop/images/16062025/19/52/image_16062025_19_52_14_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/19/51/image_16062025_19_52_05_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/19/51/image_16062025_19_51_55_10601.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/52/image_16062025_19_52_44_9643.jpg', '/home/nano/Desktop/images/16062025/19/52/image_16062025_19_52_35_9656.jpg', '/home/nano/Desktop/images/16062025/19/52/image_16062025_19_52_25_10608.jpg', '/home/nano/Desktop/images/16062025/19/52/image_16062025_19_52_14_9633.jpg', '/home/nano/Desktop/images/16062025/19/51/image_16062025_19_52_05_9613.jpg', '/home/nano/Desktop/images/16062025/19/51/image_16062025_19_51_55_10601.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/52/image_16062025_19_52_44_9643.jpg
/home/nano/Desktop/images/16062025/19/52/image_16062025_19_52_35_9656.jpg
/home/nano/Desktop/images/16062025/19/52/image_16062025_19_52_25_10608.jpg
/home/nano/Desktop/images/16062025/19/52/image_16062025_19_52_14_9633.jpg
/home/nano/Desktop/images/16062025/19/51/image_16062025_19_52_05_9613.jpg
/home/nano/Desktop/images/16062025/19/51/image_16062025_19_51_55_10601.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366589072","1366589081","1366589060","1366589063","1366589066","1366589077"],"photo_ids_order":["1366589060","1366589063","1366589066","1366589072","1366589077","1366589081"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/88f8e1267ee61d995be3108808c4aca9.jpg","text":"TemporaryFile(/tmp/multipartBody2378250599868131689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096413789,"filename":"image_16062025_19_52_14_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9ff0ff77b60dd18ebca130db03f197b5.jpg","text":"TemporaryFile(/tmp/multipartBody7362822846249453769asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096413789,"filename":"image_16062025_19_51_55_10601.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4411007476db6ace1b911573f10b5710.jpg","text":"TemporaryFile(/tmp/multipartBody9154026080992188977asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096413789,"filename":"image_16062025_19_52_44_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dffc6c73e92e4be80800195f29d34c8b.jpg","text":"TemporaryFile(/tmp/multipartBody8844780925275601296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096413789,"filename":"image_16062025_19_52_35_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/59bc27b8d6042ad4afde8cd1ff1eda37.jpg","text":"TemporaryFile(/tmp/multipartBody6928656368301372402asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096413789,"filename":"image_16062025_19_52_25_10608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8743a19a777bfc839a999c4341a976f1.jpg","text":"TemporaryFile(/tmp/multipartBody5827503494476607097asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096413789,"filename":"image_16062025_19_52_05_9613.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366589066","file1":"1366589063","file0":"1366589060","file4":"1366589077","file5":"1366589081","file3":"1366589072"},"map_files_photo_id_array":[{"photo_id":"1366589081","filename":"file5"},{"photo_id":"1366589066","filename":"file2"},{"photo_id":"1366589077","filename":"file4"},{"photo_id":"1366589063","filename":"file1"},{"photo_id":"1366589060","filename":"file0"},{"photo_id":"1366589072","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366589072":["hashtag1","hashtag2"]},{"1366589081":["hashtag1","hashtag2"]},{"1366589060":["hashtag1","hashtag2"]},{"1366589063":["hashtag1","hashtag2"]},{"1366589066":["hashtag1","hashtag2"]},{"1366589077":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366589072, 1366589081, 1366589060, 1366589063, 1366589066, 1366589077)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 56.21472525596619 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:53:31.976356
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/53/image_16062025_19_53_45_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/19/53/image_16062025_19_53_35_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/19/53/image_16062025_19_53_25_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/19/53/image_16062025_19_53_14_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/19/52/image_16062025_19_53_05_9662.jpg', 2), ('/home/nano/Desktop/images/16062025/19/52/image_16062025_19_52_55_10693.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/53/image_16062025_19_53_45_10643.jpg', '/home/nano/Desktop/images/16062025/19/53/image_16062025_19_53_35_9658.jpg', '/home/nano/Desktop/images/16062025/19/53/image_16062025_19_53_25_10645.jpg', '/home/nano/Desktop/images/16062025/19/53/image_16062025_19_53_14_9634.jpg', '/home/nano/Desktop/images/16062025/19/52/image_16062025_19_53_05_9662.jpg', '/home/nano/Desktop/images/16062025/19/52/image_16062025_19_52_55_10693.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/53/image_16062025_19_53_45_10643.jpg
/home/nano/Desktop/images/16062025/19/53/image_16062025_19_53_35_9658.jpg
/home/nano/Desktop/images/16062025/19/53/image_16062025_19_53_25_10645.jpg
/home/nano/Desktop/images/16062025/19/53/image_16062025_19_53_14_9634.jpg
/home/nano/Desktop/images/16062025/19/52/image_16062025_19_53_05_9662.jpg
/home/nano/Desktop/images/16062025/19/52/image_16062025_19_52_55_10693.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366589110","1366589107","1366589097","1366589105","1366589108","1366589101"],"photo_ids_order":["1366589097","1366589101","1366589105","1366589107","1366589108","1366589110"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c089c59a22e8f954a7793164a80dcad4.jpg","text":"TemporaryFile(/tmp/multipartBody6006571816892478338asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096474697,"filename":"image_16062025_19_52_55_10693.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/33110c3e0cb9b43b5e087e7a878df6d7.jpg","text":"TemporaryFile(/tmp/multipartBody9072242518653197385asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096474697,"filename":"image_16062025_19_53_14_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0261e4dadc932cdf01533daf6326de16.jpg","text":"TemporaryFile(/tmp/multipartBody1723514023815905129asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096474697,"filename":"image_16062025_19_53_45_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/26f470386cfcf948d4b50acd03704c8c.jpg","text":"TemporaryFile(/tmp/multipartBody1717843418064556100asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096474697,"filename":"image_16062025_19_53_25_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f850f2931ff656dccd06b418cf3bdb26.jpg","text":"TemporaryFile(/tmp/multipartBody2813195498224867619asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096474697,"filename":"image_16062025_19_53_05_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9877f1ae8a066a6af8c2f05a18ccc233.jpg","text":"TemporaryFile(/tmp/multipartBody3894160762116491136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096474697,"filename":"image_16062025_19_53_35_9658.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366589105","file1":"1366589101","file0":"1366589097","file4":"1366589108","file5":"1366589110","file3":"1366589107"},"map_files_photo_id_array":[{"photo_id":"1366589110","filename":"file5"},{"photo_id":"1366589105","filename":"file2"},{"photo_id":"1366589108","filename":"file4"},{"photo_id":"1366589101","filename":"file1"},{"photo_id":"1366589097","filename":"file0"},{"photo_id":"1366589107","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366589110":["hashtag1","hashtag2"]},{"1366589107":["hashtag1","hashtag2"]},{"1366589097":["hashtag1","hashtag2"]},{"1366589105":["hashtag1","hashtag2"]},{"1366589108":["hashtag1","hashtag2"]},{"1366589101":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366589110, 1366589107, 1366589097, 1366589105, 1366589108, 1366589101)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 55.176695346832275 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:54:32.008103
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/54/image_16062025_19_54_45_10615.jpg', 2), ('/home/nano/Desktop/images/16062025/19/54/image_16062025_19_54_35_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/19/54/image_16062025_19_54_25_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/19/54/image_16062025_19_54_15_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/19/53/image_16062025_19_54_05_9596.jpg', 2), ('/home/nano/Desktop/images/16062025/19/53/image_16062025_19_53_55_9657.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/54/image_16062025_19_54_45_10615.jpg', '/home/nano/Desktop/images/16062025/19/54/image_16062025_19_54_35_9645.jpg', '/home/nano/Desktop/images/16062025/19/54/image_16062025_19_54_25_9644.jpg', '/home/nano/Desktop/images/16062025/19/54/image_16062025_19_54_15_10646.jpg', '/home/nano/Desktop/images/16062025/19/53/image_16062025_19_54_05_9596.jpg', '/home/nano/Desktop/images/16062025/19/53/image_16062025_19_53_55_9657.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/54/image_16062025_19_54_45_10615.jpg
/home/nano/Desktop/images/16062025/19/54/image_16062025_19_54_35_9645.jpg
/home/nano/Desktop/images/16062025/19/54/image_16062025_19_54_25_9644.jpg
/home/nano/Desktop/images/16062025/19/54/image_16062025_19_54_15_10646.jpg
/home/nano/Desktop/images/16062025/19/53/image_16062025_19_54_05_9596.jpg
/home/nano/Desktop/images/16062025/19/53/image_16062025_19_53_55_9657.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366589127","1366589150","1366589161","1366589155","1366589143","1366589137"],"photo_ids_order":["1366589127","1366589137","1366589143","1366589150","1366589155","1366589161"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1c1c5cead2eb91a32c5fd88c14b6e8a6.jpg","text":"TemporaryFile(/tmp/multipartBody523698220227296187asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096534680,"filename":"image_16062025_19_54_45_10615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3e9d6ad0de2b3a4e0a4aa315f0a85f61.jpg","text":"TemporaryFile(/tmp/multipartBody3444143729088498080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096534680,"filename":"image_16062025_19_54_15_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/185c10f42445cb37501bc34ae7b57fdb.jpg","text":"TemporaryFile(/tmp/multipartBody5409085709327758368asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096534680,"filename":"image_16062025_19_53_55_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6408348eeac4a776092dd1c2199a0c21.jpg","text":"TemporaryFile(/tmp/multipartBody1626726337627762760asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096534680,"filename":"image_16062025_19_54_05_9596.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3ffce8959fc90486e48d4095d7d4d22c.jpg","text":"TemporaryFile(/tmp/multipartBody6073718622622414927asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096534680,"filename":"image_16062025_19_54_25_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/35324d0a1b0db5375e1cb4e5b5b3ed5b.jpg","text":"TemporaryFile(/tmp/multipartBody304925158103070asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096534680,"filename":"image_16062025_19_54_35_9645.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366589143","file1":"1366589137","file0":"1366589127","file4":"1366589155","file5":"1366589161","file3":"1366589150"},"map_files_photo_id_array":[{"photo_id":"1366589161","filename":"file5"},{"photo_id":"1366589143","filename":"file2"},{"photo_id":"1366589155","filename":"file4"},{"photo_id":"1366589137","filename":"file1"},{"photo_id":"1366589127","filename":"file0"},{"photo_id":"1366589150","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366589127":["hashtag1","hashtag2"]},{"1366589150":["hashtag1","hashtag2"]},{"1366589161":["hashtag1","hashtag2"]},{"1366589155":["hashtag1","hashtag2"]},{"1366589143":["hashtag1","hashtag2"]},{"1366589137":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366589127, 1366589150, 1366589161, 1366589155, 1366589143, 1366589137)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 56.62834167480469 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:55:32.136181
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/55/image_16062025_19_55_45_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/19/55/image_16062025_19_55_34_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/19/55/image_16062025_19_55_25_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/19/55/image_16062025_19_55_15_10665.jpg', 2), ('/home/nano/Desktop/images/16062025/19/54/image_16062025_19_55_04_9663.jpg', 2), ('/home/nano/Desktop/images/16062025/19/54/image_16062025_19_54_55_9663.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/55/image_16062025_19_55_45_10652.jpg', '/home/nano/Desktop/images/16062025/19/55/image_16062025_19_55_34_9638.jpg', '/home/nano/Desktop/images/16062025/19/55/image_16062025_19_55_25_9614.jpg', '/home/nano/Desktop/images/16062025/19/55/image_16062025_19_55_15_10665.jpg', '/home/nano/Desktop/images/16062025/19/54/image_16062025_19_55_04_9663.jpg', '/home/nano/Desktop/images/16062025/19/54/image_16062025_19_54_55_9663.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/55/image_16062025_19_55_45_10652.jpg
/home/nano/Desktop/images/16062025/19/55/image_16062025_19_55_34_9638.jpg
/home/nano/Desktop/images/16062025/19/55/image_16062025_19_55_25_9614.jpg
/home/nano/Desktop/images/16062025/19/55/image_16062025_19_55_15_10665.jpg
/home/nano/Desktop/images/16062025/19/54/image_16062025_19_55_04_9663.jpg
/home/nano/Desktop/images/16062025/19/54/image_16062025_19_54_55_9663.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366589178","1366589192","1366589171","1366589174","1366589168","1366589183"],"photo_ids_order":["1366589168","1366589171","1366589174","1366589178","1366589183","1366589192"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/984130a5b6d850871761a7e73d67ae90.jpg","text":"TemporaryFile(/tmp/multipartBody2424261240318320024asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096594021,"filename":"image_16062025_19_55_15_10665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/61dcf43c02df0fee0d519460f50967f9.jpg","text":"TemporaryFile(/tmp/multipartBody5355655402555575389asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096594021,"filename":"image_16062025_19_54_55_9663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1f27b7944683ede6acddbf4bee09cf51.jpg","text":"TemporaryFile(/tmp/multipartBody3124748547234647887asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096594021,"filename":"image_16062025_19_55_34_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fcfaeca84869d2b6b25e471bd190925d.jpg","text":"TemporaryFile(/tmp/multipartBody7187217731301029571asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096594021,"filename":"image_16062025_19_55_25_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ea849781accffdaf651a2e859413a4d6.jpg","text":"TemporaryFile(/tmp/multipartBody7576466219939489560asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096594021,"filename":"image_16062025_19_55_45_10652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7a97a0f849e958d1b0fb4da515651727.jpg","text":"TemporaryFile(/tmp/multipartBody8236685862189558424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096594021,"filename":"image_16062025_19_55_04_9663.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366589174","file1":"1366589171","file0":"1366589168","file4":"1366589183","file5":"1366589192","file3":"1366589178"},"map_files_photo_id_array":[{"photo_id":"1366589192","filename":"file5"},{"photo_id":"1366589174","filename":"file2"},{"photo_id":"1366589183","filename":"file4"},{"photo_id":"1366589171","filename":"file1"},{"photo_id":"1366589168","filename":"file0"},{"photo_id":"1366589178","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366589178":["hashtag1","hashtag2"]},{"1366589192":["hashtag1","hashtag2"]},{"1366589171":["hashtag1","hashtag2"]},{"1366589174":["hashtag1","hashtag2"]},{"1366589168":["hashtag1","hashtag2"]},{"1366589183":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366589178, 1366589192, 1366589171, 1366589174, 1366589168, 1366589183)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 56.67061161994934 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:56:32.196990
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/56/image_16062025_19_56_45_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/19/56/image_16062025_19_56_35_10656.jpg', 2), ('/home/nano/Desktop/images/16062025/19/56/image_16062025_19_56_25_9687.jpg', 2), ('/home/nano/Desktop/images/16062025/19/56/image_16062025_19_56_15_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/19/55/image_16062025_19_56_05_10673.jpg', 2), ('/home/nano/Desktop/images/16062025/19/55/image_16062025_19_55_55_9654.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/56/image_16062025_19_56_45_9650.jpg', '/home/nano/Desktop/images/16062025/19/56/image_16062025_19_56_35_10656.jpg', '/home/nano/Desktop/images/16062025/19/56/image_16062025_19_56_25_9687.jpg', '/home/nano/Desktop/images/16062025/19/56/image_16062025_19_56_15_9622.jpg', '/home/nano/Desktop/images/16062025/19/55/image_16062025_19_56_05_10673.jpg', '/home/nano/Desktop/images/16062025/19/55/image_16062025_19_55_55_9654.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/56/image_16062025_19_56_45_9650.jpg
/home/nano/Desktop/images/16062025/19/56/image_16062025_19_56_35_10656.jpg
/home/nano/Desktop/images/16062025/19/56/image_16062025_19_56_25_9687.jpg
/home/nano/Desktop/images/16062025/19/56/image_16062025_19_56_15_9622.jpg
/home/nano/Desktop/images/16062025/19/55/image_16062025_19_56_05_10673.jpg
/home/nano/Desktop/images/16062025/19/55/image_16062025_19_55_55_9654.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366589401","1366589274","1366589241","1366589310","1366589211","1366589208"],"photo_ids_order":["1366589208","1366589211","1366589241","1366589274","1366589310","1366589401"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d78f3e795c262e414ff4a361fd5c8e69.jpg","text":"TemporaryFile(/tmp/multipartBody1788012319757240857asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096654942,"filename":"image_16062025_19_55_55_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/93466b02665835d18593a84c425a6e27.jpg","text":"TemporaryFile(/tmp/multipartBody5334694220259245791asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096654942,"filename":"image_16062025_19_56_15_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a30847739f14d600f79cc31b88331bbb.jpg","text":"TemporaryFile(/tmp/multipartBody3620951342578645256asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096654942,"filename":"image_16062025_19_56_25_9687.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7df905dc49b8df391877a5583a015326.jpg","text":"TemporaryFile(/tmp/multipartBody5349765760059494713asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096654942,"filename":"image_16062025_19_56_05_10673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6f83a1a402a27d6d326de6c448e156bb.jpg","text":"TemporaryFile(/tmp/multipartBody3166531598435531150asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096654942,"filename":"image_16062025_19_56_35_10656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9992788af5776cc42a3a8e66bfb2e96b.jpg","text":"TemporaryFile(/tmp/multipartBody5973292316748454662asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096654942,"filename":"image_16062025_19_56_45_9650.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366589241","file1":"1366589211","file0":"1366589208","file4":"1366589310","file5":"1366589401","file3":"1366589274"},"map_files_photo_id_array":[{"photo_id":"1366589401","filename":"file5"},{"photo_id":"1366589241","filename":"file2"},{"photo_id":"1366589310","filename":"file4"},{"photo_id":"1366589211","filename":"file1"},{"photo_id":"1366589208","filename":"file0"},{"photo_id":"1366589274","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366589401":["hashtag1","hashtag2"]},{"1366589274":["hashtag1","hashtag2"]},{"1366589241":["hashtag1","hashtag2"]},{"1366589310":["hashtag1","hashtag2"]},{"1366589211":["hashtag1","hashtag2"]},{"1366589208":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366589401, 1366589274, 1366589241, 1366589310, 1366589211, 1366589208)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 49.96307992935181 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:57:32.324277
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_45_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_35_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_25_9640.jpg', 2), ('/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_15_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/19/56/image_16062025_19_57_05_10651.jpg', 2), ('/home/nano/Desktop/images/16062025/19/56/image_16062025_19_56_55_9630.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_45_9629.jpg', '/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_35_10646.jpg', '/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_25_9640.jpg', '/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_15_9649.jpg', '/home/nano/Desktop/images/16062025/19/56/image_16062025_19_57_05_10651.jpg', '/home/nano/Desktop/images/16062025/19/56/image_16062025_19_56_55_9630.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_45_9629.jpg
/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_35_10646.jpg
/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_25_9640.jpg
/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_15_9649.jpg
/home/nano/Desktop/images/16062025/19/56/image_16062025_19_57_05_10651.jpg
/home/nano/Desktop/images/16062025/19/56/image_16062025_19_56_55_9630.jpg
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 19:59:02.761453
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/19/58/image_16062025_19_58_45_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/19/58/image_16062025_19_58_35_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/19/58/image_16062025_19_58_24_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/19/58/image_16062025_19_58_15_9641.jpg', 2), ('/home/nano/Desktop/images/16062025/19/57/image_16062025_19_58_05_10659.jpg', 2), ('/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_54_9636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/19/58/image_16062025_19_58_45_9635.jpg', '/home/nano/Desktop/images/16062025/19/58/image_16062025_19_58_35_10647.jpg', '/home/nano/Desktop/images/16062025/19/58/image_16062025_19_58_24_9616.jpg', '/home/nano/Desktop/images/16062025/19/58/image_16062025_19_58_15_9641.jpg', '/home/nano/Desktop/images/16062025/19/57/image_16062025_19_58_05_10659.jpg', '/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_54_9636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/19/58/image_16062025_19_58_45_9635.jpg
/home/nano/Desktop/images/16062025/19/58/image_16062025_19_58_35_10647.jpg
/home/nano/Desktop/images/16062025/19/58/image_16062025_19_58_24_9616.jpg
/home/nano/Desktop/images/16062025/19/58/image_16062025_19_58_15_9641.jpg
/home/nano/Desktop/images/16062025/19/57/image_16062025_19_58_05_10659.jpg
/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_54_9636.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366589879","1366589904","1366589912","1366589893","1366589887","1366589920"],"photo_ids_order":["1366589879","1366589887","1366589893","1366589904","1366589912","1366589920"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/501dab05faf6ea37ef752cac040dc53b.jpg","text":"TemporaryFile(/tmp/multipartBody862201039129753962asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096814460,"filename":"image_16062025_19_58_45_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8d8eb597f211bdd1aa9d38d6ea28d2ea.jpg","text":"TemporaryFile(/tmp/multipartBody6664002838921164941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096814460,"filename":"image_16062025_19_58_15_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ae4901784694b97411d13b0569a9dcb3.jpg","text":"TemporaryFile(/tmp/multipartBody2809660693369030377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096814460,"filename":"image_16062025_19_58_05_10659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c52afe6758cc39d772dc3e8e8a1d0b23.jpg","text":"TemporaryFile(/tmp/multipartBody5669655777009061845asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096814460,"filename":"image_16062025_19_58_24_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7cc0caed9a71423d2a8b6760b0370c92.jpg","text":"TemporaryFile(/tmp/multipartBody3991805888645032908asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096814460,"filename":"image_16062025_19_58_35_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/92c38a344cc8d22299f6e39177b547b9.jpg","text":"TemporaryFile(/tmp/multipartBody2324044302924669088asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096814460,"filename":"image_16062025_19_57_54_9636.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366589893","file1":"1366589887","file0":"1366589879","file4":"1366589912","file5":"1366589920","file3":"1366589904"},"map_files_photo_id_array":[{"photo_id":"1366589920","filename":"file5"},{"photo_id":"1366589893","filename":"file2"},{"photo_id":"1366589912","filename":"file4"},{"photo_id":"1366589887","filename":"file1"},{"photo_id":"1366589879","filename":"file0"},{"photo_id":"1366589904","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366589879":["hashtag1","hashtag2"]},{"1366589904":["hashtag1","hashtag2"]},{"1366589912":["hashtag1","hashtag2"]},{"1366589893":["hashtag1","hashtag2"]},{"1366589887":["hashtag1","hashtag2"]},{"1366589920":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366589879, 1366589904, 1366589912, 1366589893, 1366589887, 1366589920)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 76.74502873420715 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:00:32.057423
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/00/image_16062025_20_00_45_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/20/00/image_16062025_20_00_35_9804.jpg', 2), ('/home/nano/Desktop/images/16062025/20/00/image_16062025_20_00_25_9793.jpg', 2), ('/home/nano/Desktop/images/16062025/20/00/image_16062025_20_00_15_9785.jpg', 2), ('/home/nano/Desktop/images/16062025/19/59/image_16062025_20_00_05_10807.jpg', 2), ('/home/nano/Desktop/images/16062025/19/59/image_16062025_19_59_54_9644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/00/image_16062025_20_00_45_10639.jpg', '/home/nano/Desktop/images/16062025/20/00/image_16062025_20_00_35_9804.jpg', '/home/nano/Desktop/images/16062025/20/00/image_16062025_20_00_25_9793.jpg', '/home/nano/Desktop/images/16062025/20/00/image_16062025_20_00_15_9785.jpg', '/home/nano/Desktop/images/16062025/19/59/image_16062025_20_00_05_10807.jpg', '/home/nano/Desktop/images/16062025/19/59/image_16062025_19_59_54_9644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/00/image_16062025_20_00_45_10639.jpg
/home/nano/Desktop/images/16062025/20/00/image_16062025_20_00_35_9804.jpg
/home/nano/Desktop/images/16062025/20/00/image_16062025_20_00_25_9793.jpg
/home/nano/Desktop/images/16062025/20/00/image_16062025_20_00_15_9785.jpg
/home/nano/Desktop/images/16062025/19/59/image_16062025_20_00_05_10807.jpg
/home/nano/Desktop/images/16062025/19/59/image_16062025_19_59_54_9644.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366589961","1366589967","1366589954","1366589951","1366589977","1366589971"],"photo_ids_order":["1366589951","1366589954","1366589961","1366589967","1366589971","1366589977"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e6def0ea65f70636bbdf0c24c02dfd5e.jpg","text":"TemporaryFile(/tmp/multipartBody5242697777025158901asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096893750,"filename":"image_16062025_20_00_25_9793.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/670282c4dad238d139a7b98c9dc23545.jpg","text":"TemporaryFile(/tmp/multipartBody3869280173575703167asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096893750,"filename":"image_16062025_20_00_15_9785.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/43f29513debe7d7c0ad81459be07e5cb.jpg","text":"TemporaryFile(/tmp/multipartBody8067083443720004581asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096893750,"filename":"image_16062025_20_00_35_9804.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d1d730fa95cdb5268ad151bf6ea51509.jpg","text":"TemporaryFile(/tmp/multipartBody4247339055890120957asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096893750,"filename":"image_16062025_20_00_45_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d3c1e45f04c88a2f8d5af88347229d01.jpg","text":"TemporaryFile(/tmp/multipartBody6419136648880487795asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096893750,"filename":"image_16062025_19_59_54_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/70275a027371e80080e6c8bee930def3.jpg","text":"TemporaryFile(/tmp/multipartBody8612417546495254474asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096893750,"filename":"image_16062025_20_00_05_10807.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366589961","file1":"1366589954","file0":"1366589951","file4":"1366589971","file5":"1366589977","file3":"1366589967"},"map_files_photo_id_array":[{"photo_id":"1366589977","filename":"file5"},{"photo_id":"1366589961","filename":"file2"},{"photo_id":"1366589971","filename":"file4"},{"photo_id":"1366589954","filename":"file1"},{"photo_id":"1366589951","filename":"file0"},{"photo_id":"1366589967","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366589961":["hashtag1","hashtag2"]},{"1366589967":["hashtag1","hashtag2"]},{"1366589954":["hashtag1","hashtag2"]},{"1366589951":["hashtag1","hashtag2"]},{"1366589977":["hashtag1","hashtag2"]},{"1366589971":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366589961, 1366589967, 1366589954, 1366589951, 1366589977, 1366589971)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 68.7361855506897 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:01:47.148052
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/01/image_16062025_20_01_45_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/20/01/image_16062025_20_01_35_9645.jpg', 2), ('/home/nano/Desktop/images/16062025/20/01/image_16062025_20_01_25_10682.jpg', 2), ('/home/nano/Desktop/images/16062025/20/01/image_16062025_20_01_14_9697.jpg', 2), ('/home/nano/Desktop/images/16062025/20/00/image_16062025_20_01_05_9744.jpg', 2), ('/home/nano/Desktop/images/16062025/20/00/image_16062025_20_00_55_9685.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/01/image_16062025_20_01_45_10621.jpg', '/home/nano/Desktop/images/16062025/20/01/image_16062025_20_01_35_9645.jpg', '/home/nano/Desktop/images/16062025/20/01/image_16062025_20_01_25_10682.jpg', '/home/nano/Desktop/images/16062025/20/01/image_16062025_20_01_14_9697.jpg', '/home/nano/Desktop/images/16062025/20/00/image_16062025_20_01_05_9744.jpg', '/home/nano/Desktop/images/16062025/20/00/image_16062025_20_00_55_9685.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/01/image_16062025_20_01_45_10621.jpg
/home/nano/Desktop/images/16062025/20/01/image_16062025_20_01_35_9645.jpg
/home/nano/Desktop/images/16062025/20/01/image_16062025_20_01_25_10682.jpg
/home/nano/Desktop/images/16062025/20/01/image_16062025_20_01_14_9697.jpg
/home/nano/Desktop/images/16062025/20/00/image_16062025_20_01_05_9744.jpg
/home/nano/Desktop/images/16062025/20/00/image_16062025_20_00_55_9685.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366590291","1366590019","1366590168","1366590360","1366590084","1366590129"],"photo_ids_order":["1366590019","1366590084","1366590129","1366590168","1366590291","1366590360"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/effd17fd3f8fb46f2dd24b3ef68b99c4.jpg","text":"TemporaryFile(/tmp/multipartBody1435781966503940704asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096971591,"filename":"image_16062025_20_01_05_9744.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d8a65ee9c5f7a1ae2e9b8e0fdf29cbcd.jpg","text":"TemporaryFile(/tmp/multipartBody8561789329242208347asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096971591,"filename":"image_16062025_20_01_45_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f7357158b0218fca6dd8a8b4e9ad89c0.jpg","text":"TemporaryFile(/tmp/multipartBody8144640598798233514asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096971591,"filename":"image_16062025_20_01_14_9697.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/efbd628bdb156a715462559182588b12.jpg","text":"TemporaryFile(/tmp/multipartBody6049315504389297235asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096971591,"filename":"image_16062025_20_00_55_9685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d9334447cec3b4c44f19068aef2c19db.jpg","text":"TemporaryFile(/tmp/multipartBody1706047422652062989asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096971591,"filename":"image_16062025_20_01_35_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/440008d98cf3cf449cbcb47391acf6c4.jpg","text":"TemporaryFile(/tmp/multipartBody5411156020620067287asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750096971591,"filename":"image_16062025_20_01_25_10682.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366590129","file1":"1366590084","file0":"1366590019","file4":"1366590291","file5":"1366590360","file3":"1366590168"},"map_files_photo_id_array":[{"photo_id":"1366590360","filename":"file5"},{"photo_id":"1366590129","filename":"file2"},{"photo_id":"1366590291","filename":"file4"},{"photo_id":"1366590084","filename":"file1"},{"photo_id":"1366590019","filename":"file0"},{"photo_id":"1366590168","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366590291":["hashtag1","hashtag2"]},{"1366590019":["hashtag1","hashtag2"]},{"1366590168":["hashtag1","hashtag2"]},{"1366590360":["hashtag1","hashtag2"]},{"1366590084":["hashtag1","hashtag2"]},{"1366590129":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366590291, 1366590019, 1366590168, 1366590360, 1366590084, 1366590129)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 71.10470271110535 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:03:03.132055
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_45_10689.jpg', 2), ('/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_35_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_25_9695.jpg', 2), ('/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_15_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/20/01/image_16062025_20_02_05_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/20/01/image_16062025_20_01_55_9619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_45_10689.jpg', '/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_35_9667.jpg', '/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_25_9695.jpg', '/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_15_10642.jpg', '/home/nano/Desktop/images/16062025/20/01/image_16062025_20_02_05_9626.jpg', '/home/nano/Desktop/images/16062025/20/01/image_16062025_20_01_55_9619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_45_10689.jpg
/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_35_9667.jpg
/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_25_9695.jpg
/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_15_10642.jpg
/home/nano/Desktop/images/16062025/20/01/image_16062025_20_02_05_9626.jpg
/home/nano/Desktop/images/16062025/20/01/image_16062025_20_01_55_9619.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 3.264089822769165 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:03:17.377398
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/03/image_16062025_20_03_45_10645.jpg', 2), ('/home/nano/Desktop/images/16062025/20/03/image_16062025_20_03_34_9624.jpg', 2), ('/home/nano/Desktop/images/16062025/20/03/image_16062025_20_03_25_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/20/03/image_16062025_20_03_15_10661.jpg', 2), ('/home/nano/Desktop/images/16062025/20/02/image_16062025_20_03_05_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_55_9606.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/03/image_16062025_20_03_45_10645.jpg', '/home/nano/Desktop/images/16062025/20/03/image_16062025_20_03_34_9624.jpg', '/home/nano/Desktop/images/16062025/20/03/image_16062025_20_03_25_9613.jpg', '/home/nano/Desktop/images/16062025/20/03/image_16062025_20_03_15_10661.jpg', '/home/nano/Desktop/images/16062025/20/02/image_16062025_20_03_05_9611.jpg', '/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_55_9606.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/03/image_16062025_20_03_45_10645.jpg
/home/nano/Desktop/images/16062025/20/03/image_16062025_20_03_34_9624.jpg
/home/nano/Desktop/images/16062025/20/03/image_16062025_20_03_25_9613.jpg
/home/nano/Desktop/images/16062025/20/03/image_16062025_20_03_15_10661.jpg
/home/nano/Desktop/images/16062025/20/02/image_16062025_20_03_05_9611.jpg
/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_55_9606.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366590577","1366590541","1366590604","1366590549","1366590598","1366590521"],"photo_ids_order":["1366590521","1366590541","1366590549","1366590577","1366590598","1366590604"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/61159364130047a4bd036a3f7b174e49.jpg","text":"TemporaryFile(/tmp/multipartBody2079877497172729064asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097058929,"filename":"image_16062025_20_03_15_10661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a6f9646f44720d199ffd0cc64515dcf1.jpg","text":"TemporaryFile(/tmp/multipartBody6883756935774969022asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097058929,"filename":"image_16062025_20_03_34_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b7411a0562b6b7c95398682cf30090b2.jpg","text":"TemporaryFile(/tmp/multipartBody6863483606727212143asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097058929,"filename":"image_16062025_20_02_55_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/00dd84d9c6d65a4ed3aacde018693a91.jpg","text":"TemporaryFile(/tmp/multipartBody2285850599783367450asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097058929,"filename":"image_16062025_20_03_25_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/27a056e1360000de40a9dde078d7b04f.jpg","text":"TemporaryFile(/tmp/multipartBody2461013196633218176asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097058929,"filename":"image_16062025_20_03_05_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c3e6ec6eac53c19ec34955abf756178f.jpg","text":"TemporaryFile(/tmp/multipartBody1082426878313489091asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097058929,"filename":"image_16062025_20_03_45_10645.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366590549","file1":"1366590541","file0":"1366590521","file4":"1366590598","file5":"1366590604","file3":"1366590577"},"map_files_photo_id_array":[{"photo_id":"1366590604","filename":"file5"},{"photo_id":"1366590549","filename":"file2"},{"photo_id":"1366590598","filename":"file4"},{"photo_id":"1366590541","filename":"file1"},{"photo_id":"1366590521","filename":"file0"},{"photo_id":"1366590577","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366590577":["hashtag1","hashtag2"]},{"1366590541":["hashtag1","hashtag2"]},{"1366590604":["hashtag1","hashtag2"]},{"1366590549":["hashtag1","hashtag2"]},{"1366590598":["hashtag1","hashtag2"]},{"1366590521":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366590577, 1366590541, 1366590604, 1366590549, 1366590598, 1366590521)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 63.10916447639465 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:04:32.453554
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/04/image_16062025_20_04_45_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/20/04/image_16062025_20_04_35_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/20/04/image_16062025_20_04_25_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/20/03/image_16062025_20_04_05_10659.jpg', 2), ('/home/nano/Desktop/images/16062025/20/03/image_16062025_20_03_55_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_45_10689.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/04/image_16062025_20_04_45_9615.jpg', '/home/nano/Desktop/images/16062025/20/04/image_16062025_20_04_35_10627.jpg', '/home/nano/Desktop/images/16062025/20/04/image_16062025_20_04_25_9655.jpg', '/home/nano/Desktop/images/16062025/20/03/image_16062025_20_04_05_10659.jpg', '/home/nano/Desktop/images/16062025/20/03/image_16062025_20_03_55_9625.jpg', '/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_45_10689.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/04/image_16062025_20_04_45_9615.jpg
/home/nano/Desktop/images/16062025/20/04/image_16062025_20_04_35_10627.jpg
/home/nano/Desktop/images/16062025/20/04/image_16062025_20_04_25_9655.jpg
/home/nano/Desktop/images/16062025/20/03/image_16062025_20_04_05_10659.jpg
/home/nano/Desktop/images/16062025/20/03/image_16062025_20_03_55_9625.jpg
/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_45_10689.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366590676","1366590678","1366590689","1366590668","1366590659","1366590664"],"photo_ids_order":["1366590659","1366590664","1366590668","1366590676","1366590678","1366590689"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2f48393e4d39625e17653f9bdfb66950.jpg","text":"TemporaryFile(/tmp/multipartBody3227750453707144550asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097134980,"filename":"image_16062025_20_04_05_10659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/87ae2f3e9654c3c09116aeac3cf7c579.jpg","text":"TemporaryFile(/tmp/multipartBody6992637664507945080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097134980,"filename":"image_16062025_20_03_55_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d5f7cedd5edd2e686503a7b7e4b37221.jpg","text":"TemporaryFile(/tmp/multipartBody7585931482439017838asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097134980,"filename":"image_16062025_20_02_45_10689.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b40acdb3033cc0bba00af5b531aee6d7.jpg","text":"TemporaryFile(/tmp/multipartBody3186111679225188122asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097134980,"filename":"image_16062025_20_04_25_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5d87be34a7d0474b8d3fe796e20466ab.jpg","text":"TemporaryFile(/tmp/multipartBody1375960603749936057asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097134980,"filename":"image_16062025_20_04_45_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8321ba1f3cb3a0c04cbaaf67f21fa8b7.jpg","text":"TemporaryFile(/tmp/multipartBody1464736875873095809asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097134980,"filename":"image_16062025_20_04_35_10627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366590668","file1":"1366590664","file0":"1366590659","file4":"1366590678","file5":"1366590689","file3":"1366590676"},"map_files_photo_id_array":[{"photo_id":"1366590689","filename":"file5"},{"photo_id":"1366590668","filename":"file2"},{"photo_id":"1366590678","filename":"file4"},{"photo_id":"1366590664","filename":"file1"},{"photo_id":"1366590659","filename":"file0"},{"photo_id":"1366590676","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366590676":["hashtag1","hashtag2"]},{"1366590678":["hashtag1","hashtag2"]},{"1366590689":["hashtag1","hashtag2"]},{"1366590668":["hashtag1","hashtag2"]},{"1366590659":["hashtag1","hashtag2"]},{"1366590664":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366590676, 1366590678, 1366590689, 1366590668, 1366590659, 1366590664)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 55.28997588157654 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:05:32.532850
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/05/image_16062025_20_05_45_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/20/05/image_16062025_20_05_35_10638.jpg', 2), ('/home/nano/Desktop/images/16062025/20/05/image_16062025_20_05_24_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/20/05/image_16062025_20_05_15_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/20/04/image_16062025_20_05_05_10657.jpg', 2), ('/home/nano/Desktop/images/16062025/20/04/image_16062025_20_04_55_9620.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/05/image_16062025_20_05_45_9630.jpg', '/home/nano/Desktop/images/16062025/20/05/image_16062025_20_05_35_10638.jpg', '/home/nano/Desktop/images/16062025/20/05/image_16062025_20_05_24_9638.jpg', '/home/nano/Desktop/images/16062025/20/05/image_16062025_20_05_15_9642.jpg', '/home/nano/Desktop/images/16062025/20/04/image_16062025_20_05_05_10657.jpg', '/home/nano/Desktop/images/16062025/20/04/image_16062025_20_04_55_9620.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/05/image_16062025_20_05_45_9630.jpg
/home/nano/Desktop/images/16062025/20/05/image_16062025_20_05_35_10638.jpg
/home/nano/Desktop/images/16062025/20/05/image_16062025_20_05_24_9638.jpg
/home/nano/Desktop/images/16062025/20/05/image_16062025_20_05_15_9642.jpg
/home/nano/Desktop/images/16062025/20/04/image_16062025_20_05_05_10657.jpg
/home/nano/Desktop/images/16062025/20/04/image_16062025_20_04_55_9620.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366590762","1366590756","1366590738","1366590747","1366590743","1366590751"],"photo_ids_order":["1366590738","1366590743","1366590747","1366590751","1366590756","1366590762"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0b9a55716e0833ac967a1b4ad7ddb6b4.jpg","text":"TemporaryFile(/tmp/multipartBody8737962258770483186asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097194951,"filename":"image_16062025_20_04_55_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8795e14502386ef33da52d6cd7a3e5d7.jpg","text":"TemporaryFile(/tmp/multipartBody7946445649820679288asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097194951,"filename":"image_16062025_20_05_05_10657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/93bd1a9d6c2846e1fbe32e49b1f2c029.jpg","text":"TemporaryFile(/tmp/multipartBody5969562802949623928asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097194951,"filename":"image_16062025_20_05_45_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b82225e212c90f73a6f8035dc28e0a94.jpg","text":"TemporaryFile(/tmp/multipartBody7591271745648870438asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097194951,"filename":"image_16062025_20_05_24_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1c034826a40b79b44c29df46d2285d25.jpg","text":"TemporaryFile(/tmp/multipartBody9043752284166693467asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097194951,"filename":"image_16062025_20_05_35_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f26adc16836dbb999bb203ec0738b3ba.jpg","text":"TemporaryFile(/tmp/multipartBody4930722777594617185asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097194951,"filename":"image_16062025_20_05_15_9642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366590747","file1":"1366590743","file0":"1366590738","file4":"1366590756","file5":"1366590762","file3":"1366590751"},"map_files_photo_id_array":[{"photo_id":"1366590762","filename":"file5"},{"photo_id":"1366590747","filename":"file2"},{"photo_id":"1366590756","filename":"file4"},{"photo_id":"1366590743","filename":"file1"},{"photo_id":"1366590738","filename":"file0"},{"photo_id":"1366590751","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366590762":["hashtag1","hashtag2"]},{"1366590756":["hashtag1","hashtag2"]},{"1366590738":["hashtag1","hashtag2"]},{"1366590747":["hashtag1","hashtag2"]},{"1366590743":["hashtag1","hashtag2"]},{"1366590751":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366590762, 1366590756, 1366590738, 1366590747, 1366590743, 1366590751)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 66.50192904472351 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:06:47.657667
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/06/image_16062025_20_06_45_10744.jpg', 2), ('/home/nano/Desktop/images/16062025/20/06/image_16062025_20_06_34_9758.jpg', 2), ('/home/nano/Desktop/images/16062025/20/06/image_16062025_20_06_25_9735.jpg', 2), ('/home/nano/Desktop/images/16062025/20/06/image_16062025_20_06_15_9743.jpg', 2), ('/home/nano/Desktop/images/16062025/20/05/image_16062025_20_06_05_10684.jpg', 2), ('/home/nano/Desktop/images/16062025/20/05/image_16062025_20_05_54_9752.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/06/image_16062025_20_06_45_10744.jpg', '/home/nano/Desktop/images/16062025/20/06/image_16062025_20_06_34_9758.jpg', '/home/nano/Desktop/images/16062025/20/06/image_16062025_20_06_25_9735.jpg', '/home/nano/Desktop/images/16062025/20/06/image_16062025_20_06_15_9743.jpg', '/home/nano/Desktop/images/16062025/20/05/image_16062025_20_06_05_10684.jpg', '/home/nano/Desktop/images/16062025/20/05/image_16062025_20_05_54_9752.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/06/image_16062025_20_06_45_10744.jpg
/home/nano/Desktop/images/16062025/20/06/image_16062025_20_06_34_9758.jpg
/home/nano/Desktop/images/16062025/20/06/image_16062025_20_06_25_9735.jpg
/home/nano/Desktop/images/16062025/20/06/image_16062025_20_06_15_9743.jpg
/home/nano/Desktop/images/16062025/20/05/image_16062025_20_06_05_10684.jpg
/home/nano/Desktop/images/16062025/20/05/image_16062025_20_05_54_9752.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366590802","1366590786","1366590783","1366590773","1366590809","1366590778"],"photo_ids_order":["1366590773","1366590778","1366590783","1366590786","1366590802","1366590809"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/990067e8d9ded896261ee167f4540aac.jpg","text":"TemporaryFile(/tmp/multipartBody8672297019794300923asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097271690,"filename":"image_16062025_20_06_05_10684.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9ece5b6091fb31f0791cd5886fa55fcf.jpg","text":"TemporaryFile(/tmp/multipartBody3026289129164869566asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097271690,"filename":"image_16062025_20_06_15_9743.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f9d95cea29911c90414db88e3881b1b8.jpg","text":"TemporaryFile(/tmp/multipartBody1473085602457552068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097271690,"filename":"image_16062025_20_06_25_9735.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/40197f7edaf7350a18678003fe7a98f6.jpg","text":"TemporaryFile(/tmp/multipartBody7500536000047074359asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097271690,"filename":"image_16062025_20_06_45_10744.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4b899a743533cb66b09d1cc9ddaf9e8a.jpg","text":"TemporaryFile(/tmp/multipartBody7285171534251732702asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097271690,"filename":"image_16062025_20_05_54_9752.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f1316210d4f7bc443217c7c9d9ee8438.jpg","text":"TemporaryFile(/tmp/multipartBody8991458653824362691asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097271690,"filename":"image_16062025_20_06_34_9758.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366590783","file1":"1366590778","file0":"1366590773","file4":"1366590802","file5":"1366590809","file3":"1366590786"},"map_files_photo_id_array":[{"photo_id":"1366590809","filename":"file5"},{"photo_id":"1366590783","filename":"file2"},{"photo_id":"1366590802","filename":"file4"},{"photo_id":"1366590778","filename":"file1"},{"photo_id":"1366590773","filename":"file0"},{"photo_id":"1366590786","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366590802":["hashtag1","hashtag2"]},{"1366590786":["hashtag1","hashtag2"]},{"1366590783":["hashtag1","hashtag2"]},{"1366590773":["hashtag1","hashtag2"]},{"1366590809":["hashtag1","hashtag2"]},{"1366590778":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366590802, 1366590786, 1366590783, 1366590773, 1366590809, 1366590778)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 56.34241843223572 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:07:46.766780
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/07/image_16062025_20_07_44_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/20/07/image_16062025_20_07_35_9688.jpg', 2), ('/home/nano/Desktop/images/16062025/20/07/image_16062025_20_07_25_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/20/07/image_16062025_20_07_15_10788.jpg', 2), ('/home/nano/Desktop/images/16062025/20/06/image_16062025_20_07_05_9723.jpg', 2), ('/home/nano/Desktop/images/16062025/20/06/image_16062025_20_06_55_9719.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/07/image_16062025_20_07_44_9655.jpg', '/home/nano/Desktop/images/16062025/20/07/image_16062025_20_07_35_9688.jpg', '/home/nano/Desktop/images/16062025/20/07/image_16062025_20_07_25_9664.jpg', '/home/nano/Desktop/images/16062025/20/07/image_16062025_20_07_15_10788.jpg', '/home/nano/Desktop/images/16062025/20/06/image_16062025_20_07_05_9723.jpg', '/home/nano/Desktop/images/16062025/20/06/image_16062025_20_06_55_9719.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/07/image_16062025_20_07_44_9655.jpg
/home/nano/Desktop/images/16062025/20/07/image_16062025_20_07_35_9688.jpg
/home/nano/Desktop/images/16062025/20/07/image_16062025_20_07_25_9664.jpg
/home/nano/Desktop/images/16062025/20/07/image_16062025_20_07_15_10788.jpg
/home/nano/Desktop/images/16062025/20/06/image_16062025_20_07_05_9723.jpg
/home/nano/Desktop/images/16062025/20/06/image_16062025_20_06_55_9719.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366590934","1366590829","1366590873","1366591101","1366591004","1366591054"],"photo_ids_order":["1366590829","1366590873","1366590934","1366591004","1366591054","1366591101"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fd66e08a2099ac800de418e1a551b97c.jpg","text":"TemporaryFile(/tmp/multipartBody4519190118488765603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097335404,"filename":"image_16062025_20_07_25_9664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/40c4bfd36efe1430e8e733c63f5b932d.jpg","text":"TemporaryFile(/tmp/multipartBody616968841349049138asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097335404,"filename":"image_16062025_20_07_44_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/012adb56e7bfd5b39edacaab7ef0e68f.jpg","text":"TemporaryFile(/tmp/multipartBody1139744382192445525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097335404,"filename":"image_16062025_20_07_35_9688.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4a5760015a30ee498d9e5c02443966c3.jpg","text":"TemporaryFile(/tmp/multipartBody6987993382523973496asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097335404,"filename":"image_16062025_20_06_55_9719.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d6b922170412a3bd5a5451ca2a22dc50.jpg","text":"TemporaryFile(/tmp/multipartBody7416714894282820496asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097335404,"filename":"image_16062025_20_07_15_10788.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b5a8f6311951cf43cb0e1f76d001e98e.jpg","text":"TemporaryFile(/tmp/multipartBody7514488495145904435asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097335404,"filename":"image_16062025_20_07_05_9723.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366590934","file1":"1366590873","file0":"1366590829","file4":"1366591054","file5":"1366591101","file3":"1366591004"},"map_files_photo_id_array":[{"photo_id":"1366591101","filename":"file5"},{"photo_id":"1366590934","filename":"file2"},{"photo_id":"1366591054","filename":"file4"},{"photo_id":"1366590873","filename":"file1"},{"photo_id":"1366590829","filename":"file0"},{"photo_id":"1366591004","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366590934":["hashtag1","hashtag2"]},{"1366590829":["hashtag1","hashtag2"]},{"1366590873":["hashtag1","hashtag2"]},{"1366591101":["hashtag1","hashtag2"]},{"1366591004":["hashtag1","hashtag2"]},{"1366591054":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366590934, 1366590829, 1366590873, 1366591101, 1366591004, 1366591054)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 68.91950273513794 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:09:02.775905
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/08/image_16062025_20_08_45_10665.jpg', 2), ('/home/nano/Desktop/images/16062025/20/08/image_16062025_20_08_35_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/20/08/image_16062025_20_08_25_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/20/08/image_16062025_20_08_15_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/20/07/image_16062025_20_08_05_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/20/07/image_16062025_20_07_55_10658.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/08/image_16062025_20_08_45_10665.jpg', '/home/nano/Desktop/images/16062025/20/08/image_16062025_20_08_35_9654.jpg', '/home/nano/Desktop/images/16062025/20/08/image_16062025_20_08_25_9621.jpg', '/home/nano/Desktop/images/16062025/20/08/image_16062025_20_08_15_10647.jpg', '/home/nano/Desktop/images/16062025/20/07/image_16062025_20_08_05_9649.jpg', '/home/nano/Desktop/images/16062025/20/07/image_16062025_20_07_55_10658.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/08/image_16062025_20_08_45_10665.jpg
/home/nano/Desktop/images/16062025/20/08/image_16062025_20_08_35_9654.jpg
/home/nano/Desktop/images/16062025/20/08/image_16062025_20_08_25_9621.jpg
/home/nano/Desktop/images/16062025/20/08/image_16062025_20_08_15_10647.jpg
/home/nano/Desktop/images/16062025/20/07/image_16062025_20_08_05_9649.jpg
/home/nano/Desktop/images/16062025/20/07/image_16062025_20_07_55_10658.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366591455","1366591563","1366591277","1366591322","1366591406","1366591531"],"photo_ids_order":["1366591277","1366591322","1366591406","1366591455","1366591531","1366591563"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d97bd6d58e240d6071cc3e05de6c0075.jpg","text":"TemporaryFile(/tmp/multipartBody3504667537037327509asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097407545,"filename":"image_16062025_20_08_15_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c6c4de10eb50b568807d204c8fdff184.jpg","text":"TemporaryFile(/tmp/multipartBody3860143220923846406asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097407545,"filename":"image_16062025_20_07_55_10658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d54c79c56b03c4ec56274fbc576ed6f2.jpg","text":"TemporaryFile(/tmp/multipartBody9188232993113012933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097407545,"filename":"image_16062025_20_08_45_10665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/29575540d2dc4e3dc7989b494504dbc9.jpg","text":"TemporaryFile(/tmp/multipartBody1536181088303356947asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097407545,"filename":"image_16062025_20_08_35_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dab1c5d5d3a2845b53e37f9259be4f83.jpg","text":"TemporaryFile(/tmp/multipartBody8920075861304504011asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097407545,"filename":"image_16062025_20_08_25_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8deda58adca28d9405237c2d21bfd56c.jpg","text":"TemporaryFile(/tmp/multipartBody2106112252384666183asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097407545,"filename":"image_16062025_20_08_05_9649.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366591406","file1":"1366591322","file0":"1366591277","file4":"1366591531","file5":"1366591563","file3":"1366591455"},"map_files_photo_id_array":[{"photo_id":"1366591563","filename":"file5"},{"photo_id":"1366591406","filename":"file2"},{"photo_id":"1366591531","filename":"file4"},{"photo_id":"1366591322","filename":"file1"},{"photo_id":"1366591277","filename":"file0"},{"photo_id":"1366591455","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366591455":["hashtag1","hashtag2"]},{"1366591563":["hashtag1","hashtag2"]},{"1366591277":["hashtag1","hashtag2"]},{"1366591322":["hashtag1","hashtag2"]},{"1366591406":["hashtag1","hashtag2"]},{"1366591531":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366591455, 1366591563, 1366591277, 1366591322, 1366591406, 1366591531)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.64767670631409 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:10:17.078398
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/10/image_16062025_20_10_45_10676.jpg', 2), ('/home/nano/Desktop/images/16062025/20/10/image_16062025_20_10_34_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/20/10/image_16062025_20_10_25_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/20/10/image_16062025_20_10_15_10682.jpg', 2), ('/home/nano/Desktop/images/16062025/20/09/image_16062025_20_10_04_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/20/09/image_16062025_20_09_55_9646.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/10/image_16062025_20_10_45_10676.jpg', '/home/nano/Desktop/images/16062025/20/10/image_16062025_20_10_34_9651.jpg', '/home/nano/Desktop/images/16062025/20/10/image_16062025_20_10_25_9644.jpg', '/home/nano/Desktop/images/16062025/20/10/image_16062025_20_10_15_10682.jpg', '/home/nano/Desktop/images/16062025/20/09/image_16062025_20_10_04_9659.jpg', '/home/nano/Desktop/images/16062025/20/09/image_16062025_20_09_55_9646.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/10/image_16062025_20_10_45_10676.jpg
/home/nano/Desktop/images/16062025/20/10/image_16062025_20_10_34_9651.jpg
/home/nano/Desktop/images/16062025/20/10/image_16062025_20_10_25_9644.jpg
/home/nano/Desktop/images/16062025/20/10/image_16062025_20_10_15_10682.jpg
/home/nano/Desktop/images/16062025/20/09/image_16062025_20_10_04_9659.jpg
/home/nano/Desktop/images/16062025/20/09/image_16062025_20_09_55_9646.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366591848","1366591755","1366591814","1366591712","1366591669","1366591624"],"photo_ids_order":["1366591624","1366591669","1366591712","1366591755","1366591814","1366591848"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bdc56bae2ae974246950373586eb98bb.jpg","text":"TemporaryFile(/tmp/multipartBody8921856596435654786asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097481523,"filename":"image_16062025_20_09_55_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e1e192dbf2c306d0876d79f502a4e920.jpg","text":"TemporaryFile(/tmp/multipartBody589520293864721968asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097481523,"filename":"image_16062025_20_10_15_10682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9d758e9a204e5b3c0cd2bd2305131eea.jpg","text":"TemporaryFile(/tmp/multipartBody637401504461802911asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097481523,"filename":"image_16062025_20_10_04_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9bda846e1a41244bf5aea643898c5d62.jpg","text":"TemporaryFile(/tmp/multipartBody4737159954230559708asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097481523,"filename":"image_16062025_20_10_25_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0529bf35c9e0451124e6fd35eb4d4a7f.jpg","text":"TemporaryFile(/tmp/multipartBody7339292989853968669asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097481523,"filename":"image_16062025_20_10_34_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8e35b31edcb644f2fbd764049f4fb110.jpg","text":"TemporaryFile(/tmp/multipartBody1482732774658978743asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097481523,"filename":"image_16062025_20_10_45_10676.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366591712","file1":"1366591669","file0":"1366591624","file4":"1366591814","file5":"1366591848","file3":"1366591755"},"map_files_photo_id_array":[{"photo_id":"1366591848","filename":"file5"},{"photo_id":"1366591712","filename":"file2"},{"photo_id":"1366591814","filename":"file4"},{"photo_id":"1366591669","filename":"file1"},{"photo_id":"1366591624","filename":"file0"},{"photo_id":"1366591755","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366591848":["hashtag1","hashtag2"]},{"1366591755":["hashtag1","hashtag2"]},{"1366591814":["hashtag1","hashtag2"]},{"1366591712":["hashtag1","hashtag2"]},{"1366591669":["hashtag1","hashtag2"]},{"1366591624":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366591848, 1366591755, 1366591814, 1366591712, 1366591669, 1366591624)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 63.066028356552124 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:11:32.193308
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/11/image_16062025_20_11_45_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/20/11/image_16062025_20_11_34_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/20/11/image_16062025_20_11_25_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/20/11/image_16062025_20_11_15_10700.jpg', 2), ('/home/nano/Desktop/images/16062025/20/10/image_16062025_20_11_04_9648.jpg', 2), ('/home/nano/Desktop/images/16062025/20/10/image_16062025_20_10_55_9672.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/11/image_16062025_20_11_45_10653.jpg', '/home/nano/Desktop/images/16062025/20/11/image_16062025_20_11_34_9638.jpg', '/home/nano/Desktop/images/16062025/20/11/image_16062025_20_11_25_9651.jpg', '/home/nano/Desktop/images/16062025/20/11/image_16062025_20_11_15_10700.jpg', '/home/nano/Desktop/images/16062025/20/10/image_16062025_20_11_04_9648.jpg', '/home/nano/Desktop/images/16062025/20/10/image_16062025_20_10_55_9672.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/11/image_16062025_20_11_45_10653.jpg
/home/nano/Desktop/images/16062025/20/11/image_16062025_20_11_34_9638.jpg
/home/nano/Desktop/images/16062025/20/11/image_16062025_20_11_25_9651.jpg
/home/nano/Desktop/images/16062025/20/11/image_16062025_20_11_15_10700.jpg
/home/nano/Desktop/images/16062025/20/10/image_16062025_20_11_04_9648.jpg
/home/nano/Desktop/images/16062025/20/10/image_16062025_20_10_55_9672.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366591943","1366591937","1366591940","1366591934","1366591951","1366591930"],"photo_ids_order":["1366591930","1366591934","1366591937","1366591940","1366591943","1366591951"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5af9f7c3313476c14fa9ae0edc8bf57a.jpg","text":"TemporaryFile(/tmp/multipartBody4846726685842016511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097555713,"filename":"image_16062025_20_11_04_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2145607a6ac6ae88e59a3eedd37cf110.jpg","text":"TemporaryFile(/tmp/multipartBody7619389372941348641asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097555713,"filename":"image_16062025_20_11_25_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8a5c7fca8691416a05361dee49a9fc5a.jpg","text":"TemporaryFile(/tmp/multipartBody6769297370240399041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097555713,"filename":"image_16062025_20_11_15_10700.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/353a0df60aeef43137004a67ae3ba838.jpg","text":"TemporaryFile(/tmp/multipartBody4612917178829104587asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097555713,"filename":"image_16062025_20_11_34_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/75630161b6cfcf3f50bf7d1afa99895b.jpg","text":"TemporaryFile(/tmp/multipartBody2027555479731608275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097555713,"filename":"image_16062025_20_10_55_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/00a8fe2668d6b5d047bd0dde18094d8a.jpg","text":"TemporaryFile(/tmp/multipartBody3513943689740930245asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097555713,"filename":"image_16062025_20_11_45_10653.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366591937","file1":"1366591934","file0":"1366591930","file4":"1366591943","file5":"1366591951","file3":"1366591940"},"map_files_photo_id_array":[{"photo_id":"1366591951","filename":"file5"},{"photo_id":"1366591937","filename":"file2"},{"photo_id":"1366591943","filename":"file4"},{"photo_id":"1366591934","filename":"file1"},{"photo_id":"1366591930","filename":"file0"},{"photo_id":"1366591940","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366591943":["hashtag1","hashtag2"]},{"1366591937":["hashtag1","hashtag2"]},{"1366591940":["hashtag1","hashtag2"]},{"1366591934":["hashtag1","hashtag2"]},{"1366591951":["hashtag1","hashtag2"]},{"1366591930":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366591943, 1366591937, 1366591940, 1366591934, 1366591951, 1366591930)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 63.013449907302856 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:12:47.259185
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/12/image_16062025_20_12_45_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/20/12/image_16062025_20_12_35_10652.jpg', 2), ('/home/nano/Desktop/images/16062025/20/12/image_16062025_20_12_25_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/20/12/image_16062025_20_12_15_9662.jpg', 2), ('/home/nano/Desktop/images/16062025/20/11/image_16062025_20_12_05_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/20/11/image_16062025_20_11_55_9623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/12/image_16062025_20_12_45_9664.jpg', '/home/nano/Desktop/images/16062025/20/12/image_16062025_20_12_35_10652.jpg', '/home/nano/Desktop/images/16062025/20/12/image_16062025_20_12_25_9632.jpg', '/home/nano/Desktop/images/16062025/20/12/image_16062025_20_12_15_9662.jpg', '/home/nano/Desktop/images/16062025/20/11/image_16062025_20_12_05_10647.jpg', '/home/nano/Desktop/images/16062025/20/11/image_16062025_20_11_55_9623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/12/image_16062025_20_12_45_9664.jpg
/home/nano/Desktop/images/16062025/20/12/image_16062025_20_12_35_10652.jpg
/home/nano/Desktop/images/16062025/20/12/image_16062025_20_12_25_9632.jpg
/home/nano/Desktop/images/16062025/20/12/image_16062025_20_12_15_9662.jpg
/home/nano/Desktop/images/16062025/20/11/image_16062025_20_12_05_10647.jpg
/home/nano/Desktop/images/16062025/20/11/image_16062025_20_11_55_9623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366591991","1366591994","1366591988","1366592000","1366591984","1366591996"],"photo_ids_order":["1366591984","1366591988","1366591991","1366591994","1366591996","1366592000"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f69d50a284d2fe38c6ac418fe9a6aa57.jpg","text":"TemporaryFile(/tmp/multipartBody1014596711993044533asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097630648,"filename":"image_16062025_20_12_25_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/055424a63f4193d3291428f99e2ef075.jpg","text":"TemporaryFile(/tmp/multipartBody8654066236314642080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097630648,"filename":"image_16062025_20_12_15_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/40acfd158dc19dab1b677d2e36f83a0e.jpg","text":"TemporaryFile(/tmp/multipartBody9045272057389589873asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097630648,"filename":"image_16062025_20_12_35_10652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d28a6b083a4b5cf573f9bccac4abb328.jpg","text":"TemporaryFile(/tmp/multipartBody2722152698522378765asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097630648,"filename":"image_16062025_20_11_55_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6ca89419edcb977a41c1b33cf89a410e.jpg","text":"TemporaryFile(/tmp/multipartBody7552056613715831353asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097630648,"filename":"image_16062025_20_12_45_9664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b0f35f1c446f4b91fdc102667dbf6771.jpg","text":"TemporaryFile(/tmp/multipartBody7184583001525262144asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097630648,"filename":"image_16062025_20_12_05_10647.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366591991","file1":"1366591988","file0":"1366591984","file4":"1366591996","file5":"1366592000","file3":"1366591994"},"map_files_photo_id_array":[{"photo_id":"1366592000","filename":"file5"},{"photo_id":"1366591991","filename":"file2"},{"photo_id":"1366591996","filename":"file4"},{"photo_id":"1366591988","filename":"file1"},{"photo_id":"1366591984","filename":"file0"},{"photo_id":"1366591994","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366591991":["hashtag1","hashtag2"]},{"1366591994":["hashtag1","hashtag2"]},{"1366591988":["hashtag1","hashtag2"]},{"1366592000":["hashtag1","hashtag2"]},{"1366591984":["hashtag1","hashtag2"]},{"1366591996":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366591991, 1366591994, 1366591988, 1366592000, 1366591984, 1366591996)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 58.955066204071045 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:13:47.370618
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/13/image_16062025_20_13_45_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/20/13/image_16062025_20_13_35_10672.jpg', 2), ('/home/nano/Desktop/images/16062025/20/13/image_16062025_20_13_25_9602.jpg', 2), ('/home/nano/Desktop/images/16062025/20/13/image_16062025_20_13_15_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/20/12/image_16062025_20_13_05_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/20/12/image_16062025_20_12_55_9644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/13/image_16062025_20_13_45_9629.jpg', '/home/nano/Desktop/images/16062025/20/13/image_16062025_20_13_35_10672.jpg', '/home/nano/Desktop/images/16062025/20/13/image_16062025_20_13_25_9602.jpg', '/home/nano/Desktop/images/16062025/20/13/image_16062025_20_13_15_9671.jpg', '/home/nano/Desktop/images/16062025/20/12/image_16062025_20_13_05_10625.jpg', '/home/nano/Desktop/images/16062025/20/12/image_16062025_20_12_55_9644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/13/image_16062025_20_13_45_9629.jpg
/home/nano/Desktop/images/16062025/20/13/image_16062025_20_13_35_10672.jpg
/home/nano/Desktop/images/16062025/20/13/image_16062025_20_13_25_9602.jpg
/home/nano/Desktop/images/16062025/20/13/image_16062025_20_13_15_9671.jpg
/home/nano/Desktop/images/16062025/20/12/image_16062025_20_13_05_10625.jpg
/home/nano/Desktop/images/16062025/20/12/image_16062025_20_12_55_9644.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592022","1366592016","1366592042","1366592039","1366592030","1366592035"],"photo_ids_order":["1366592016","1366592022","1366592030","1366592035","1366592039","1366592042"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2867ea9517400d70733867440670fb02.jpg","text":"TemporaryFile(/tmp/multipartBody1211441703838557017asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097690461,"filename":"image_16062025_20_13_35_10672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ecd5932d64238807288a8ad7f7bcabe1.jpg","text":"TemporaryFile(/tmp/multipartBody3524225705064124041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097690461,"filename":"image_16062025_20_13_45_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/657c2b1d0c3aceebe632f0db64a68161.jpg","text":"TemporaryFile(/tmp/multipartBody7188513231445134000asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097690461,"filename":"image_16062025_20_12_55_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a112acd5be5d44b9a894b64a3802a3a8.jpg","text":"TemporaryFile(/tmp/multipartBody8413627074654350395asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097690461,"filename":"image_16062025_20_13_05_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/068df7254daf7e4ff8236e16bb1aa767.jpg","text":"TemporaryFile(/tmp/multipartBody3176479747167208531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097690461,"filename":"image_16062025_20_13_25_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/27ec8ff417e0e4f2a38e1003217b0f28.jpg","text":"TemporaryFile(/tmp/multipartBody6543203348519492582asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097690461,"filename":"image_16062025_20_13_15_9671.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592030","file1":"1366592022","file0":"1366592016","file4":"1366592039","file5":"1366592042","file3":"1366592035"},"map_files_photo_id_array":[{"photo_id":"1366592042","filename":"file5"},{"photo_id":"1366592030","filename":"file2"},{"photo_id":"1366592039","filename":"file4"},{"photo_id":"1366592022","filename":"file1"},{"photo_id":"1366592016","filename":"file0"},{"photo_id":"1366592035","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592022":["hashtag1","hashtag2"]},{"1366592016":["hashtag1","hashtag2"]},{"1366592042":["hashtag1","hashtag2"]},{"1366592039":["hashtag1","hashtag2"]},{"1366592030":["hashtag1","hashtag2"]},{"1366592035":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592022, 1366592016, 1366592042, 1366592039, 1366592030, 1366592035)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 66.74908423423767 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:15:03.383246
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/14/image_16062025_20_14_45_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/20/14/image_16062025_20_14_35_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/20/14/image_16062025_20_14_24_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/20/14/image_16062025_20_14_15_9666.jpg', 2), ('/home/nano/Desktop/images/16062025/20/13/image_16062025_20_14_05_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/20/13/image_16062025_20_13_54_9661.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/14/image_16062025_20_14_45_9625.jpg', '/home/nano/Desktop/images/16062025/20/14/image_16062025_20_14_35_10646.jpg', '/home/nano/Desktop/images/16062025/20/14/image_16062025_20_14_24_9633.jpg', '/home/nano/Desktop/images/16062025/20/14/image_16062025_20_14_15_9666.jpg', '/home/nano/Desktop/images/16062025/20/13/image_16062025_20_14_05_10616.jpg', '/home/nano/Desktop/images/16062025/20/13/image_16062025_20_13_54_9661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/14/image_16062025_20_14_45_9625.jpg
/home/nano/Desktop/images/16062025/20/14/image_16062025_20_14_35_10646.jpg
/home/nano/Desktop/images/16062025/20/14/image_16062025_20_14_24_9633.jpg
/home/nano/Desktop/images/16062025/20/14/image_16062025_20_14_15_9666.jpg
/home/nano/Desktop/images/16062025/20/13/image_16062025_20_14_05_10616.jpg
/home/nano/Desktop/images/16062025/20/13/image_16062025_20_13_54_9661.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592052","1366592069","1366592063","1366592066","1366592056","1366592059"],"photo_ids_order":["1366592052","1366592056","1366592059","1366592063","1366592066","1366592069"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1de5fee0c8fda3a7ba28ce51d77c5ca9.jpg","text":"TemporaryFile(/tmp/multipartBody678472121476567068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097765822,"filename":"image_16062025_20_14_45_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0a4b903d50c96618c8aa4239b57392a2.jpg","text":"TemporaryFile(/tmp/multipartBody4166230695473467714asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097765822,"filename":"image_16062025_20_13_54_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a6f3fba3b2c27685b85bd9ee4ba59ca7.jpg","text":"TemporaryFile(/tmp/multipartBody256622622863355235asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097765822,"filename":"image_16062025_20_14_15_9666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cf5e5a3bfc6b59c0776082a75bad950b.jpg","text":"TemporaryFile(/tmp/multipartBody6280058996191682677asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097765822,"filename":"image_16062025_20_14_05_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7e2998d8f97c0e8576e9d54699776220.jpg","text":"TemporaryFile(/tmp/multipartBody1943200507777829802asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097765822,"filename":"image_16062025_20_14_35_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0aefae91613565101d26b27e3ac94bce.jpg","text":"TemporaryFile(/tmp/multipartBody5995312203045232215asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097765822,"filename":"image_16062025_20_14_24_9633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592059","file1":"1366592056","file0":"1366592052","file4":"1366592066","file5":"1366592069","file3":"1366592063"},"map_files_photo_id_array":[{"photo_id":"1366592069","filename":"file5"},{"photo_id":"1366592059","filename":"file2"},{"photo_id":"1366592066","filename":"file4"},{"photo_id":"1366592056","filename":"file1"},{"photo_id":"1366592052","filename":"file0"},{"photo_id":"1366592063","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592052":["hashtag1","hashtag2"]},{"1366592069":["hashtag1","hashtag2"]},{"1366592063":["hashtag1","hashtag2"]},{"1366592066":["hashtag1","hashtag2"]},{"1366592056":["hashtag1","hashtag2"]},{"1366592059":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592052, 1366592069, 1366592063, 1366592066, 1366592056, 1366592059)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 55.02720379829407 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:16:03.205743
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/15/image_16062025_20_15_45_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/20/15/image_16062025_20_15_35_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/20/15/image_16062025_20_15_25_10671.jpg', 2), ('/home/nano/Desktop/images/16062025/20/15/image_16062025_20_15_15_9679.jpg', 2), ('/home/nano/Desktop/images/16062025/20/14/image_16062025_20_15_05_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/20/14/image_16062025_20_14_55_10647.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/15/image_16062025_20_15_45_9630.jpg', '/home/nano/Desktop/images/16062025/20/15/image_16062025_20_15_35_9649.jpg', '/home/nano/Desktop/images/16062025/20/15/image_16062025_20_15_25_10671.jpg', '/home/nano/Desktop/images/16062025/20/15/image_16062025_20_15_15_9679.jpg', '/home/nano/Desktop/images/16062025/20/14/image_16062025_20_15_05_9657.jpg', '/home/nano/Desktop/images/16062025/20/14/image_16062025_20_14_55_10647.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/15/image_16062025_20_15_45_9630.jpg
/home/nano/Desktop/images/16062025/20/15/image_16062025_20_15_35_9649.jpg
/home/nano/Desktop/images/16062025/20/15/image_16062025_20_15_25_10671.jpg
/home/nano/Desktop/images/16062025/20/15/image_16062025_20_15_15_9679.jpg
/home/nano/Desktop/images/16062025/20/14/image_16062025_20_15_05_9657.jpg
/home/nano/Desktop/images/16062025/20/14/image_16062025_20_14_55_10647.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592109","1366592087","1366592105","1366592098","1366592083","1366592091"],"photo_ids_order":["1366592083","1366592087","1366592091","1366592098","1366592105","1366592109"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ad1ee914edf6b593ca86db461c9df3ef.jpg","text":"TemporaryFile(/tmp/multipartBody3556104445508983628asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097830894,"filename":"image_16062025_20_14_55_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/55e8e70f08148561bf2f28cf12d79fd0.jpg","text":"TemporaryFile(/tmp/multipartBody6649952874659733567asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097830894,"filename":"image_16062025_20_15_35_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9156617af688d3af85ab9a02b32fa7d8.jpg","text":"TemporaryFile(/tmp/multipartBody844020069629212608asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097830894,"filename":"image_16062025_20_15_05_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/01d050cbc4a0f7a29291ee4d82d2ae61.jpg","text":"TemporaryFile(/tmp/multipartBody2389876431769113393asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097830894,"filename":"image_16062025_20_15_15_9679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/db91844053ec02949caf9886c6884a1a.jpg","text":"TemporaryFile(/tmp/multipartBody39380582332784500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097830894,"filename":"image_16062025_20_15_45_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/535e643fc21db36ed84aa9ca549c96de.jpg","text":"TemporaryFile(/tmp/multipartBody7199302035664367301asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097830894,"filename":"image_16062025_20_15_25_10671.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592091","file1":"1366592087","file0":"1366592083","file4":"1366592105","file5":"1366592109","file3":"1366592098"},"map_files_photo_id_array":[{"photo_id":"1366592109","filename":"file5"},{"photo_id":"1366592091","filename":"file2"},{"photo_id":"1366592105","filename":"file4"},{"photo_id":"1366592087","filename":"file1"},{"photo_id":"1366592083","filename":"file0"},{"photo_id":"1366592098","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592109":["hashtag1","hashtag2"]},{"1366592087":["hashtag1","hashtag2"]},{"1366592105":["hashtag1","hashtag2"]},{"1366592098":["hashtag1","hashtag2"]},{"1366592083":["hashtag1","hashtag2"]},{"1366592091":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592109, 1366592087, 1366592105, 1366592098, 1366592083, 1366592091)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 64.90486216545105 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:17:16.776021
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/17/image_16062025_20_17_44_9639.jpg', 2), ('/home/nano/Desktop/images/16062025/20/17/image_16062025_20_17_35_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/20/17/image_16062025_20_17_25_10681.jpg', 2), ('/home/nano/Desktop/images/16062025/20/17/image_16062025_20_17_14_9706.jpg', 2), ('/home/nano/Desktop/images/16062025/20/16/image_16062025_20_17_05_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/20/16/image_16062025_20_16_55_10651.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/17/image_16062025_20_17_44_9639.jpg', '/home/nano/Desktop/images/16062025/20/17/image_16062025_20_17_35_9617.jpg', '/home/nano/Desktop/images/16062025/20/17/image_16062025_20_17_25_10681.jpg', '/home/nano/Desktop/images/16062025/20/17/image_16062025_20_17_14_9706.jpg', '/home/nano/Desktop/images/16062025/20/16/image_16062025_20_17_05_9677.jpg', '/home/nano/Desktop/images/16062025/20/16/image_16062025_20_16_55_10651.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/17/image_16062025_20_17_44_9639.jpg
/home/nano/Desktop/images/16062025/20/17/image_16062025_20_17_35_9617.jpg
/home/nano/Desktop/images/16062025/20/17/image_16062025_20_17_25_10681.jpg
/home/nano/Desktop/images/16062025/20/17/image_16062025_20_17_14_9706.jpg
/home/nano/Desktop/images/16062025/20/16/image_16062025_20_17_05_9677.jpg
/home/nano/Desktop/images/16062025/20/16/image_16062025_20_16_55_10651.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592139","1366592136","1366592117","1366592146","1366592143","1366592122"],"photo_ids_order":["1366592117","1366592122","1366592136","1366592139","1366592143","1366592146"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d2bac786d8820ce4ceb276a946c9ba75.jpg","text":"TemporaryFile(/tmp/multipartBody2856963117680674221asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097898956,"filename":"image_16062025_20_17_14_9706.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b21981c2abd1f443ec9e3c90d7e50b20.jpg","text":"TemporaryFile(/tmp/multipartBody642410055488132565asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097898956,"filename":"image_16062025_20_17_25_10681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b49a5794de2ff333a54593bfe1000269.jpg","text":"TemporaryFile(/tmp/multipartBody458082344199586971asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097898956,"filename":"image_16062025_20_17_44_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/99f1a16979b74af734404f2b98957c25.jpg","text":"TemporaryFile(/tmp/multipartBody6940079482300593766asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097898956,"filename":"image_16062025_20_16_55_10651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/660c21371d5ae8b61d96784c261cb54b.jpg","text":"TemporaryFile(/tmp/multipartBody6359950060404806800asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097898956,"filename":"image_16062025_20_17_05_9677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cf58e101a0bda0adef2010738b90d105.jpg","text":"TemporaryFile(/tmp/multipartBody3366492657247077006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097898956,"filename":"image_16062025_20_17_35_9617.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592136","file1":"1366592122","file0":"1366592117","file4":"1366592143","file5":"1366592146","file3":"1366592139"},"map_files_photo_id_array":[{"photo_id":"1366592146","filename":"file5"},{"photo_id":"1366592136","filename":"file2"},{"photo_id":"1366592143","filename":"file4"},{"photo_id":"1366592122","filename":"file1"},{"photo_id":"1366592117","filename":"file0"},{"photo_id":"1366592139","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592139":["hashtag1","hashtag2"]},{"1366592136":["hashtag1","hashtag2"]},{"1366592117":["hashtag1","hashtag2"]},{"1366592146":["hashtag1","hashtag2"]},{"1366592143":["hashtag1","hashtag2"]},{"1366592122":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592139, 1366592136, 1366592117, 1366592146, 1366592143, 1366592122)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.69891381263733 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:18:31.882683
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/18/image_16062025_20_18_45_10635.jpg', 2), ('/home/nano/Desktop/images/16062025/20/18/image_16062025_20_18_35_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/20/18/image_16062025_20_18_25_9710.jpg', 2), ('/home/nano/Desktop/images/16062025/20/18/image_16062025_20_18_15_10648.jpg', 2), ('/home/nano/Desktop/images/16062025/20/17/image_16062025_20_18_05_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/20/17/image_16062025_20_17_55_10620.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/18/image_16062025_20_18_45_10635.jpg', '/home/nano/Desktop/images/16062025/20/18/image_16062025_20_18_35_9616.jpg', '/home/nano/Desktop/images/16062025/20/18/image_16062025_20_18_25_9710.jpg', '/home/nano/Desktop/images/16062025/20/18/image_16062025_20_18_15_10648.jpg', '/home/nano/Desktop/images/16062025/20/17/image_16062025_20_18_05_9635.jpg', '/home/nano/Desktop/images/16062025/20/17/image_16062025_20_17_55_10620.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/18/image_16062025_20_18_45_10635.jpg
/home/nano/Desktop/images/16062025/20/18/image_16062025_20_18_35_9616.jpg
/home/nano/Desktop/images/16062025/20/18/image_16062025_20_18_25_9710.jpg
/home/nano/Desktop/images/16062025/20/18/image_16062025_20_18_15_10648.jpg
/home/nano/Desktop/images/16062025/20/17/image_16062025_20_18_05_9635.jpg
/home/nano/Desktop/images/16062025/20/17/image_16062025_20_17_55_10620.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592172","1366592180","1366592168","1366592177","1366592165","1366592160"],"photo_ids_order":["1366592160","1366592165","1366592168","1366592172","1366592177","1366592180"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/efae29e52084cb73bd647dc28cf00b75.jpg","text":"TemporaryFile(/tmp/multipartBody2912856971391481654asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097973954,"filename":"image_16062025_20_18_15_10648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1988100b8433b337ca0742fa0547caa9.jpg","text":"TemporaryFile(/tmp/multipartBody8583167175786031598asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097973954,"filename":"image_16062025_20_17_55_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/07a2bb05cfcf429156396ee60d56944e.jpg","text":"TemporaryFile(/tmp/multipartBody6871151504799224220asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097973954,"filename":"image_16062025_20_18_25_9710.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4a91a1c45da813a7063d82f881194165.jpg","text":"TemporaryFile(/tmp/multipartBody1106759887791541613asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097973954,"filename":"image_16062025_20_18_05_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f64bec6e41a51df20d8acc81c2398847.jpg","text":"TemporaryFile(/tmp/multipartBody7254977321620587551asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097973954,"filename":"image_16062025_20_18_35_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/32748fdffaa2fed6b0be1775f6def131.jpg","text":"TemporaryFile(/tmp/multipartBody3842294025587548253asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750097973954,"filename":"image_16062025_20_18_45_10635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592168","file1":"1366592165","file0":"1366592160","file4":"1366592177","file5":"1366592180","file3":"1366592172"},"map_files_photo_id_array":[{"photo_id":"1366592180","filename":"file5"},{"photo_id":"1366592168","filename":"file2"},{"photo_id":"1366592177","filename":"file4"},{"photo_id":"1366592165","filename":"file1"},{"photo_id":"1366592160","filename":"file0"},{"photo_id":"1366592172","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592172":["hashtag1","hashtag2"]},{"1366592180":["hashtag1","hashtag2"]},{"1366592168":["hashtag1","hashtag2"]},{"1366592177":["hashtag1","hashtag2"]},{"1366592165":["hashtag1","hashtag2"]},{"1366592160":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592172, 1366592180, 1366592168, 1366592177, 1366592165, 1366592160)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 71.36940503120422 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:19:46.976806
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/19/image_16062025_20_19_45_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/20/19/image_16062025_20_19_34_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/20/19/image_16062025_20_19_25_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/20/19/image_16062025_20_19_15_10660.jpg', 2), ('/home/nano/Desktop/images/16062025/20/18/image_16062025_20_19_05_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/20/18/image_16062025_20_18_55_9643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/19/image_16062025_20_19_45_10636.jpg', '/home/nano/Desktop/images/16062025/20/19/image_16062025_20_19_34_9608.jpg', '/home/nano/Desktop/images/16062025/20/19/image_16062025_20_19_25_9626.jpg', '/home/nano/Desktop/images/16062025/20/19/image_16062025_20_19_15_10660.jpg', '/home/nano/Desktop/images/16062025/20/18/image_16062025_20_19_05_9642.jpg', '/home/nano/Desktop/images/16062025/20/18/image_16062025_20_18_55_9643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/19/image_16062025_20_19_45_10636.jpg
/home/nano/Desktop/images/16062025/20/19/image_16062025_20_19_34_9608.jpg
/home/nano/Desktop/images/16062025/20/19/image_16062025_20_19_25_9626.jpg
/home/nano/Desktop/images/16062025/20/19/image_16062025_20_19_15_10660.jpg
/home/nano/Desktop/images/16062025/20/18/image_16062025_20_19_05_9642.jpg
/home/nano/Desktop/images/16062025/20/18/image_16062025_20_18_55_9643.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592202","1366592210","1366592207","1366592221","1366592215","1366592224"],"photo_ids_order":["1366592202","1366592207","1366592210","1366592215","1366592221","1366592224"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/20529cdca5a82be579ac04e538310bdf.jpg","text":"TemporaryFile(/tmp/multipartBody8876566156710825980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098050617,"filename":"image_16062025_20_19_45_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3ef9b99a4a684f8dacf253420f651cf0.jpg","text":"TemporaryFile(/tmp/multipartBody8444993779925614657asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098050617,"filename":"image_16062025_20_19_25_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d9f18fe18ac4761faca6484aea190ff4.jpg","text":"TemporaryFile(/tmp/multipartBody685338544008304618asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098050617,"filename":"image_16062025_20_19_34_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9bbcd8bc36095ac98d474581e2223b0e.jpg","text":"TemporaryFile(/tmp/multipartBody1404719346584005817asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098050617,"filename":"image_16062025_20_19_05_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5a3b5671cd5834f7ecfa60e5c124ef25.jpg","text":"TemporaryFile(/tmp/multipartBody6732301904225850693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098050617,"filename":"image_16062025_20_19_15_10660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4601a78ea96aef54797d2f895c69098d.jpg","text":"TemporaryFile(/tmp/multipartBody1380992133523960888asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098050617,"filename":"image_16062025_20_18_55_9643.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592210","file1":"1366592207","file0":"1366592202","file4":"1366592221","file5":"1366592224","file3":"1366592215"},"map_files_photo_id_array":[{"photo_id":"1366592224","filename":"file5"},{"photo_id":"1366592210","filename":"file2"},{"photo_id":"1366592221","filename":"file4"},{"photo_id":"1366592207","filename":"file1"},{"photo_id":"1366592202","filename":"file0"},{"photo_id":"1366592215","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592202":["hashtag1","hashtag2"]},{"1366592210":["hashtag1","hashtag2"]},{"1366592207":["hashtag1","hashtag2"]},{"1366592221":["hashtag1","hashtag2"]},{"1366592215":["hashtag1","hashtag2"]},{"1366592224":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592202, 1366592210, 1366592207, 1366592221, 1366592215, 1366592224)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 54.97169017791748 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:20:47.084763
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/20/image_16062025_20_20_45_10661.jpg', 2), ('/home/nano/Desktop/images/16062025/20/20/image_16062025_20_20_34_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/20/20/image_16062025_20_20_25_9653.jpg', 2), ('/home/nano/Desktop/images/16062025/20/20/image_16062025_20_20_15_10687.jpg', 2), ('/home/nano/Desktop/images/16062025/20/19/image_16062025_20_20_04_9670.jpg', 2), ('/home/nano/Desktop/images/16062025/20/19/image_16062025_20_19_55_9613.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/20/image_16062025_20_20_45_10661.jpg', '/home/nano/Desktop/images/16062025/20/20/image_16062025_20_20_34_9654.jpg', '/home/nano/Desktop/images/16062025/20/20/image_16062025_20_20_25_9653.jpg', '/home/nano/Desktop/images/16062025/20/20/image_16062025_20_20_15_10687.jpg', '/home/nano/Desktop/images/16062025/20/19/image_16062025_20_20_04_9670.jpg', '/home/nano/Desktop/images/16062025/20/19/image_16062025_20_19_55_9613.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/20/image_16062025_20_20_45_10661.jpg
/home/nano/Desktop/images/16062025/20/20/image_16062025_20_20_34_9654.jpg
/home/nano/Desktop/images/16062025/20/20/image_16062025_20_20_25_9653.jpg
/home/nano/Desktop/images/16062025/20/20/image_16062025_20_20_15_10687.jpg
/home/nano/Desktop/images/16062025/20/19/image_16062025_20_20_04_9670.jpg
/home/nano/Desktop/images/16062025/20/19/image_16062025_20_19_55_9613.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592265","1366592259","1366592250","1366592245","1366592254","1366592241"],"photo_ids_order":["1366592241","1366592245","1366592250","1366592254","1366592259","1366592265"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e7e522d344e768a29573c0bcfd8018be.jpg","text":"TemporaryFile(/tmp/multipartBody2938542486946663559asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098114392,"filename":"image_16062025_20_19_55_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9e7c704887ce15c33cba29dc52a2d111.jpg","text":"TemporaryFile(/tmp/multipartBody6981610815108357515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098114392,"filename":"image_16062025_20_20_04_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/62eaca6bcd31864b6cd3062b5a35c5c5.jpg","text":"TemporaryFile(/tmp/multipartBody3899567329134886778asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098114392,"filename":"image_16062025_20_20_25_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/905dcca3f7104b6b329d235d23561001.jpg","text":"TemporaryFile(/tmp/multipartBody2519050725962921875asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098114392,"filename":"image_16062025_20_20_34_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5fbc11d7f2b41371e36210d24ee46a12.jpg","text":"TemporaryFile(/tmp/multipartBody8285286027610245768asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098114392,"filename":"image_16062025_20_20_15_10687.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/88cee0445e5e0da8891f25d43747af6c.jpg","text":"TemporaryFile(/tmp/multipartBody5796683858614307471asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098114392,"filename":"image_16062025_20_20_45_10661.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592250","file1":"1366592245","file0":"1366592241","file4":"1366592259","file5":"1366592265","file3":"1366592254"},"map_files_photo_id_array":[{"photo_id":"1366592265","filename":"file5"},{"photo_id":"1366592250","filename":"file2"},{"photo_id":"1366592259","filename":"file4"},{"photo_id":"1366592245","filename":"file1"},{"photo_id":"1366592241","filename":"file0"},{"photo_id":"1366592254","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592265":["hashtag1","hashtag2"]},{"1366592259":["hashtag1","hashtag2"]},{"1366592250":["hashtag1","hashtag2"]},{"1366592245":["hashtag1","hashtag2"]},{"1366592254":["hashtag1","hashtag2"]},{"1366592241":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592265, 1366592259, 1366592250, 1366592245, 1366592254, 1366592241)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 67.380450963974 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:22:02.944532
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/21/image_16062025_20_21_45_9636.jpg', 2), ('/home/nano/Desktop/images/16062025/20/21/image_16062025_20_21_35_10644.jpg', 2), ('/home/nano/Desktop/images/16062025/20/21/image_16062025_20_21_25_9650.jpg', 2), ('/home/nano/Desktop/images/16062025/20/21/image_16062025_20_21_15_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/20/20/image_16062025_20_21_05_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/20/20/image_16062025_20_20_55_9622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/21/image_16062025_20_21_45_9636.jpg', '/home/nano/Desktop/images/16062025/20/21/image_16062025_20_21_35_10644.jpg', '/home/nano/Desktop/images/16062025/20/21/image_16062025_20_21_25_9650.jpg', '/home/nano/Desktop/images/16062025/20/21/image_16062025_20_21_15_9629.jpg', '/home/nano/Desktop/images/16062025/20/20/image_16062025_20_21_05_10646.jpg', '/home/nano/Desktop/images/16062025/20/20/image_16062025_20_20_55_9622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/21/image_16062025_20_21_45_9636.jpg
/home/nano/Desktop/images/16062025/20/21/image_16062025_20_21_35_10644.jpg
/home/nano/Desktop/images/16062025/20/21/image_16062025_20_21_25_9650.jpg
/home/nano/Desktop/images/16062025/20/21/image_16062025_20_21_15_9629.jpg
/home/nano/Desktop/images/16062025/20/20/image_16062025_20_21_05_10646.jpg
/home/nano/Desktop/images/16062025/20/20/image_16062025_20_20_55_9622.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592307","1366592297","1366592303","1366592275","1366592284","1366592311"],"photo_ids_order":["1366592275","1366592284","1366592297","1366592303","1366592307","1366592311"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3342965cbdb1daf3cd93801c8980585a.jpg","text":"TemporaryFile(/tmp/multipartBody5873699927152807411asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098185826,"filename":"image_16062025_20_21_05_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c483bd6eb41b4033ec74fe8686099f75.jpg","text":"TemporaryFile(/tmp/multipartBody2227400490689518281asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098185826,"filename":"image_16062025_20_21_25_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e86c5a441033868d0bdfabd4d5753e77.jpg","text":"TemporaryFile(/tmp/multipartBody6940698010732795864asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098185826,"filename":"image_16062025_20_21_15_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5734523908583a94e13fdb7043c85ac7.jpg","text":"TemporaryFile(/tmp/multipartBody3215173374258275642asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098185826,"filename":"image_16062025_20_21_45_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8593aa8fc03bf61f77f4d1e32f502532.jpg","text":"TemporaryFile(/tmp/multipartBody6146694113847856181asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098185826,"filename":"image_16062025_20_21_35_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/44c0fa04114db89192ada2fe2140026a.jpg","text":"TemporaryFile(/tmp/multipartBody3555865977614915990asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098185826,"filename":"image_16062025_20_20_55_9622.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592297","file1":"1366592284","file0":"1366592275","file4":"1366592307","file5":"1366592311","file3":"1366592303"},"map_files_photo_id_array":[{"photo_id":"1366592311","filename":"file5"},{"photo_id":"1366592297","filename":"file2"},{"photo_id":"1366592307","filename":"file4"},{"photo_id":"1366592284","filename":"file1"},{"photo_id":"1366592275","filename":"file0"},{"photo_id":"1366592303","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592307":["hashtag1","hashtag2"]},{"1366592297":["hashtag1","hashtag2"]},{"1366592303":["hashtag1","hashtag2"]},{"1366592275":["hashtag1","hashtag2"]},{"1366592284":["hashtag1","hashtag2"]},{"1366592311":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592307, 1366592297, 1366592303, 1366592275, 1366592284, 1366592311)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 79.31325078010559 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:23:32.524730
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/23/image_16062025_20_23_45_9597.jpg', 2), ('/home/nano/Desktop/images/16062025/20/23/image_16062025_20_23_35_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/20/23/image_16062025_20_23_25_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/20/23/image_16062025_20_23_15_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/20/22/image_16062025_20_23_05_10653.jpg', 2), ('/home/nano/Desktop/images/16062025/20/22/image_16062025_20_22_54_9633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/23/image_16062025_20_23_45_9597.jpg', '/home/nano/Desktop/images/16062025/20/23/image_16062025_20_23_35_9613.jpg', '/home/nano/Desktop/images/16062025/20/23/image_16062025_20_23_25_10622.jpg', '/home/nano/Desktop/images/16062025/20/23/image_16062025_20_23_15_9655.jpg', '/home/nano/Desktop/images/16062025/20/22/image_16062025_20_23_05_10653.jpg', '/home/nano/Desktop/images/16062025/20/22/image_16062025_20_22_54_9633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/23/image_16062025_20_23_45_9597.jpg
/home/nano/Desktop/images/16062025/20/23/image_16062025_20_23_35_9613.jpg
/home/nano/Desktop/images/16062025/20/23/image_16062025_20_23_25_10622.jpg
/home/nano/Desktop/images/16062025/20/23/image_16062025_20_23_15_9655.jpg
/home/nano/Desktop/images/16062025/20/22/image_16062025_20_23_05_10653.jpg
/home/nano/Desktop/images/16062025/20/22/image_16062025_20_22_54_9633.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592325","1366592328","1366592332","1366592341","1366592335","1366592320"],"photo_ids_order":["1366592320","1366592325","1366592328","1366592332","1366592335","1366592341"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2f8cde4d315a584dbf6526e225981506.jpg","text":"TemporaryFile(/tmp/multipartBody2212284502397900552asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098274792,"filename":"image_16062025_20_23_35_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0cdf864d9707dc1d59ff25882de47ec3.jpg","text":"TemporaryFile(/tmp/multipartBody6643580430581472344asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098274792,"filename":"image_16062025_20_23_25_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/774c70f17af7ee1d2b508925af93f676.jpg","text":"TemporaryFile(/tmp/multipartBody6344822184048478510asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098274792,"filename":"image_16062025_20_23_15_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/79a0e605e8abd429b031ae226efad831.jpg","text":"TemporaryFile(/tmp/multipartBody2304165924270303740asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098274792,"filename":"image_16062025_20_22_54_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b133803fa80097ce85c26b3a9ed885e0.jpg","text":"TemporaryFile(/tmp/multipartBody7064879334626168688asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098274792,"filename":"image_16062025_20_23_05_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b72b8e2b7424bf0643a9aa4deb74264a.jpg","text":"TemporaryFile(/tmp/multipartBody2176291245139622383asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098274792,"filename":"image_16062025_20_23_45_9597.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592328","file1":"1366592325","file0":"1366592320","file4":"1366592335","file5":"1366592341","file3":"1366592332"},"map_files_photo_id_array":[{"photo_id":"1366592341","filename":"file5"},{"photo_id":"1366592328","filename":"file2"},{"photo_id":"1366592335","filename":"file4"},{"photo_id":"1366592325","filename":"file1"},{"photo_id":"1366592320","filename":"file0"},{"photo_id":"1366592332","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592325":["hashtag1","hashtag2"]},{"1366592328":["hashtag1","hashtag2"]},{"1366592332":["hashtag1","hashtag2"]},{"1366592341":["hashtag1","hashtag2"]},{"1366592335":["hashtag1","hashtag2"]},{"1366592320":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592325, 1366592328, 1366592332, 1366592341, 1366592335, 1366592320)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 56.671765089035034 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:24:32.648061
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/24/image_16062025_20_24_45_10616.jpg', 2), ('/home/nano/Desktop/images/16062025/20/24/image_16062025_20_24_35_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/20/24/image_16062025_20_24_25_10634.jpg', 2), ('/home/nano/Desktop/images/16062025/20/24/image_16062025_20_24_14_9635.jpg', 2), ('/home/nano/Desktop/images/16062025/20/23/image_16062025_20_24_05_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/20/23/image_16062025_20_23_55_10614.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/24/image_16062025_20_24_45_10616.jpg', '/home/nano/Desktop/images/16062025/20/24/image_16062025_20_24_35_9608.jpg', '/home/nano/Desktop/images/16062025/20/24/image_16062025_20_24_25_10634.jpg', '/home/nano/Desktop/images/16062025/20/24/image_16062025_20_24_14_9635.jpg', '/home/nano/Desktop/images/16062025/20/23/image_16062025_20_24_05_9623.jpg', '/home/nano/Desktop/images/16062025/20/23/image_16062025_20_23_55_10614.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/24/image_16062025_20_24_45_10616.jpg
/home/nano/Desktop/images/16062025/20/24/image_16062025_20_24_35_9608.jpg
/home/nano/Desktop/images/16062025/20/24/image_16062025_20_24_25_10634.jpg
/home/nano/Desktop/images/16062025/20/24/image_16062025_20_24_14_9635.jpg
/home/nano/Desktop/images/16062025/20/23/image_16062025_20_24_05_9623.jpg
/home/nano/Desktop/images/16062025/20/23/image_16062025_20_23_55_10614.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592366","1366592351","1366592369","1366592362","1366592373","1366592376"],"photo_ids_order":["1366592351","1366592362","1366592366","1366592369","1366592373","1366592376"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8a92a3601451d365074a354f739a1f87.jpg","text":"TemporaryFile(/tmp/multipartBody2641137727450904286asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098337341,"filename":"image_16062025_20_24_25_10634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2cc0c20912324a4e50337858e4bd6246.jpg","text":"TemporaryFile(/tmp/multipartBody5758771051521064708asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098337341,"filename":"image_16062025_20_24_45_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/71fd861f0e0faea315b2fd81a02d8ab8.jpg","text":"TemporaryFile(/tmp/multipartBody5590118855530791962asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098337341,"filename":"image_16062025_20_24_14_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3a5f9831424658479d9871d6042f6e40.jpg","text":"TemporaryFile(/tmp/multipartBody2925136165607238365asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098337341,"filename":"image_16062025_20_24_35_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/52dbd5bfcf3453c5fdb5e26bd24fce59.jpg","text":"TemporaryFile(/tmp/multipartBody6590842078640308498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098337341,"filename":"image_16062025_20_24_05_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8311d1583ee93f66cf375205149306f2.jpg","text":"TemporaryFile(/tmp/multipartBody8003379988755669909asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098337341,"filename":"image_16062025_20_23_55_10614.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592366","file1":"1366592362","file0":"1366592351","file4":"1366592373","file5":"1366592376","file3":"1366592369"},"map_files_photo_id_array":[{"photo_id":"1366592376","filename":"file5"},{"photo_id":"1366592366","filename":"file2"},{"photo_id":"1366592373","filename":"file4"},{"photo_id":"1366592362","filename":"file1"},{"photo_id":"1366592351","filename":"file0"},{"photo_id":"1366592369","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592366":["hashtag1","hashtag2"]},{"1366592351":["hashtag1","hashtag2"]},{"1366592369":["hashtag1","hashtag2"]},{"1366592362":["hashtag1","hashtag2"]},{"1366592373":["hashtag1","hashtag2"]},{"1366592376":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592366, 1366592351, 1366592369, 1366592362, 1366592373, 1366592376)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 49.95704388618469 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:25:32.730520
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/25/image_16062025_20_25_45_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/20/25/image_16062025_20_25_34_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/20/25/image_16062025_20_25_25_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/20/25/image_16062025_20_25_15_10639.jpg', 2), ('/home/nano/Desktop/images/16062025/20/24/image_16062025_20_25_05_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/20/24/image_16062025_20_24_55_9605.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/25/image_16062025_20_25_45_10619.jpg', '/home/nano/Desktop/images/16062025/20/25/image_16062025_20_25_34_9612.jpg', '/home/nano/Desktop/images/16062025/20/25/image_16062025_20_25_25_9616.jpg', '/home/nano/Desktop/images/16062025/20/25/image_16062025_20_25_15_10639.jpg', '/home/nano/Desktop/images/16062025/20/24/image_16062025_20_25_05_9625.jpg', '/home/nano/Desktop/images/16062025/20/24/image_16062025_20_24_55_9605.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/25/image_16062025_20_25_45_10619.jpg
/home/nano/Desktop/images/16062025/20/25/image_16062025_20_25_34_9612.jpg
/home/nano/Desktop/images/16062025/20/25/image_16062025_20_25_25_9616.jpg
/home/nano/Desktop/images/16062025/20/25/image_16062025_20_25_15_10639.jpg
/home/nano/Desktop/images/16062025/20/24/image_16062025_20_25_05_9625.jpg
/home/nano/Desktop/images/16062025/20/24/image_16062025_20_24_55_9605.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592406","1366592390","1366592393","1366592386","1366592401","1366592397"],"photo_ids_order":["1366592386","1366592390","1366592393","1366592397","1366592401","1366592406"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8e66dca3c8ec480379eedc1dd16b7649.jpg","text":"TemporaryFile(/tmp/multipartBody8538832562714106413asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098395052,"filename":"image_16062025_20_24_55_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f8b92770578091608e4e0af539180578.jpg","text":"TemporaryFile(/tmp/multipartBody647914464364999905asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098395052,"filename":"image_16062025_20_25_34_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/24cb21822bebfe619d4c1e8205a5c5f2.jpg","text":"TemporaryFile(/tmp/multipartBody5050975610478806908asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098395052,"filename":"image_16062025_20_25_25_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/845c12d6e0a96a3a5c2fa0d8a88a5dbc.jpg","text":"TemporaryFile(/tmp/multipartBody1229886391281672385asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098395052,"filename":"image_16062025_20_25_45_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e3fcd2b4ae95faa7a0a2757a024e4d2c.jpg","text":"TemporaryFile(/tmp/multipartBody2968349456443753544asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098395052,"filename":"image_16062025_20_25_05_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/326747b524279cc1a1879807112c060f.jpg","text":"TemporaryFile(/tmp/multipartBody8898632232835007814asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098395052,"filename":"image_16062025_20_25_15_10639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592393","file1":"1366592390","file0":"1366592386","file4":"1366592401","file5":"1366592406","file3":"1366592397"},"map_files_photo_id_array":[{"photo_id":"1366592406","filename":"file5"},{"photo_id":"1366592393","filename":"file2"},{"photo_id":"1366592401","filename":"file4"},{"photo_id":"1366592390","filename":"file1"},{"photo_id":"1366592386","filename":"file0"},{"photo_id":"1366592397","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592406":["hashtag1","hashtag2"]},{"1366592390":["hashtag1","hashtag2"]},{"1366592393":["hashtag1","hashtag2"]},{"1366592386":["hashtag1","hashtag2"]},{"1366592401":["hashtag1","hashtag2"]},{"1366592397":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592406, 1366592390, 1366592393, 1366592386, 1366592401, 1366592397)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 49.588685512542725 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:26:31.829287
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/26/image_16062025_20_26_15_9644.jpg', 2), ('/home/nano/Desktop/images/16062025/20/25/image_16062025_20_26_05_10636.jpg', 2), ('/home/nano/Desktop/images/16062025/20/25/image_16062025_20_25_55_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/20/22/image_16062025_20_22_45_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/20/22/image_16062025_20_22_35_10649.jpg', 2), ('/home/nano/Desktop/images/16062025/20/22/image_16062025_20_22_24_9649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/26/image_16062025_20_26_15_9644.jpg', '/home/nano/Desktop/images/16062025/20/25/image_16062025_20_26_05_10636.jpg', '/home/nano/Desktop/images/16062025/20/25/image_16062025_20_25_55_9616.jpg', '/home/nano/Desktop/images/16062025/20/22/image_16062025_20_22_45_9657.jpg', '/home/nano/Desktop/images/16062025/20/22/image_16062025_20_22_35_10649.jpg', '/home/nano/Desktop/images/16062025/20/22/image_16062025_20_22_24_9649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/26/image_16062025_20_26_15_9644.jpg
/home/nano/Desktop/images/16062025/20/25/image_16062025_20_26_05_10636.jpg
/home/nano/Desktop/images/16062025/20/25/image_16062025_20_25_55_9616.jpg
/home/nano/Desktop/images/16062025/20/22/image_16062025_20_22_45_9657.jpg
/home/nano/Desktop/images/16062025/20/22/image_16062025_20_22_35_10649.jpg
/home/nano/Desktop/images/16062025/20/22/image_16062025_20_22_24_9649.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592427","1366592447","1366592432","1366592438","1366592426","1366592428"],"photo_ids_order":["1366592426","1366592427","1366592428","1366592432","1366592438","1366592447"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2ec07a069d1f6e727c68ab3598c3d937.jpg","text":"TemporaryFile(/tmp/multipartBody1451313052751345035asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098454007,"filename":"image_16062025_20_26_05_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/01c234beb8649a3184219caa5fd53b85.jpg","text":"TemporaryFile(/tmp/multipartBody690222104064969226asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098454007,"filename":"image_16062025_20_22_24_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d60e3a50b372c0bba76eef0ad40205de.jpg","text":"TemporaryFile(/tmp/multipartBody9181004808183769043asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098454007,"filename":"image_16062025_20_22_45_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/89f36a6c634675248c2c5c686bbaac46.jpg","text":"TemporaryFile(/tmp/multipartBody3196457755789765479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098454007,"filename":"image_16062025_20_22_35_10649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f312bb3a045165c350dc05530ce461bc.jpg","text":"TemporaryFile(/tmp/multipartBody7132404707624123912asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098454007,"filename":"image_16062025_20_26_15_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6f56ed43a8e523f80d92627ee6f56ca0.jpg","text":"TemporaryFile(/tmp/multipartBody8774877744358850362asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098454007,"filename":"image_16062025_20_25_55_9616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592428","file1":"1366592427","file0":"1366592426","file4":"1366592438","file5":"1366592447","file3":"1366592432"},"map_files_photo_id_array":[{"photo_id":"1366592447","filename":"file5"},{"photo_id":"1366592428","filename":"file2"},{"photo_id":"1366592438","filename":"file4"},{"photo_id":"1366592427","filename":"file1"},{"photo_id":"1366592426","filename":"file0"},{"photo_id":"1366592432","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592427":["hashtag1","hashtag2"]},{"1366592447":["hashtag1","hashtag2"]},{"1366592432":["hashtag1","hashtag2"]},{"1366592438":["hashtag1","hashtag2"]},{"1366592426":["hashtag1","hashtag2"]},{"1366592428":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592427, 1366592447, 1366592432, 1366592438, 1366592426, 1366592428)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 51.71675729751587 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:27:31.942097
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/27/image_16062025_20_27_45_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/20/26/image_16062025_20_27_05_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/20/26/image_16062025_20_26_45_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/20/22/image_16062025_20_22_15_9674.jpg', 2), ('/home/nano/Desktop/images/16062025/20/21/image_16062025_20_22_05_10676.jpg', 2), ('/home/nano/Desktop/images/16062025/20/21/image_16062025_20_21_54_9626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/27/image_16062025_20_27_45_9616.jpg', '/home/nano/Desktop/images/16062025/20/26/image_16062025_20_27_05_10641.jpg', '/home/nano/Desktop/images/16062025/20/26/image_16062025_20_26_45_9611.jpg', '/home/nano/Desktop/images/16062025/20/22/image_16062025_20_22_15_9674.jpg', '/home/nano/Desktop/images/16062025/20/21/image_16062025_20_22_05_10676.jpg', '/home/nano/Desktop/images/16062025/20/21/image_16062025_20_21_54_9626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/27/image_16062025_20_27_45_9616.jpg
/home/nano/Desktop/images/16062025/20/26/image_16062025_20_27_05_10641.jpg
/home/nano/Desktop/images/16062025/20/26/image_16062025_20_26_45_9611.jpg
/home/nano/Desktop/images/16062025/20/22/image_16062025_20_22_15_9674.jpg
/home/nano/Desktop/images/16062025/20/21/image_16062025_20_22_05_10676.jpg
/home/nano/Desktop/images/16062025/20/21/image_16062025_20_21_54_9626.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592465","1366592480","1366592468","1366592462","1366592476","1366592472"],"photo_ids_order":["1366592462","1366592465","1366592468","1366592472","1366592476","1366592480"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dd9ba885f4064a0571f87d78d06d085d.jpg","text":"TemporaryFile(/tmp/multipartBody2219617889769843112asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098514082,"filename":"image_16062025_20_27_05_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7d29f1b0019a961506a8b563d3f38953.jpg","text":"TemporaryFile(/tmp/multipartBody162430875643272852asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098514082,"filename":"image_16062025_20_21_54_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f08ec5baf6faf3c8a359e8ca7234b048.jpg","text":"TemporaryFile(/tmp/multipartBody2954580773268473933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098514082,"filename":"image_16062025_20_26_45_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/aba9c88c268314d5ee69e9532d52b9f5.jpg","text":"TemporaryFile(/tmp/multipartBody7842294374088028328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098514082,"filename":"image_16062025_20_27_45_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b2e32497d3cee3ba4dfdf5fcd8d744b2.jpg","text":"TemporaryFile(/tmp/multipartBody8452849402131731058asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098514082,"filename":"image_16062025_20_22_05_10676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8205974a413ef98cbd80c3a660c1ac6f.jpg","text":"TemporaryFile(/tmp/multipartBody3132470012785677745asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098514082,"filename":"image_16062025_20_22_15_9674.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592468","file1":"1366592465","file0":"1366592462","file4":"1366592476","file5":"1366592480","file3":"1366592472"},"map_files_photo_id_array":[{"photo_id":"1366592480","filename":"file5"},{"photo_id":"1366592468","filename":"file2"},{"photo_id":"1366592476","filename":"file4"},{"photo_id":"1366592465","filename":"file1"},{"photo_id":"1366592462","filename":"file0"},{"photo_id":"1366592472","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592465":["hashtag1","hashtag2"]},{"1366592480":["hashtag1","hashtag2"]},{"1366592468":["hashtag1","hashtag2"]},{"1366592462":["hashtag1","hashtag2"]},{"1366592476":["hashtag1","hashtag2"]},{"1366592472":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592465, 1366592480, 1366592468, 1366592462, 1366592476, 1366592472)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 48.89739108085632 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:28:32.051062
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/28/image_16062025_20_28_25_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/20/28/image_16062025_20_28_14_9649.jpg', 2), ('/home/nano/Desktop/images/16062025/20/27/image_16062025_20_28_05_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/20/27/image_16062025_20_27_55_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/20/16/image_16062025_20_16_44_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/20/16/image_16062025_20_16_35_9639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/28/image_16062025_20_28_25_10630.jpg', '/home/nano/Desktop/images/16062025/20/28/image_16062025_20_28_14_9649.jpg', '/home/nano/Desktop/images/16062025/20/27/image_16062025_20_28_05_9628.jpg', '/home/nano/Desktop/images/16062025/20/27/image_16062025_20_27_55_10625.jpg', '/home/nano/Desktop/images/16062025/20/16/image_16062025_20_16_44_9626.jpg', '/home/nano/Desktop/images/16062025/20/16/image_16062025_20_16_35_9639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/28/image_16062025_20_28_25_10630.jpg
/home/nano/Desktop/images/16062025/20/28/image_16062025_20_28_14_9649.jpg
/home/nano/Desktop/images/16062025/20/27/image_16062025_20_28_05_9628.jpg
/home/nano/Desktop/images/16062025/20/27/image_16062025_20_27_55_10625.jpg
/home/nano/Desktop/images/16062025/20/16/image_16062025_20_16_44_9626.jpg
/home/nano/Desktop/images/16062025/20/16/image_16062025_20_16_35_9639.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592511","1366592514","1366592507","1366592518","1366592499","1366592493"],"photo_ids_order":["1366592493","1366592499","1366592507","1366592511","1366592514","1366592518"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0cd9c78c4fcdae1c5d0d98b491b8982d.jpg","text":"TemporaryFile(/tmp/multipartBody1067996101838433695asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098574279,"filename":"image_16062025_20_27_55_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fb157237dfa906d7d8c631577d470ddc.jpg","text":"TemporaryFile(/tmp/multipartBody2699507532828855631asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098574279,"filename":"image_16062025_20_16_44_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/27b5cf4a7bb30f55cee3c3be7ac5c0d8.jpg","text":"TemporaryFile(/tmp/multipartBody3931769124131097385asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098574279,"filename":"image_16062025_20_28_05_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c3bc8f1716aa55901c9d76abfbe82c39.jpg","text":"TemporaryFile(/tmp/multipartBody2895408959692551426asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098574279,"filename":"image_16062025_20_16_35_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/10d35648978d04dc1109d495e9138e06.jpg","text":"TemporaryFile(/tmp/multipartBody2023945060321733334asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098574279,"filename":"image_16062025_20_28_14_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/02829b8724e19092d33e5f50bd13e710.jpg","text":"TemporaryFile(/tmp/multipartBody4407840231137577706asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098574279,"filename":"image_16062025_20_28_25_10630.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592507","file1":"1366592499","file0":"1366592493","file4":"1366592514","file5":"1366592518","file3":"1366592511"},"map_files_photo_id_array":[{"photo_id":"1366592518","filename":"file5"},{"photo_id":"1366592507","filename":"file2"},{"photo_id":"1366592514","filename":"file4"},{"photo_id":"1366592499","filename":"file1"},{"photo_id":"1366592493","filename":"file0"},{"photo_id":"1366592511","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592511":["hashtag1","hashtag2"]},{"1366592514":["hashtag1","hashtag2"]},{"1366592507":["hashtag1","hashtag2"]},{"1366592518":["hashtag1","hashtag2"]},{"1366592499":["hashtag1","hashtag2"]},{"1366592493":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592511, 1366592514, 1366592507, 1366592518, 1366592499, 1366592493)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.70530867576599 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:29:32.212863
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/29/image_16062025_20_29_45_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/20/29/image_16062025_20_29_34_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/20/29/image_16062025_20_29_25_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/20/29/image_16062025_20_29_15_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/20/28/image_16062025_20_29_05_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/20/28/image_16062025_20_28_35_9621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/29/image_16062025_20_29_45_10621.jpg', '/home/nano/Desktop/images/16062025/20/29/image_16062025_20_29_34_9613.jpg', '/home/nano/Desktop/images/16062025/20/29/image_16062025_20_29_25_9612.jpg', '/home/nano/Desktop/images/16062025/20/29/image_16062025_20_29_15_10647.jpg', '/home/nano/Desktop/images/16062025/20/28/image_16062025_20_29_05_9625.jpg', '/home/nano/Desktop/images/16062025/20/28/image_16062025_20_28_35_9621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/29/image_16062025_20_29_45_10621.jpg
/home/nano/Desktop/images/16062025/20/29/image_16062025_20_29_34_9613.jpg
/home/nano/Desktop/images/16062025/20/29/image_16062025_20_29_25_9612.jpg
/home/nano/Desktop/images/16062025/20/29/image_16062025_20_29_15_10647.jpg
/home/nano/Desktop/images/16062025/20/28/image_16062025_20_29_05_9625.jpg
/home/nano/Desktop/images/16062025/20/28/image_16062025_20_28_35_9621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592541","1366592564","1366592558","1366592537","1366592548","1366592568"],"photo_ids_order":["1366592537","1366592541","1366592548","1366592558","1366592564","1366592568"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ff2683cc2ab81c9424ca028bbc6eccc5.jpg","text":"TemporaryFile(/tmp/multipartBody8553556906360736859asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098636880,"filename":"image_16062025_20_29_34_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8fd4d1d6e347fd0ed3c1ec93f40c28ef.jpg","text":"TemporaryFile(/tmp/multipartBody6055891989878037402asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098636880,"filename":"image_16062025_20_29_05_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a876a19d4574bc5068762e02e02bce75.jpg","text":"TemporaryFile(/tmp/multipartBody5227488745644516479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098636880,"filename":"image_16062025_20_29_15_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9a5fe36aa941689e322bb214ae29616b.jpg","text":"TemporaryFile(/tmp/multipartBody7453365380099525555asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098636880,"filename":"image_16062025_20_29_45_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1b9c9ac1bfedf48961579e800b807ef9.jpg","text":"TemporaryFile(/tmp/multipartBody6352735590034307816asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098636880,"filename":"image_16062025_20_29_25_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a8e8088b0f5e6dbd9c7baae22d18e4f3.jpg","text":"TemporaryFile(/tmp/multipartBody321016830290821514asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098636880,"filename":"image_16062025_20_28_35_9621.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592548","file1":"1366592541","file0":"1366592537","file4":"1366592564","file5":"1366592568","file3":"1366592558"},"map_files_photo_id_array":[{"photo_id":"1366592568","filename":"file5"},{"photo_id":"1366592548","filename":"file2"},{"photo_id":"1366592564","filename":"file4"},{"photo_id":"1366592541","filename":"file1"},{"photo_id":"1366592537","filename":"file0"},{"photo_id":"1366592558","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592541":["hashtag1","hashtag2"]},{"1366592564":["hashtag1","hashtag2"]},{"1366592558":["hashtag1","hashtag2"]},{"1366592537":["hashtag1","hashtag2"]},{"1366592548":["hashtag1","hashtag2"]},{"1366592568":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592541, 1366592564, 1366592558, 1366592537, 1366592548, 1366592568)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 78.67320251464844 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:31:03.060987
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/30/image_16062025_20_30_45_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/20/30/image_16062025_20_30_35_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/20/30/image_16062025_20_30_25_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/20/30/image_16062025_20_30_15_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/20/29/image_16062025_20_30_05_10625.jpg', 2), ('/home/nano/Desktop/images/16062025/20/29/image_16062025_20_29_55_9611.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/30/image_16062025_20_30_45_9619.jpg', '/home/nano/Desktop/images/16062025/20/30/image_16062025_20_30_35_10640.jpg', '/home/nano/Desktop/images/16062025/20/30/image_16062025_20_30_25_9614.jpg', '/home/nano/Desktop/images/16062025/20/30/image_16062025_20_30_15_9626.jpg', '/home/nano/Desktop/images/16062025/20/29/image_16062025_20_30_05_10625.jpg', '/home/nano/Desktop/images/16062025/20/29/image_16062025_20_29_55_9611.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/30/image_16062025_20_30_45_9619.jpg
/home/nano/Desktop/images/16062025/20/30/image_16062025_20_30_35_10640.jpg
/home/nano/Desktop/images/16062025/20/30/image_16062025_20_30_25_9614.jpg
/home/nano/Desktop/images/16062025/20/30/image_16062025_20_30_15_9626.jpg
/home/nano/Desktop/images/16062025/20/29/image_16062025_20_30_05_10625.jpg
/home/nano/Desktop/images/16062025/20/29/image_16062025_20_29_55_9611.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592601","1366592582","1366592587","1366592596","1366592578","1366592589"],"photo_ids_order":["1366592578","1366592582","1366592587","1366592589","1366592596","1366592601"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7aeccf63ef49b8c15f41b1994e87a5f7.jpg","text":"TemporaryFile(/tmp/multipartBody925716688913278416asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098726985,"filename":"image_16062025_20_29_55_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7c24b87f5f1fdd0bc7806315f57c8735.jpg","text":"TemporaryFile(/tmp/multipartBody7456007990828431241asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098726985,"filename":"image_16062025_20_30_35_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9f62cacb07b08befe32357e1f1c3d334.jpg","text":"TemporaryFile(/tmp/multipartBody2453553912214497029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098726985,"filename":"image_16062025_20_30_25_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/90db4bee0a893bcfea461b6ec192f440.jpg","text":"TemporaryFile(/tmp/multipartBody5759956391781852443asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098726985,"filename":"image_16062025_20_30_05_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/03a6eb921f0d21bc62d06d6afa3a0f8e.jpg","text":"TemporaryFile(/tmp/multipartBody1801323781670806020asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098726985,"filename":"image_16062025_20_30_45_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a8caa5de162c25ba379a1949a8e0bb49.jpg","text":"TemporaryFile(/tmp/multipartBody8504969358909916446asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098726985,"filename":"image_16062025_20_30_15_9626.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592587","file1":"1366592582","file0":"1366592578","file4":"1366592596","file5":"1366592601","file3":"1366592589"},"map_files_photo_id_array":[{"photo_id":"1366592601","filename":"file5"},{"photo_id":"1366592587","filename":"file2"},{"photo_id":"1366592596","filename":"file4"},{"photo_id":"1366592582","filename":"file1"},{"photo_id":"1366592578","filename":"file0"},{"photo_id":"1366592589","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592601":["hashtag1","hashtag2"]},{"1366592582":["hashtag1","hashtag2"]},{"1366592587":["hashtag1","hashtag2"]},{"1366592596":["hashtag1","hashtag2"]},{"1366592578":["hashtag1","hashtag2"]},{"1366592589":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592601, 1366592582, 1366592587, 1366592596, 1366592578, 1366592589)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 75.35542440414429 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:32:32.468447
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/32/image_16062025_20_32_45_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/20/32/image_16062025_20_32_35_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/20/31/image_16062025_20_32_05_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/20/31/image_16062025_20_31_55_10641.jpg', 2), ('/home/nano/Desktop/images/16062025/20/31/image_16062025_20_31_45_9614.jpg', 2), ('/home/nano/Desktop/images/16062025/20/31/image_16062025_20_31_25_10629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/32/image_16062025_20_32_45_10624.jpg', '/home/nano/Desktop/images/16062025/20/32/image_16062025_20_32_35_9622.jpg', '/home/nano/Desktop/images/16062025/20/31/image_16062025_20_32_05_9619.jpg', '/home/nano/Desktop/images/16062025/20/31/image_16062025_20_31_55_10641.jpg', '/home/nano/Desktop/images/16062025/20/31/image_16062025_20_31_45_9614.jpg', '/home/nano/Desktop/images/16062025/20/31/image_16062025_20_31_25_10629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/32/image_16062025_20_32_45_10624.jpg
/home/nano/Desktop/images/16062025/20/32/image_16062025_20_32_35_9622.jpg
/home/nano/Desktop/images/16062025/20/31/image_16062025_20_32_05_9619.jpg
/home/nano/Desktop/images/16062025/20/31/image_16062025_20_31_55_10641.jpg
/home/nano/Desktop/images/16062025/20/31/image_16062025_20_31_45_9614.jpg
/home/nano/Desktop/images/16062025/20/31/image_16062025_20_31_25_10629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592640","1366592637","1366592619","1366592630","1366592633","1366592629"],"photo_ids_order":["1366592619","1366592629","1366592630","1366592633","1366592637","1366592640"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/11d3351fc87ff24880ee2157ed1894d9.jpg","text":"TemporaryFile(/tmp/multipartBody6433214021847228301asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098814553,"filename":"image_16062025_20_31_25_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c5d11dfac5b274d9944350b79f227d79.jpg","text":"TemporaryFile(/tmp/multipartBody6690927283893621393asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098814553,"filename":"image_16062025_20_31_45_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f9a6745c795c987b8f39d02d39ead79a.jpg","text":"TemporaryFile(/tmp/multipartBody5887219570849380908asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098814553,"filename":"image_16062025_20_32_45_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ba5a775fe78604230edc9684901c2898.jpg","text":"TemporaryFile(/tmp/multipartBody1739210726554885328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098814553,"filename":"image_16062025_20_32_05_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/650ccacb2a7c0fb859f84941c6571525.jpg","text":"TemporaryFile(/tmp/multipartBody1481417683947684474asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098814553,"filename":"image_16062025_20_31_55_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7171152719b185856bfc4e8cf9267c9f.jpg","text":"TemporaryFile(/tmp/multipartBody1257462788130939201asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098814553,"filename":"image_16062025_20_32_35_9622.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592630","file1":"1366592629","file0":"1366592619","file4":"1366592637","file5":"1366592640","file3":"1366592633"},"map_files_photo_id_array":[{"photo_id":"1366592640","filename":"file5"},{"photo_id":"1366592630","filename":"file2"},{"photo_id":"1366592637","filename":"file4"},{"photo_id":"1366592629","filename":"file1"},{"photo_id":"1366592619","filename":"file0"},{"photo_id":"1366592633","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592640":["hashtag1","hashtag2"]},{"1366592637":["hashtag1","hashtag2"]},{"1366592619":["hashtag1","hashtag2"]},{"1366592630":["hashtag1","hashtag2"]},{"1366592633":["hashtag1","hashtag2"]},{"1366592629":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592640, 1366592637, 1366592619, 1366592630, 1366592633, 1366592629)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.22134780883789 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:33:32.568611
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/33/image_16062025_20_33_45_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/20/33/image_16062025_20_33_34_9610.jpg', 2), ('/home/nano/Desktop/images/16062025/20/33/image_16062025_20_33_25_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/20/32/image_16062025_20_33_05_9622.jpg', 2), ('/home/nano/Desktop/images/16062025/20/32/image_16062025_20_32_55_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/20/31/image_16062025_20_31_15_9627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/33/image_16062025_20_33_45_10622.jpg', '/home/nano/Desktop/images/16062025/20/33/image_16062025_20_33_34_9610.jpg', '/home/nano/Desktop/images/16062025/20/33/image_16062025_20_33_25_9621.jpg', '/home/nano/Desktop/images/16062025/20/32/image_16062025_20_33_05_9622.jpg', '/home/nano/Desktop/images/16062025/20/32/image_16062025_20_32_55_9612.jpg', '/home/nano/Desktop/images/16062025/20/31/image_16062025_20_31_15_9627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/33/image_16062025_20_33_45_10622.jpg
/home/nano/Desktop/images/16062025/20/33/image_16062025_20_33_34_9610.jpg
/home/nano/Desktop/images/16062025/20/33/image_16062025_20_33_25_9621.jpg
/home/nano/Desktop/images/16062025/20/32/image_16062025_20_33_05_9622.jpg
/home/nano/Desktop/images/16062025/20/32/image_16062025_20_32_55_9612.jpg
/home/nano/Desktop/images/16062025/20/31/image_16062025_20_31_15_9627.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592660","1366592663","1366592657","1366592666","1366592654","1366592668"],"photo_ids_order":["1366592654","1366592657","1366592660","1366592663","1366592666","1366592668"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c420a56f8d698f4e7067eecee58e2026.jpg","text":"TemporaryFile(/tmp/multipartBody1938167786934739567asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098876310,"filename":"image_16062025_20_33_25_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/241744e1aedb8f60a2cd4e3dfe49efc5.jpg","text":"TemporaryFile(/tmp/multipartBody6220738132234088664asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098876310,"filename":"image_16062025_20_33_05_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cea53a151f6f43626d0f78660f640d02.jpg","text":"TemporaryFile(/tmp/multipartBody857401453202647510asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098876310,"filename":"image_16062025_20_33_34_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4ff68ded49488ec7aead459adfb73920.jpg","text":"TemporaryFile(/tmp/multipartBody4370601052405823049asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098876310,"filename":"image_16062025_20_32_55_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6e3aac10163ceef46cf66db352660a8a.jpg","text":"TemporaryFile(/tmp/multipartBody6759418760927291317asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098876310,"filename":"image_16062025_20_33_45_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bc9a6a880f7e2459f24b85ae01539ab7.jpg","text":"TemporaryFile(/tmp/multipartBody875065816845796069asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098876310,"filename":"image_16062025_20_31_15_9627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592660","file1":"1366592657","file0":"1366592654","file4":"1366592666","file5":"1366592668","file3":"1366592663"},"map_files_photo_id_array":[{"photo_id":"1366592668","filename":"file5"},{"photo_id":"1366592660","filename":"file2"},{"photo_id":"1366592666","filename":"file4"},{"photo_id":"1366592657","filename":"file1"},{"photo_id":"1366592654","filename":"file0"},{"photo_id":"1366592663","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592660":["hashtag1","hashtag2"]},{"1366592663":["hashtag1","hashtag2"]},{"1366592657":["hashtag1","hashtag2"]},{"1366592666":["hashtag1","hashtag2"]},{"1366592654":["hashtag1","hashtag2"]},{"1366592668":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592660, 1366592663, 1366592657, 1366592666, 1366592654, 1366592668)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.30037498474121 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:34:32.657198
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/34/image_16062025_20_34_35_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/20/34/image_16062025_20_34_25_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/20/34/image_16062025_20_34_15_9642.jpg', 2), ('/home/nano/Desktop/images/16062025/20/33/image_16062025_20_34_05_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/20/33/image_16062025_20_33_55_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/20/30/image_16062025_20_31_05_10643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/34/image_16062025_20_34_35_10627.jpg', '/home/nano/Desktop/images/16062025/20/34/image_16062025_20_34_25_9618.jpg', '/home/nano/Desktop/images/16062025/20/34/image_16062025_20_34_15_9642.jpg', '/home/nano/Desktop/images/16062025/20/33/image_16062025_20_34_05_10624.jpg', '/home/nano/Desktop/images/16062025/20/33/image_16062025_20_33_55_9612.jpg', '/home/nano/Desktop/images/16062025/20/30/image_16062025_20_31_05_10643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/34/image_16062025_20_34_35_10627.jpg
/home/nano/Desktop/images/16062025/20/34/image_16062025_20_34_25_9618.jpg
/home/nano/Desktop/images/16062025/20/34/image_16062025_20_34_15_9642.jpg
/home/nano/Desktop/images/16062025/20/33/image_16062025_20_34_05_10624.jpg
/home/nano/Desktop/images/16062025/20/33/image_16062025_20_33_55_9612.jpg
/home/nano/Desktop/images/16062025/20/30/image_16062025_20_31_05_10643.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592693","1366592699","1366592686","1366592689","1366592697","1366592682"],"photo_ids_order":["1366592682","1366592686","1366592689","1366592693","1366592697","1366592699"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3876191d7b9a89a04b8575cb0c8c5102.jpg","text":"TemporaryFile(/tmp/multipartBody7798731711540273654asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098935189,"filename":"image_16062025_20_34_05_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6b429642cf874d1b62eeb462a348612a.jpg","text":"TemporaryFile(/tmp/multipartBody5979833686932991543asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098935189,"filename":"image_16062025_20_31_05_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3a80ea8e8fe12f41228cc2566fd19669.jpg","text":"TemporaryFile(/tmp/multipartBody1698824779218360343asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098935189,"filename":"image_16062025_20_34_25_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5caa0a76c4caf91fc555e1fdaef929b1.jpg","text":"TemporaryFile(/tmp/multipartBody7284501241170496667asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098935189,"filename":"image_16062025_20_34_15_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/686a1c4a51c0d193cee06768764574f8.jpg","text":"TemporaryFile(/tmp/multipartBody8472764777898138151asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098935189,"filename":"image_16062025_20_33_55_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/789f0d6c0fceee548e2eedbfbf4dfc36.jpg","text":"TemporaryFile(/tmp/multipartBody8122642869998122258asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098935189,"filename":"image_16062025_20_34_35_10627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592689","file1":"1366592686","file0":"1366592682","file4":"1366592697","file5":"1366592699","file3":"1366592693"},"map_files_photo_id_array":[{"photo_id":"1366592699","filename":"file5"},{"photo_id":"1366592689","filename":"file2"},{"photo_id":"1366592697","filename":"file4"},{"photo_id":"1366592686","filename":"file1"},{"photo_id":"1366592682","filename":"file0"},{"photo_id":"1366592693","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592693":["hashtag1","hashtag2"]},{"1366592699":["hashtag1","hashtag2"]},{"1366592686":["hashtag1","hashtag2"]},{"1366592689":["hashtag1","hashtag2"]},{"1366592697":["hashtag1","hashtag2"]},{"1366592682":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592693, 1366592699, 1366592686, 1366592689, 1366592697, 1366592682)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.15044617652893 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:35:31.793990
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/35/image_16062025_20_35_45_9653.jpg', 2), ('/home/nano/Desktop/images/16062025/20/35/image_16062025_20_35_35_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/20/35/image_16062025_20_35_25_10630.jpg', 2), ('/home/nano/Desktop/images/16062025/20/35/image_16062025_20_35_15_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/20/34/image_16062025_20_34_45_9620.jpg', 2), ('/home/nano/Desktop/images/16062025/20/30/image_16062025_20_30_54_9613.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/35/image_16062025_20_35_45_9653.jpg', '/home/nano/Desktop/images/16062025/20/35/image_16062025_20_35_35_9615.jpg', '/home/nano/Desktop/images/16062025/20/35/image_16062025_20_35_25_10630.jpg', '/home/nano/Desktop/images/16062025/20/35/image_16062025_20_35_15_9638.jpg', '/home/nano/Desktop/images/16062025/20/34/image_16062025_20_34_45_9620.jpg', '/home/nano/Desktop/images/16062025/20/30/image_16062025_20_30_54_9613.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/35/image_16062025_20_35_45_9653.jpg
/home/nano/Desktop/images/16062025/20/35/image_16062025_20_35_35_9615.jpg
/home/nano/Desktop/images/16062025/20/35/image_16062025_20_35_25_10630.jpg
/home/nano/Desktop/images/16062025/20/35/image_16062025_20_35_15_9638.jpg
/home/nano/Desktop/images/16062025/20/34/image_16062025_20_34_45_9620.jpg
/home/nano/Desktop/images/16062025/20/30/image_16062025_20_30_54_9613.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592718","1366592726","1366592729","1366592722","1366592710","1366592713"],"photo_ids_order":["1366592710","1366592713","1366592718","1366592722","1366592726","1366592729"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dfd732de050c2126aaa500a236033d85.jpg","text":"TemporaryFile(/tmp/multipartBody1688523212443925196asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098994295,"filename":"image_16062025_20_35_25_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3179d14fc40390428124edd94c705360.jpg","text":"TemporaryFile(/tmp/multipartBody9179329878232315919asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098994295,"filename":"image_16062025_20_34_45_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/47f284ab306dedbe0f78df74a3075b75.jpg","text":"TemporaryFile(/tmp/multipartBody880323082587533380asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098994295,"filename":"image_16062025_20_30_54_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9808c0cc7ca6d99987cc9d6a63a15b10.jpg","text":"TemporaryFile(/tmp/multipartBody4681381450331958214asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098994295,"filename":"image_16062025_20_35_15_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e9c7c375ab0e31d308e4e49ef1d7aa03.jpg","text":"TemporaryFile(/tmp/multipartBody1998969531374829235asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098994295,"filename":"image_16062025_20_35_45_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e1b2bfac894ee26f6d2609885b952413.jpg","text":"TemporaryFile(/tmp/multipartBody3352627083659527029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750098994295,"filename":"image_16062025_20_35_35_9615.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592718","file1":"1366592713","file0":"1366592710","file4":"1366592726","file5":"1366592729","file3":"1366592722"},"map_files_photo_id_array":[{"photo_id":"1366592729","filename":"file5"},{"photo_id":"1366592718","filename":"file2"},{"photo_id":"1366592726","filename":"file4"},{"photo_id":"1366592713","filename":"file1"},{"photo_id":"1366592710","filename":"file0"},{"photo_id":"1366592722","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592718":["hashtag1","hashtag2"]},{"1366592726":["hashtag1","hashtag2"]},{"1366592729":["hashtag1","hashtag2"]},{"1366592722":["hashtag1","hashtag2"]},{"1366592710":["hashtag1","hashtag2"]},{"1366592713":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592718, 1366592726, 1366592729, 1366592722, 1366592710, 1366592713)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 50.297420263290405 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:36:31.902998
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/36/image_16062025_20_36_45_9651.jpg', 2), ('/home/nano/Desktop/images/16062025/20/36/image_16062025_20_36_15_9662.jpg', 2), ('/home/nano/Desktop/images/16062025/20/35/image_16062025_20_36_05_9688.jpg', 2), ('/home/nano/Desktop/images/16062025/20/35/image_16062025_20_35_55_10669.jpg', 2), ('/home/nano/Desktop/images/16062025/20/16/image_16062025_20_16_25_10655.jpg', 2), ('/home/nano/Desktop/images/16062025/20/16/image_16062025_20_16_15_9634.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/36/image_16062025_20_36_45_9651.jpg', '/home/nano/Desktop/images/16062025/20/36/image_16062025_20_36_15_9662.jpg', '/home/nano/Desktop/images/16062025/20/35/image_16062025_20_36_05_9688.jpg', '/home/nano/Desktop/images/16062025/20/35/image_16062025_20_35_55_10669.jpg', '/home/nano/Desktop/images/16062025/20/16/image_16062025_20_16_25_10655.jpg', '/home/nano/Desktop/images/16062025/20/16/image_16062025_20_16_15_9634.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/36/image_16062025_20_36_45_9651.jpg
/home/nano/Desktop/images/16062025/20/36/image_16062025_20_36_15_9662.jpg
/home/nano/Desktop/images/16062025/20/35/image_16062025_20_36_05_9688.jpg
/home/nano/Desktop/images/16062025/20/35/image_16062025_20_35_55_10669.jpg
/home/nano/Desktop/images/16062025/20/16/image_16062025_20_16_25_10655.jpg
/home/nano/Desktop/images/16062025/20/16/image_16062025_20_16_15_9634.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592774","1366592765","1366592750","1366592770","1366592755","1366592778"],"photo_ids_order":["1366592750","1366592755","1366592765","1366592770","1366592774","1366592778"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c8b578b32079065d791a996080bd8576.jpg","text":"TemporaryFile(/tmp/multipartBody4759701057543623747asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099053698,"filename":"image_16062025_20_16_25_10655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ede499d9d312b63f097e996c2560fe9a.jpg","text":"TemporaryFile(/tmp/multipartBody2632278233360661120asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099053698,"filename":"image_16062025_20_36_05_9688.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/eb45906459b373f126d9bf5f38892c5f.jpg","text":"TemporaryFile(/tmp/multipartBody6343909825815912383asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099053698,"filename":"image_16062025_20_36_45_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/665c84f038f5358b947f1d8256e41ddd.jpg","text":"TemporaryFile(/tmp/multipartBody9016122628365631010asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099053698,"filename":"image_16062025_20_35_55_10669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d7b456e4b269a3a7ad34222f6b42576d.jpg","text":"TemporaryFile(/tmp/multipartBody2845285332917187448asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099053698,"filename":"image_16062025_20_36_15_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/aad91498b3c74a5981cbe4c5124fa8db.jpg","text":"TemporaryFile(/tmp/multipartBody6585987285229294374asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099053698,"filename":"image_16062025_20_16_15_9634.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592765","file1":"1366592755","file0":"1366592750","file4":"1366592774","file5":"1366592778","file3":"1366592770"},"map_files_photo_id_array":[{"photo_id":"1366592778","filename":"file5"},{"photo_id":"1366592765","filename":"file2"},{"photo_id":"1366592774","filename":"file4"},{"photo_id":"1366592755","filename":"file1"},{"photo_id":"1366592750","filename":"file0"},{"photo_id":"1366592770","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592774":["hashtag1","hashtag2"]},{"1366592765":["hashtag1","hashtag2"]},{"1366592750":["hashtag1","hashtag2"]},{"1366592770":["hashtag1","hashtag2"]},{"1366592755":["hashtag1","hashtag2"]},{"1366592778":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592774, 1366592765, 1366592750, 1366592770, 1366592755, 1366592778)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 54.313387870788574 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:37:32.000689
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/37/image_16062025_20_37_45_9653.jpg', 2), ('/home/nano/Desktop/images/16062025/20/37/image_16062025_20_37_35_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/20/37/image_16062025_20_37_25_10660.jpg', 2), ('/home/nano/Desktop/images/16062025/20/37/image_16062025_20_37_15_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/20/36/image_16062025_20_36_55_10661.jpg', 2), ('/home/nano/Desktop/images/16062025/20/15/image_16062025_20_16_05_9638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/37/image_16062025_20_37_45_9653.jpg', '/home/nano/Desktop/images/16062025/20/37/image_16062025_20_37_35_9655.jpg', '/home/nano/Desktop/images/16062025/20/37/image_16062025_20_37_25_10660.jpg', '/home/nano/Desktop/images/16062025/20/37/image_16062025_20_37_15_9658.jpg', '/home/nano/Desktop/images/16062025/20/36/image_16062025_20_36_55_10661.jpg', '/home/nano/Desktop/images/16062025/20/15/image_16062025_20_16_05_9638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/37/image_16062025_20_37_45_9653.jpg
/home/nano/Desktop/images/16062025/20/37/image_16062025_20_37_35_9655.jpg
/home/nano/Desktop/images/16062025/20/37/image_16062025_20_37_25_10660.jpg
/home/nano/Desktop/images/16062025/20/37/image_16062025_20_37_15_9658.jpg
/home/nano/Desktop/images/16062025/20/36/image_16062025_20_36_55_10661.jpg
/home/nano/Desktop/images/16062025/20/15/image_16062025_20_16_05_9638.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592802","1366592795","1366592797","1366592791","1366592793","1366592799"],"photo_ids_order":["1366592791","1366592793","1366592795","1366592797","1366592799","1366592802"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8a5a0cb29a7b23e9dbc62c84740c0163.jpg","text":"TemporaryFile(/tmp/multipartBody6475072171796339736asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099113458,"filename":"image_16062025_20_16_05_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4047d6b8b5ba919d548c7b24df790175.jpg","text":"TemporaryFile(/tmp/multipartBody8683205998760318633asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099113458,"filename":"image_16062025_20_37_25_10660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e85e5abc79c8897f4eac033ac5794218.jpg","text":"TemporaryFile(/tmp/multipartBody945138542384307160asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099113458,"filename":"image_16062025_20_37_15_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/24673d3eb73a459f5688291b5e13c7cc.jpg","text":"TemporaryFile(/tmp/multipartBody4398869835198561746asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099113458,"filename":"image_16062025_20_37_45_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8b3d206fdf0c961af0bd7f76630f0e6a.jpg","text":"TemporaryFile(/tmp/multipartBody7697230356809404522asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099113458,"filename":"image_16062025_20_37_35_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/03249ff3e3a7eb4bea0b7365aaac657a.jpg","text":"TemporaryFile(/tmp/multipartBody2729333556499179593asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099113458,"filename":"image_16062025_20_36_55_10661.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592795","file1":"1366592793","file0":"1366592791","file4":"1366592799","file5":"1366592802","file3":"1366592797"},"map_files_photo_id_array":[{"photo_id":"1366592802","filename":"file5"},{"photo_id":"1366592795","filename":"file2"},{"photo_id":"1366592799","filename":"file4"},{"photo_id":"1366592793","filename":"file1"},{"photo_id":"1366592791","filename":"file0"},{"photo_id":"1366592797","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592802":["hashtag1","hashtag2"]},{"1366592795":["hashtag1","hashtag2"]},{"1366592797":["hashtag1","hashtag2"]},{"1366592791":["hashtag1","hashtag2"]},{"1366592793":["hashtag1","hashtag2"]},{"1366592799":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592802, 1366592795, 1366592797, 1366592791, 1366592793, 1366592799)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.938868045806885 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:38:32.113878
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/38/image_16062025_20_38_45_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/20/38/image_16062025_20_38_35_9661.jpg', 2), ('/home/nano/Desktop/images/16062025/20/38/image_16062025_20_38_25_10669.jpg', 2), ('/home/nano/Desktop/images/16062025/20/38/image_16062025_20_38_15_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/20/37/image_16062025_20_38_05_9675.jpg', 2), ('/home/nano/Desktop/images/16062025/20/37/image_16062025_20_37_55_10681.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/38/image_16062025_20_38_45_9655.jpg', '/home/nano/Desktop/images/16062025/20/38/image_16062025_20_38_35_9661.jpg', '/home/nano/Desktop/images/16062025/20/38/image_16062025_20_38_25_10669.jpg', '/home/nano/Desktop/images/16062025/20/38/image_16062025_20_38_15_9667.jpg', '/home/nano/Desktop/images/16062025/20/37/image_16062025_20_38_05_9675.jpg', '/home/nano/Desktop/images/16062025/20/37/image_16062025_20_37_55_10681.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/38/image_16062025_20_38_45_9655.jpg
/home/nano/Desktop/images/16062025/20/38/image_16062025_20_38_35_9661.jpg
/home/nano/Desktop/images/16062025/20/38/image_16062025_20_38_25_10669.jpg
/home/nano/Desktop/images/16062025/20/38/image_16062025_20_38_15_9667.jpg
/home/nano/Desktop/images/16062025/20/37/image_16062025_20_38_05_9675.jpg
/home/nano/Desktop/images/16062025/20/37/image_16062025_20_37_55_10681.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592822","1366592831","1366592834","1366592827","1366592824","1366592818"],"photo_ids_order":["1366592818","1366592822","1366592824","1366592827","1366592831","1366592834"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0ec1e52f27e624f184a7041ca5793a3d.jpg","text":"TemporaryFile(/tmp/multipartBody1253747483258380625asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099173735,"filename":"image_16062025_20_38_35_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/618b6c0e45d517dea6642326b4bb7d62.jpg","text":"TemporaryFile(/tmp/multipartBody4533025473894157481asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099173735,"filename":"image_16062025_20_38_05_9675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3c3960475de94a92e8f3779c3f2f71aa.jpg","text":"TemporaryFile(/tmp/multipartBody9159223850228726417asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099173735,"filename":"image_16062025_20_37_55_10681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b943cb600a07268ad1c83407f0bb86e4.jpg","text":"TemporaryFile(/tmp/multipartBody4145993396454539156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099173735,"filename":"image_16062025_20_38_15_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/089d692ea53b64330a575fb905e07494.jpg","text":"TemporaryFile(/tmp/multipartBody436890262370513502asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099173735,"filename":"image_16062025_20_38_25_10669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c0a36a6ebd219869deda5986e74b8cad.jpg","text":"TemporaryFile(/tmp/multipartBody1459950035538440581asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099173735,"filename":"image_16062025_20_38_45_9655.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592824","file1":"1366592822","file0":"1366592818","file4":"1366592831","file5":"1366592834","file3":"1366592827"},"map_files_photo_id_array":[{"photo_id":"1366592834","filename":"file5"},{"photo_id":"1366592824","filename":"file2"},{"photo_id":"1366592831","filename":"file4"},{"photo_id":"1366592822","filename":"file1"},{"photo_id":"1366592818","filename":"file0"},{"photo_id":"1366592827","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592822":["hashtag1","hashtag2"]},{"1366592831":["hashtag1","hashtag2"]},{"1366592834":["hashtag1","hashtag2"]},{"1366592827":["hashtag1","hashtag2"]},{"1366592824":["hashtag1","hashtag2"]},{"1366592818":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592822, 1366592831, 1366592834, 1366592827, 1366592824, 1366592818)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.80400061607361 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:39:17.219789
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/39/image_16062025_20_39_45_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/20/39/image_16062025_20_39_25_10665.jpg', 2), ('/home/nano/Desktop/images/16062025/20/39/image_16062025_20_39_15_9666.jpg', 2), ('/home/nano/Desktop/images/16062025/20/38/image_16062025_20_39_05_9678.jpg', 2), ('/home/nano/Desktop/images/16062025/20/38/image_16062025_20_38_55_10673.jpg', 2), ('/home/nano/Desktop/images/16062025/20/15/image_16062025_20_15_55_10639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/39/image_16062025_20_39_45_9655.jpg', '/home/nano/Desktop/images/16062025/20/39/image_16062025_20_39_25_10665.jpg', '/home/nano/Desktop/images/16062025/20/39/image_16062025_20_39_15_9666.jpg', '/home/nano/Desktop/images/16062025/20/38/image_16062025_20_39_05_9678.jpg', '/home/nano/Desktop/images/16062025/20/38/image_16062025_20_38_55_10673.jpg', '/home/nano/Desktop/images/16062025/20/15/image_16062025_20_15_55_10639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/39/image_16062025_20_39_45_9655.jpg
/home/nano/Desktop/images/16062025/20/39/image_16062025_20_39_25_10665.jpg
/home/nano/Desktop/images/16062025/20/39/image_16062025_20_39_15_9666.jpg
/home/nano/Desktop/images/16062025/20/38/image_16062025_20_39_05_9678.jpg
/home/nano/Desktop/images/16062025/20/38/image_16062025_20_38_55_10673.jpg
/home/nano/Desktop/images/16062025/20/15/image_16062025_20_15_55_10639.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592847","1366592841","1366592876","1366592870","1366592863","1366592859"],"photo_ids_order":["1366592841","1366592847","1366592859","1366592863","1366592870","1366592876"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d995b912bdd97d4becf62dcac5c1c056.jpg","text":"TemporaryFile(/tmp/multipartBody2426295166731916802asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099218526,"filename":"image_16062025_20_39_25_10665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a3e29315c1c94fb61360c1d4046d32c4.jpg","text":"TemporaryFile(/tmp/multipartBody3575216778248104686asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099218526,"filename":"image_16062025_20_39_45_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2bba3acb763726e8d811fc84610111c2.jpg","text":"TemporaryFile(/tmp/multipartBody7137243716866540468asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099218526,"filename":"image_16062025_20_15_55_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f02ec89e7e84f95ea8e4c90d70837e1f.jpg","text":"TemporaryFile(/tmp/multipartBody3661978494385369925asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099218526,"filename":"image_16062025_20_38_55_10673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9fd6bca7a4ab619c96cdeb925857022a.jpg","text":"TemporaryFile(/tmp/multipartBody256457428465243252asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099218526,"filename":"image_16062025_20_39_05_9678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/62bec832fe9676cdb52b061c687b9e95.jpg","text":"TemporaryFile(/tmp/multipartBody570319129077197518asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099218526,"filename":"image_16062025_20_39_15_9666.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592859","file1":"1366592847","file0":"1366592841","file4":"1366592870","file5":"1366592876","file3":"1366592863"},"map_files_photo_id_array":[{"photo_id":"1366592876","filename":"file5"},{"photo_id":"1366592859","filename":"file2"},{"photo_id":"1366592870","filename":"file4"},{"photo_id":"1366592847","filename":"file1"},{"photo_id":"1366592841","filename":"file0"},{"photo_id":"1366592863","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592847":["hashtag1","hashtag2"]},{"1366592841":["hashtag1","hashtag2"]},{"1366592876":["hashtag1","hashtag2"]},{"1366592870":["hashtag1","hashtag2"]},{"1366592863":["hashtag1","hashtag2"]},{"1366592859":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592847, 1366592841, 1366592876, 1366592870, 1366592863, 1366592859)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 63.28471088409424 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:40:32.361751
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/40/image_16062025_20_40_45_9656.jpg', 2), ('/home/nano/Desktop/images/16062025/20/40/image_16062025_20_40_25_10668.jpg', 2), ('/home/nano/Desktop/images/16062025/20/40/image_16062025_20_40_15_9681.jpg', 2), ('/home/nano/Desktop/images/16062025/20/39/image_16062025_20_39_55_10667.jpg', 2), ('/home/nano/Desktop/images/16062025/20/09/image_16062025_20_09_45_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/20/09/image_16062025_20_09_35_9636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/40/image_16062025_20_40_45_9656.jpg', '/home/nano/Desktop/images/16062025/20/40/image_16062025_20_40_25_10668.jpg', '/home/nano/Desktop/images/16062025/20/40/image_16062025_20_40_15_9681.jpg', '/home/nano/Desktop/images/16062025/20/39/image_16062025_20_39_55_10667.jpg', '/home/nano/Desktop/images/16062025/20/09/image_16062025_20_09_45_10642.jpg', '/home/nano/Desktop/images/16062025/20/09/image_16062025_20_09_35_9636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/40/image_16062025_20_40_45_9656.jpg
/home/nano/Desktop/images/16062025/20/40/image_16062025_20_40_25_10668.jpg
/home/nano/Desktop/images/16062025/20/40/image_16062025_20_40_15_9681.jpg
/home/nano/Desktop/images/16062025/20/39/image_16062025_20_39_55_10667.jpg
/home/nano/Desktop/images/16062025/20/09/image_16062025_20_09_45_10642.jpg
/home/nano/Desktop/images/16062025/20/09/image_16062025_20_09_35_9636.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592913","1366592888","1366592897","1366592903","1366592908","1366592898"],"photo_ids_order":["1366592888","1366592897","1366592898","1366592903","1366592908","1366592913"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/afd5c8f3acd8debe86d710506f722be1.jpg","text":"TemporaryFile(/tmp/multipartBody5514159846992998714asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099294325,"filename":"image_16062025_20_09_35_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ef837e47b1b8cc3bceb5f4f9c617e0b1.jpg","text":"TemporaryFile(/tmp/multipartBody388736172589301479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099294325,"filename":"image_16062025_20_40_45_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4eb67b2a075f0584a6aabac77d170adb.jpg","text":"TemporaryFile(/tmp/multipartBody2240501526421834355asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099294325,"filename":"image_16062025_20_40_25_10668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/12718735069f8ade3d59726fb02bd692.jpg","text":"TemporaryFile(/tmp/multipartBody5491638050225403353asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099294325,"filename":"image_16062025_20_39_55_10667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/07b8d3d670fb4d5e698e62a2e5863152.jpg","text":"TemporaryFile(/tmp/multipartBody3818845288286027485asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099294325,"filename":"image_16062025_20_09_45_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4e5401328b982d87dceddabbab0d6a9e.jpg","text":"TemporaryFile(/tmp/multipartBody3865595303062451230asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099294325,"filename":"image_16062025_20_40_15_9681.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592898","file1":"1366592897","file0":"1366592888","file4":"1366592908","file5":"1366592913","file3":"1366592903"},"map_files_photo_id_array":[{"photo_id":"1366592913","filename":"file5"},{"photo_id":"1366592898","filename":"file2"},{"photo_id":"1366592908","filename":"file4"},{"photo_id":"1366592897","filename":"file1"},{"photo_id":"1366592888","filename":"file0"},{"photo_id":"1366592903","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592913":["hashtag1","hashtag2"]},{"1366592888":["hashtag1","hashtag2"]},{"1366592897":["hashtag1","hashtag2"]},{"1366592903":["hashtag1","hashtag2"]},{"1366592908":["hashtag1","hashtag2"]},{"1366592898":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592913, 1366592888, 1366592897, 1366592903, 1366592908, 1366592898)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 51.88300371170044 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:41:32.423207
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/41/image_16062025_20_41_35_9678.jpg', 2), ('/home/nano/Desktop/images/16062025/20/41/image_16062025_20_41_25_10671.jpg', 2), ('/home/nano/Desktop/images/16062025/20/41/image_16062025_20_41_15_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/20/40/image_16062025_20_41_05_9663.jpg', 2), ('/home/nano/Desktop/images/16062025/20/40/image_16062025_20_40_55_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/20/09/image_16062025_20_09_25_9638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/41/image_16062025_20_41_35_9678.jpg', '/home/nano/Desktop/images/16062025/20/41/image_16062025_20_41_25_10671.jpg', '/home/nano/Desktop/images/16062025/20/41/image_16062025_20_41_15_9673.jpg', '/home/nano/Desktop/images/16062025/20/40/image_16062025_20_41_05_9663.jpg', '/home/nano/Desktop/images/16062025/20/40/image_16062025_20_40_55_10666.jpg', '/home/nano/Desktop/images/16062025/20/09/image_16062025_20_09_25_9638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/41/image_16062025_20_41_35_9678.jpg
/home/nano/Desktop/images/16062025/20/41/image_16062025_20_41_25_10671.jpg
/home/nano/Desktop/images/16062025/20/41/image_16062025_20_41_15_9673.jpg
/home/nano/Desktop/images/16062025/20/40/image_16062025_20_41_05_9663.jpg
/home/nano/Desktop/images/16062025/20/40/image_16062025_20_40_55_10666.jpg
/home/nano/Desktop/images/16062025/20/09/image_16062025_20_09_25_9638.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592931","1366592924","1366592933","1366592941","1366592935","1366592938"],"photo_ids_order":["1366592924","1366592931","1366592933","1366592935","1366592938","1366592941"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f949de262f181a5b1b6c1c969d1b458b.jpg","text":"TemporaryFile(/tmp/multipartBody2564927100981327486asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099354437,"filename":"image_16062025_20_41_25_10671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/aad7c0f0c24c2030ea1a1be012e84c9c.jpg","text":"TemporaryFile(/tmp/multipartBody225057076725945980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099354437,"filename":"image_16062025_20_41_35_9678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a270c0dfac3a83d81e9d3c51d21790c8.jpg","text":"TemporaryFile(/tmp/multipartBody2371811601825413049asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099354437,"filename":"image_16062025_20_41_15_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/153322b1f802f7dd0f2f56df152482d9.jpg","text":"TemporaryFile(/tmp/multipartBody8635874347733106545asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099354437,"filename":"image_16062025_20_09_25_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bfc76a0e025aa4a8f8316f41295452d8.jpg","text":"TemporaryFile(/tmp/multipartBody8951236425558748793asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099354437,"filename":"image_16062025_20_41_05_9663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3ec5d1911560a798855ac62d9ee59f73.jpg","text":"TemporaryFile(/tmp/multipartBody1330404181559180786asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099354437,"filename":"image_16062025_20_40_55_10666.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592933","file1":"1366592931","file0":"1366592924","file4":"1366592938","file5":"1366592941","file3":"1366592935"},"map_files_photo_id_array":[{"photo_id":"1366592941","filename":"file5"},{"photo_id":"1366592933","filename":"file2"},{"photo_id":"1366592938","filename":"file4"},{"photo_id":"1366592931","filename":"file1"},{"photo_id":"1366592924","filename":"file0"},{"photo_id":"1366592935","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592931":["hashtag1","hashtag2"]},{"1366592924":["hashtag1","hashtag2"]},{"1366592933":["hashtag1","hashtag2"]},{"1366592941":["hashtag1","hashtag2"]},{"1366592935":["hashtag1","hashtag2"]},{"1366592938":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592931, 1366592924, 1366592933, 1366592941, 1366592935, 1366592938)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 51.69153141975403 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:42:32.521270
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/42/image_16062025_20_42_45_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/20/42/image_16062025_20_42_35_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/20/42/image_16062025_20_42_25_10677.jpg', 2), ('/home/nano/Desktop/images/16062025/20/42/image_16062025_20_42_15_9679.jpg', 2), ('/home/nano/Desktop/images/16062025/20/41/image_16062025_20_42_05_9672.jpg', 2), ('/home/nano/Desktop/images/16062025/20/41/image_16062025_20_41_45_9661.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/42/image_16062025_20_42_45_9655.jpg', '/home/nano/Desktop/images/16062025/20/42/image_16062025_20_42_35_9657.jpg', '/home/nano/Desktop/images/16062025/20/42/image_16062025_20_42_25_10677.jpg', '/home/nano/Desktop/images/16062025/20/42/image_16062025_20_42_15_9679.jpg', '/home/nano/Desktop/images/16062025/20/41/image_16062025_20_42_05_9672.jpg', '/home/nano/Desktop/images/16062025/20/41/image_16062025_20_41_45_9661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/42/image_16062025_20_42_45_9655.jpg
/home/nano/Desktop/images/16062025/20/42/image_16062025_20_42_35_9657.jpg
/home/nano/Desktop/images/16062025/20/42/image_16062025_20_42_25_10677.jpg
/home/nano/Desktop/images/16062025/20/42/image_16062025_20_42_15_9679.jpg
/home/nano/Desktop/images/16062025/20/41/image_16062025_20_42_05_9672.jpg
/home/nano/Desktop/images/16062025/20/41/image_16062025_20_41_45_9661.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592966","1366592969","1366592963","1366592971","1366592959","1366592955"],"photo_ids_order":["1366592955","1366592959","1366592963","1366592966","1366592969","1366592971"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/488ea5eab5479083ea1d757dc36ca590.jpg","text":"TemporaryFile(/tmp/multipartBody4716324598646090776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099414758,"filename":"image_16062025_20_42_15_9679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c49c2d32f2fcde7c80d57004d44772be.jpg","text":"TemporaryFile(/tmp/multipartBody1444606165062407894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099414758,"filename":"image_16062025_20_42_05_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d37f268b1e74863be451a95ab96b8fcc.jpg","text":"TemporaryFile(/tmp/multipartBody8388058063760622169asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099414758,"filename":"image_16062025_20_42_25_10677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/619bddb23cfbf726fddde59918084174.jpg","text":"TemporaryFile(/tmp/multipartBody6291591749642243855asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099414758,"filename":"image_16062025_20_41_45_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4862fb149013b4a4646f6d737cae4b6c.jpg","text":"TemporaryFile(/tmp/multipartBody4323127044605116298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099414758,"filename":"image_16062025_20_42_35_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/29e3e252875599690e0d789e51d5d367.jpg","text":"TemporaryFile(/tmp/multipartBody8948674348317721106asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099414758,"filename":"image_16062025_20_42_45_9655.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592963","file1":"1366592959","file0":"1366592955","file4":"1366592969","file5":"1366592971","file3":"1366592966"},"map_files_photo_id_array":[{"photo_id":"1366592971","filename":"file5"},{"photo_id":"1366592963","filename":"file2"},{"photo_id":"1366592969","filename":"file4"},{"photo_id":"1366592959","filename":"file1"},{"photo_id":"1366592955","filename":"file0"},{"photo_id":"1366592966","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592966":["hashtag1","hashtag2"]},{"1366592969":["hashtag1","hashtag2"]},{"1366592963":["hashtag1","hashtag2"]},{"1366592971":["hashtag1","hashtag2"]},{"1366592959":["hashtag1","hashtag2"]},{"1366592955":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592966, 1366592969, 1366592963, 1366592971, 1366592959, 1366592955)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.664904832839966 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:43:17.744980
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/43/image_16062025_20_43_45_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/20/43/image_16062025_20_43_35_9661.jpg', 2), ('/home/nano/Desktop/images/16062025/20/43/image_16062025_20_43_25_10671.jpg', 2), ('/home/nano/Desktop/images/16062025/20/43/image_16062025_20_43_15_9690.jpg', 2), ('/home/nano/Desktop/images/16062025/20/42/image_16062025_20_42_55_10687.jpg', 2), ('/home/nano/Desktop/images/16062025/20/09/image_16062025_20_09_15_10650.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/43/image_16062025_20_43_45_9655.jpg', '/home/nano/Desktop/images/16062025/20/43/image_16062025_20_43_35_9661.jpg', '/home/nano/Desktop/images/16062025/20/43/image_16062025_20_43_25_10671.jpg', '/home/nano/Desktop/images/16062025/20/43/image_16062025_20_43_15_9690.jpg', '/home/nano/Desktop/images/16062025/20/42/image_16062025_20_42_55_10687.jpg', '/home/nano/Desktop/images/16062025/20/09/image_16062025_20_09_15_10650.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/43/image_16062025_20_43_45_9655.jpg
/home/nano/Desktop/images/16062025/20/43/image_16062025_20_43_35_9661.jpg
/home/nano/Desktop/images/16062025/20/43/image_16062025_20_43_25_10671.jpg
/home/nano/Desktop/images/16062025/20/43/image_16062025_20_43_15_9690.jpg
/home/nano/Desktop/images/16062025/20/42/image_16062025_20_42_55_10687.jpg
/home/nano/Desktop/images/16062025/20/09/image_16062025_20_09_15_10650.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366592996","1366592990","1366592993","1366592987","1366592983","1366592979"],"photo_ids_order":["1366592979","1366592983","1366592987","1366592990","1366592993","1366592996"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/432a76b085bde9d8e8648020fc7e1882.jpg","text":"TemporaryFile(/tmp/multipartBody4725546344741175846asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099459977,"filename":"image_16062025_20_09_15_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a80c36fbf951dfcc5d4d561536baed71.jpg","text":"TemporaryFile(/tmp/multipartBody6959210059727372920asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099459977,"filename":"image_16062025_20_43_15_9690.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a912e68aa446f0bf551c9c3aaaa16bc8.jpg","text":"TemporaryFile(/tmp/multipartBody1473517857230742731asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099459977,"filename":"image_16062025_20_42_55_10687.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/50d1b4c5244fc692cc01d36eb3f1dcba.jpg","text":"TemporaryFile(/tmp/multipartBody5320102716322290715asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099459977,"filename":"image_16062025_20_43_25_10671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a1e98865581fa33dea30eb3fc0fcc43e.jpg","text":"TemporaryFile(/tmp/multipartBody738407681372814362asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099459977,"filename":"image_16062025_20_43_35_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b7e4176699bace745f27ed63cb597faa.jpg","text":"TemporaryFile(/tmp/multipartBody3842685189331925591asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099459977,"filename":"image_16062025_20_43_45_9655.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366592987","file1":"1366592983","file0":"1366592979","file4":"1366592993","file5":"1366592996","file3":"1366592990"},"map_files_photo_id_array":[{"photo_id":"1366592996","filename":"file5"},{"photo_id":"1366592987","filename":"file2"},{"photo_id":"1366592993","filename":"file4"},{"photo_id":"1366592983","filename":"file1"},{"photo_id":"1366592979","filename":"file0"},{"photo_id":"1366592990","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366592996":["hashtag1","hashtag2"]},{"1366592990":["hashtag1","hashtag2"]},{"1366592993":["hashtag1","hashtag2"]},{"1366592987":["hashtag1","hashtag2"]},{"1366592983":["hashtag1","hashtag2"]},{"1366592979":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366592996, 1366592990, 1366592993, 1366592987, 1366592983, 1366592979)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.15296721458435 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:44:16.781326
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/44/image_16062025_20_44_45_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/20/44/image_16062025_20_44_25_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/20/44/image_16062025_20_44_15_9682.jpg', 2), ('/home/nano/Desktop/images/16062025/20/43/image_16062025_20_44_05_9686.jpg', 2), ('/home/nano/Desktop/images/16062025/20/43/image_16062025_20_43_55_10665.jpg', 2), ('/home/nano/Desktop/images/16062025/20/08/image_16062025_20_09_05_9658.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/44/image_16062025_20_44_45_9658.jpg', '/home/nano/Desktop/images/16062025/20/44/image_16062025_20_44_25_10666.jpg', '/home/nano/Desktop/images/16062025/20/44/image_16062025_20_44_15_9682.jpg', '/home/nano/Desktop/images/16062025/20/43/image_16062025_20_44_05_9686.jpg', '/home/nano/Desktop/images/16062025/20/43/image_16062025_20_43_55_10665.jpg', '/home/nano/Desktop/images/16062025/20/08/image_16062025_20_09_05_9658.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/44/image_16062025_20_44_45_9658.jpg
/home/nano/Desktop/images/16062025/20/44/image_16062025_20_44_25_10666.jpg
/home/nano/Desktop/images/16062025/20/44/image_16062025_20_44_15_9682.jpg
/home/nano/Desktop/images/16062025/20/43/image_16062025_20_44_05_9686.jpg
/home/nano/Desktop/images/16062025/20/43/image_16062025_20_43_55_10665.jpg
/home/nano/Desktop/images/16062025/20/08/image_16062025_20_09_05_9658.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366593021","1366593015","1366593029","1366593032","1366593011","1366593010"],"photo_ids_order":["1366593010","1366593011","1366593015","1366593021","1366593029","1366593032"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/915b8b017b42db8feb6595f1f055ac22.jpg","text":"TemporaryFile(/tmp/multipartBody3665403902803736858asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099518223,"filename":"image_16062025_20_44_05_9686.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/397df4d66325985451901d2c9183673e.jpg","text":"TemporaryFile(/tmp/multipartBody6219248547624994683asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099518223,"filename":"image_16062025_20_44_15_9682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7a923c7b563d0fb84e970f48bea73626.jpg","text":"TemporaryFile(/tmp/multipartBody7027752488073659870asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099518223,"filename":"image_16062025_20_43_55_10665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6174c34e2f420d0a70d07cd8e34a29ed.jpg","text":"TemporaryFile(/tmp/multipartBody5868916691753398920asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099518223,"filename":"image_16062025_20_09_05_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a5c4c0f46d2c757f9dd5f0d36a248454.jpg","text":"TemporaryFile(/tmp/multipartBody637505566128985844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099518223,"filename":"image_16062025_20_44_25_10666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5fb01e60bcf5a8ab3626762562841e4f.jpg","text":"TemporaryFile(/tmp/multipartBody3854421609135053294asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099518223,"filename":"image_16062025_20_44_45_9658.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366593015","file1":"1366593011","file0":"1366593010","file4":"1366593029","file5":"1366593032","file3":"1366593021"},"map_files_photo_id_array":[{"photo_id":"1366593032","filename":"file5"},{"photo_id":"1366593015","filename":"file2"},{"photo_id":"1366593029","filename":"file4"},{"photo_id":"1366593011","filename":"file1"},{"photo_id":"1366593010","filename":"file0"},{"photo_id":"1366593021","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366593021":["hashtag1","hashtag2"]},{"1366593015":["hashtag1","hashtag2"]},{"1366593029":["hashtag1","hashtag2"]},{"1366593032":["hashtag1","hashtag2"]},{"1366593011":["hashtag1","hashtag2"]},{"1366593010":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366593021, 1366593015, 1366593029, 1366593032, 1366593011, 1366593010)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.88017416000366 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:45:16.938740
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/45/image_16062025_20_45_45_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/20/45/image_16062025_20_45_35_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/20/45/image_16062025_20_45_25_10675.jpg', 2), ('/home/nano/Desktop/images/16062025/20/45/image_16062025_20_45_15_9661.jpg', 2), ('/home/nano/Desktop/images/16062025/20/44/image_16062025_20_45_05_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/20/44/image_16062025_20_44_55_10665.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/45/image_16062025_20_45_45_9655.jpg', '/home/nano/Desktop/images/16062025/20/45/image_16062025_20_45_35_9660.jpg', '/home/nano/Desktop/images/16062025/20/45/image_16062025_20_45_25_10675.jpg', '/home/nano/Desktop/images/16062025/20/45/image_16062025_20_45_15_9661.jpg', '/home/nano/Desktop/images/16062025/20/44/image_16062025_20_45_05_9677.jpg', '/home/nano/Desktop/images/16062025/20/44/image_16062025_20_44_55_10665.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/45/image_16062025_20_45_45_9655.jpg
/home/nano/Desktop/images/16062025/20/45/image_16062025_20_45_35_9660.jpg
/home/nano/Desktop/images/16062025/20/45/image_16062025_20_45_25_10675.jpg
/home/nano/Desktop/images/16062025/20/45/image_16062025_20_45_15_9661.jpg
/home/nano/Desktop/images/16062025/20/44/image_16062025_20_45_05_9677.jpg
/home/nano/Desktop/images/16062025/20/44/image_16062025_20_44_55_10665.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366593059","1366593052","1366593055","1366593072","1366593066","1366593051"],"photo_ids_order":["1366593051","1366593052","1366593055","1366593059","1366593066","1366593072"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cdde2c9ea36150bca3b031023560aea7.jpg","text":"TemporaryFile(/tmp/multipartBody7496610612144372295asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099578312,"filename":"image_16062025_20_45_15_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0b798633320171b144edc21b07202cbf.jpg","text":"TemporaryFile(/tmp/multipartBody4274515906555390549asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099578312,"filename":"image_16062025_20_45_35_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/022c620c0c7051d11ba93ddeba4a5a1b.jpg","text":"TemporaryFile(/tmp/multipartBody1300162024695114657asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099578312,"filename":"image_16062025_20_45_25_10675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3ba467f30f578823764c624ade09f7ea.jpg","text":"TemporaryFile(/tmp/multipartBody8342217927592555959asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099578312,"filename":"image_16062025_20_44_55_10665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/aa11e7020802ce5894dfcd5d6caab4b3.jpg","text":"TemporaryFile(/tmp/multipartBody8051432784235832288asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099578312,"filename":"image_16062025_20_45_05_9677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/321b343cfd3356d097dde72896c99346.jpg","text":"TemporaryFile(/tmp/multipartBody8622381450958973880asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099578312,"filename":"image_16062025_20_45_45_9655.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366593055","file1":"1366593052","file0":"1366593051","file4":"1366593066","file5":"1366593072","file3":"1366593059"},"map_files_photo_id_array":[{"photo_id":"1366593072","filename":"file5"},{"photo_id":"1366593055","filename":"file2"},{"photo_id":"1366593066","filename":"file4"},{"photo_id":"1366593052","filename":"file1"},{"photo_id":"1366593051","filename":"file0"},{"photo_id":"1366593059","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366593059":["hashtag1","hashtag2"]},{"1366593052":["hashtag1","hashtag2"]},{"1366593055":["hashtag1","hashtag2"]},{"1366593072":["hashtag1","hashtag2"]},{"1366593066":["hashtag1","hashtag2"]},{"1366593051":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366593059, 1366593052, 1366593055, 1366593072, 1366593066, 1366593051)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.970356464385986 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:46:16.962826
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/46/image_16062025_20_46_45_9656.jpg', 2), ('/home/nano/Desktop/images/16062025/20/46/image_16062025_20_46_35_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/20/46/image_16062025_20_46_15_9672.jpg', 2), ('/home/nano/Desktop/images/16062025/20/45/image_16062025_20_46_05_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/20/45/image_16062025_20_45_55_10667.jpg', 2), ('/home/nano/Desktop/images/16062025/20/08/image_16062025_20_08_55_9658.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/46/image_16062025_20_46_45_9656.jpg', '/home/nano/Desktop/images/16062025/20/46/image_16062025_20_46_35_9655.jpg', '/home/nano/Desktop/images/16062025/20/46/image_16062025_20_46_15_9672.jpg', '/home/nano/Desktop/images/16062025/20/45/image_16062025_20_46_05_9659.jpg', '/home/nano/Desktop/images/16062025/20/45/image_16062025_20_45_55_10667.jpg', '/home/nano/Desktop/images/16062025/20/08/image_16062025_20_08_55_9658.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/46/image_16062025_20_46_45_9656.jpg
/home/nano/Desktop/images/16062025/20/46/image_16062025_20_46_35_9655.jpg
/home/nano/Desktop/images/16062025/20/46/image_16062025_20_46_15_9672.jpg
/home/nano/Desktop/images/16062025/20/45/image_16062025_20_46_05_9659.jpg
/home/nano/Desktop/images/16062025/20/45/image_16062025_20_45_55_10667.jpg
/home/nano/Desktop/images/16062025/20/08/image_16062025_20_08_55_9658.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366593102","1366593092","1366593094","1366593109","1366593118","1366593093"],"photo_ids_order":["1366593092","1366593093","1366593094","1366593102","1366593109","1366593118"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/588cba74cb16c2a1d1878829c68657e8.jpg","text":"TemporaryFile(/tmp/multipartBody4750776118263520177asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099638800,"filename":"image_16062025_20_46_05_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1e3ec70b0a35d2f3dccb4059f7edbec9.jpg","text":"TemporaryFile(/tmp/multipartBody4363211520379265658asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099638800,"filename":"image_16062025_20_46_45_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/61f8ab4eae22b0d27afa64acff75f157.jpg","text":"TemporaryFile(/tmp/multipartBody8809933341670176965asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099638800,"filename":"image_16062025_20_46_15_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/40dcb184c5949a55c451eeb2adafea2e.jpg","text":"TemporaryFile(/tmp/multipartBody6470725644239799885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099638800,"filename":"image_16062025_20_45_55_10667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9114a33908ae9633af4b2a0fcf12f665.jpg","text":"TemporaryFile(/tmp/multipartBody6753831653624567891asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099638800,"filename":"image_16062025_20_08_55_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1bda0bc8fada81e7aff04126df5f5a71.jpg","text":"TemporaryFile(/tmp/multipartBody4322410471523549390asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099638800,"filename":"image_16062025_20_46_35_9655.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366593094","file1":"1366593093","file0":"1366593092","file4":"1366593109","file5":"1366593118","file3":"1366593102"},"map_files_photo_id_array":[{"photo_id":"1366593118","filename":"file5"},{"photo_id":"1366593094","filename":"file2"},{"photo_id":"1366593109","filename":"file4"},{"photo_id":"1366593093","filename":"file1"},{"photo_id":"1366593092","filename":"file0"},{"photo_id":"1366593102","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366593102":["hashtag1","hashtag2"]},{"1366593092":["hashtag1","hashtag2"]},{"1366593094":["hashtag1","hashtag2"]},{"1366593109":["hashtag1","hashtag2"]},{"1366593118":["hashtag1","hashtag2"]},{"1366593093":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366593102, 1366593092, 1366593094, 1366593109, 1366593118, 1366593093)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 54.7619149684906 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:47:17.126702
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/47/image_16062025_20_47_45_9662.jpg', 2), ('/home/nano/Desktop/images/16062025/20/47/image_16062025_20_47_35_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/20/47/image_16062025_20_47_25_10669.jpg', 2), ('/home/nano/Desktop/images/16062025/20/47/image_16062025_20_47_15_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/20/46/image_16062025_20_47_05_9690.jpg', 2), ('/home/nano/Desktop/images/16062025/20/46/image_16062025_20_46_55_10665.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/47/image_16062025_20_47_45_9662.jpg', '/home/nano/Desktop/images/16062025/20/47/image_16062025_20_47_35_9660.jpg', '/home/nano/Desktop/images/16062025/20/47/image_16062025_20_47_25_10669.jpg', '/home/nano/Desktop/images/16062025/20/47/image_16062025_20_47_15_9658.jpg', '/home/nano/Desktop/images/16062025/20/46/image_16062025_20_47_05_9690.jpg', '/home/nano/Desktop/images/16062025/20/46/image_16062025_20_46_55_10665.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/47/image_16062025_20_47_45_9662.jpg
/home/nano/Desktop/images/16062025/20/47/image_16062025_20_47_35_9660.jpg
/home/nano/Desktop/images/16062025/20/47/image_16062025_20_47_25_10669.jpg
/home/nano/Desktop/images/16062025/20/47/image_16062025_20_47_15_9658.jpg
/home/nano/Desktop/images/16062025/20/46/image_16062025_20_47_05_9690.jpg
/home/nano/Desktop/images/16062025/20/46/image_16062025_20_46_55_10665.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366593137","1366593148","1366593133","1366593141","1366593135","1366593144"],"photo_ids_order":["1366593133","1366593135","1366593137","1366593141","1366593144","1366593148"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/22a43fc991d9a3df0c692e13bd0adb81.jpg","text":"TemporaryFile(/tmp/multipartBody8181671514181406372asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099699674,"filename":"image_16062025_20_47_25_10669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/413e3e575661bc6af70f23d6d5f58585.jpg","text":"TemporaryFile(/tmp/multipartBody6517879778812677902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099699674,"filename":"image_16062025_20_46_55_10665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3804c30e585441bfe1107383474a0074.jpg","text":"TemporaryFile(/tmp/multipartBody6228277541670288941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099699674,"filename":"image_16062025_20_47_45_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4cec92a2337aafb842850522912f9ab8.jpg","text":"TemporaryFile(/tmp/multipartBody6905684072160281894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099699674,"filename":"image_16062025_20_47_15_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/30b73cb45d8952a082689b49612374c4.jpg","text":"TemporaryFile(/tmp/multipartBody677792357239114208asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099699674,"filename":"image_16062025_20_47_35_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0c415df72f68ae3a0f0957efe1ae4b48.jpg","text":"TemporaryFile(/tmp/multipartBody507790684988498736asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099699674,"filename":"image_16062025_20_47_05_9690.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366593137","file1":"1366593135","file0":"1366593133","file4":"1366593144","file5":"1366593148","file3":"1366593141"},"map_files_photo_id_array":[{"photo_id":"1366593148","filename":"file5"},{"photo_id":"1366593137","filename":"file2"},{"photo_id":"1366593144","filename":"file4"},{"photo_id":"1366593135","filename":"file1"},{"photo_id":"1366593133","filename":"file0"},{"photo_id":"1366593141","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366593137":["hashtag1","hashtag2"]},{"1366593148":["hashtag1","hashtag2"]},{"1366593133":["hashtag1","hashtag2"]},{"1366593141":["hashtag1","hashtag2"]},{"1366593135":["hashtag1","hashtag2"]},{"1366593144":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366593137, 1366593148, 1366593133, 1366593141, 1366593135, 1366593144)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.18350791931152 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:48:02.658962
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_35_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_25_9695.jpg', 2), ('/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_15_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/20/01/image_16062025_20_02_05_9626.jpg', 2), ('/home/nano/Desktop/images/16062025/20/01/image_16062025_20_01_55_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/19/59/image_16062025_19_59_45_9763.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_35_9667.jpg', '/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_25_9695.jpg', '/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_15_10642.jpg', '/home/nano/Desktop/images/16062025/20/01/image_16062025_20_02_05_9626.jpg', '/home/nano/Desktop/images/16062025/20/01/image_16062025_20_01_55_9619.jpg', '/home/nano/Desktop/images/16062025/19/59/image_16062025_19_59_45_9763.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_35_9667.jpg
/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_25_9695.jpg
/home/nano/Desktop/images/16062025/20/02/image_16062025_20_02_15_10642.jpg
/home/nano/Desktop/images/16062025/20/01/image_16062025_20_02_05_9626.jpg
/home/nano/Desktop/images/16062025/20/01/image_16062025_20_01_55_9619.jpg
/home/nano/Desktop/images/16062025/19/59/image_16062025_19_59_45_9763.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366593179","1366593161","1366593175","1366593157","1366593166","1366593171"],"photo_ids_order":["1366593157","1366593161","1366593166","1366593171","1366593175","1366593179"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/47fd644226b02400de0a403d739706eb.jpg","text":"TemporaryFile(/tmp/multipartBody2731948540531080597asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099745441,"filename":"image_16062025_19_59_45_9763.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0242a4c9fd10ba3c75b97d186bd22afc.jpg","text":"TemporaryFile(/tmp/multipartBody7695907447082433340asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099745441,"filename":"image_16062025_20_02_25_9695.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9b3ad76045d7201521b33872f1e020da.jpg","text":"TemporaryFile(/tmp/multipartBody8386521256475744821asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099745441,"filename":"image_16062025_20_01_55_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/90648582ff08eb5fc384e72808f2485e.jpg","text":"TemporaryFile(/tmp/multipartBody4933978121488040726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099745441,"filename":"image_16062025_20_02_35_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4d8cc31476b4a276b554c1e010d475e9.jpg","text":"TemporaryFile(/tmp/multipartBody4682659819402032544asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099745441,"filename":"image_16062025_20_02_15_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/312d13ed533fbb386de3095efc2639af.jpg","text":"TemporaryFile(/tmp/multipartBody6801058274480652081asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099745441,"filename":"image_16062025_20_02_05_9626.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366593166","file1":"1366593161","file0":"1366593157","file4":"1366593175","file5":"1366593179","file3":"1366593171"},"map_files_photo_id_array":[{"photo_id":"1366593179","filename":"file5"},{"photo_id":"1366593166","filename":"file2"},{"photo_id":"1366593175","filename":"file4"},{"photo_id":"1366593161","filename":"file1"},{"photo_id":"1366593157","filename":"file0"},{"photo_id":"1366593171","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366593179":["hashtag1","hashtag2"]},{"1366593161":["hashtag1","hashtag2"]},{"1366593175":["hashtag1","hashtag2"]},{"1366593157":["hashtag1","hashtag2"]},{"1366593166":["hashtag1","hashtag2"]},{"1366593171":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366593179, 1366593161, 1366593175, 1366593157, 1366593166, 1366593171)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 52.01650381088257 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:49:03.281804
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/48/image_16062025_20_48_45_9662.jpg', 2), ('/home/nano/Desktop/images/16062025/20/48/image_16062025_20_48_35_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/20/48/image_16062025_20_48_15_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/20/47/image_16062025_20_48_05_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/20/47/image_16062025_20_47_55_10672.jpg', 2), ('/home/nano/Desktop/images/16062025/19/59/image_16062025_19_59_35_9696.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/48/image_16062025_20_48_45_9662.jpg', '/home/nano/Desktop/images/16062025/20/48/image_16062025_20_48_35_9664.jpg', '/home/nano/Desktop/images/16062025/20/48/image_16062025_20_48_15_9671.jpg', '/home/nano/Desktop/images/16062025/20/47/image_16062025_20_48_05_9668.jpg', '/home/nano/Desktop/images/16062025/20/47/image_16062025_20_47_55_10672.jpg', '/home/nano/Desktop/images/16062025/19/59/image_16062025_19_59_35_9696.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/48/image_16062025_20_48_45_9662.jpg
/home/nano/Desktop/images/16062025/20/48/image_16062025_20_48_35_9664.jpg
/home/nano/Desktop/images/16062025/20/48/image_16062025_20_48_15_9671.jpg
/home/nano/Desktop/images/16062025/20/47/image_16062025_20_48_05_9668.jpg
/home/nano/Desktop/images/16062025/20/47/image_16062025_20_47_55_10672.jpg
/home/nano/Desktop/images/16062025/19/59/image_16062025_19_59_35_9696.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366593197","1366593191","1366593199","1366593189","1366593204","1366593194"],"photo_ids_order":["1366593189","1366593191","1366593194","1366593197","1366593199","1366593204"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f37c297ad446eda75ba94f87b0b66d08.jpg","text":"TemporaryFile(/tmp/multipartBody9039543244475625190asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099805229,"filename":"image_16062025_20_48_05_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0d397d811bbd0de1db34b53fb74ad7a4.jpg","text":"TemporaryFile(/tmp/multipartBody8706696136627775828asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099805229,"filename":"image_16062025_20_48_35_9664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e5fb0384d5b810ad0aa3478e4cb72dcd.jpg","text":"TemporaryFile(/tmp/multipartBody6631246129193759375asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099805229,"filename":"image_16062025_20_47_55_10672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f9e5ded55522cdd07d0370f4cb7e0827.jpg","text":"TemporaryFile(/tmp/multipartBody8433749117254025429asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099805229,"filename":"image_16062025_20_48_45_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/251f4e327460e2647046402cb6334ab8.jpg","text":"TemporaryFile(/tmp/multipartBody4743432515367125155asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099805229,"filename":"image_16062025_19_59_35_9696.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8d653b24d592b2ccbaca8f4e322c7d6c.jpg","text":"TemporaryFile(/tmp/multipartBody7357771056893408583asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099805229,"filename":"image_16062025_20_48_15_9671.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366593194","file1":"1366593191","file0":"1366593189","file4":"1366593199","file5":"1366593204","file3":"1366593197"},"map_files_photo_id_array":[{"photo_id":"1366593204","filename":"file5"},{"photo_id":"1366593194","filename":"file2"},{"photo_id":"1366593199","filename":"file4"},{"photo_id":"1366593191","filename":"file1"},{"photo_id":"1366593189","filename":"file0"},{"photo_id":"1366593197","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366593197":["hashtag1","hashtag2"]},{"1366593191":["hashtag1","hashtag2"]},{"1366593199":["hashtag1","hashtag2"]},{"1366593189":["hashtag1","hashtag2"]},{"1366593204":["hashtag1","hashtag2"]},{"1366593194":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366593197, 1366593191, 1366593199, 1366593189, 1366593204, 1366593194)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 52.82814073562622 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:50:03.108597
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/49/image_16062025_20_49_45_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/20/49/image_16062025_20_49_35_9662.jpg', 2), ('/home/nano/Desktop/images/16062025/20/49/image_16062025_20_49_15_9670.jpg', 2), ('/home/nano/Desktop/images/16062025/20/48/image_16062025_20_49_05_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/20/48/image_16062025_20_48_55_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/19/59/image_16062025_19_59_25_10708.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/49/image_16062025_20_49_45_9654.jpg', '/home/nano/Desktop/images/16062025/20/49/image_16062025_20_49_35_9662.jpg', '/home/nano/Desktop/images/16062025/20/49/image_16062025_20_49_15_9670.jpg', '/home/nano/Desktop/images/16062025/20/48/image_16062025_20_49_05_9668.jpg', '/home/nano/Desktop/images/16062025/20/48/image_16062025_20_48_55_10666.jpg', '/home/nano/Desktop/images/16062025/19/59/image_16062025_19_59_25_10708.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/49/image_16062025_20_49_45_9654.jpg
/home/nano/Desktop/images/16062025/20/49/image_16062025_20_49_35_9662.jpg
/home/nano/Desktop/images/16062025/20/49/image_16062025_20_49_15_9670.jpg
/home/nano/Desktop/images/16062025/20/48/image_16062025_20_49_05_9668.jpg
/home/nano/Desktop/images/16062025/20/48/image_16062025_20_48_55_10666.jpg
/home/nano/Desktop/images/16062025/19/59/image_16062025_19_59_25_10708.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366593248","1366593238","1366593252","1366593234","1366593243","1366593246"],"photo_ids_order":["1366593234","1366593238","1366593243","1366593246","1366593248","1366593252"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fa6358b6f4ca5ebfd15bf6c837985cd5.jpg","text":"TemporaryFile(/tmp/multipartBody4893806209880487728asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099864793,"filename":"image_16062025_20_48_55_10666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/35a307aaa65f08caf2a4022f2265cf34.jpg","text":"TemporaryFile(/tmp/multipartBody5735450737530320649asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099864793,"filename":"image_16062025_20_49_35_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b7965d5545596a1a89ec4e8a93a73bae.jpg","text":"TemporaryFile(/tmp/multipartBody6026164806866412252asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099864793,"filename":"image_16062025_19_59_25_10708.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b5a898d01993272296220e3e60467b6e.jpg","text":"TemporaryFile(/tmp/multipartBody2003368134667556316asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099864793,"filename":"image_16062025_20_49_45_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9688f3453f210dfd3eeadce2fd48d031.jpg","text":"TemporaryFile(/tmp/multipartBody7309293097872480725asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099864793,"filename":"image_16062025_20_49_15_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f44e7aefc8f22d67109bba6aafabf094.jpg","text":"TemporaryFile(/tmp/multipartBody8269443084246205085asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099864793,"filename":"image_16062025_20_49_05_9668.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366593243","file1":"1366593238","file0":"1366593234","file4":"1366593248","file5":"1366593252","file3":"1366593246"},"map_files_photo_id_array":[{"photo_id":"1366593252","filename":"file5"},{"photo_id":"1366593243","filename":"file2"},{"photo_id":"1366593248","filename":"file4"},{"photo_id":"1366593238","filename":"file1"},{"photo_id":"1366593234","filename":"file0"},{"photo_id":"1366593246","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366593248":["hashtag1","hashtag2"]},{"1366593238":["hashtag1","hashtag2"]},{"1366593252":["hashtag1","hashtag2"]},{"1366593234":["hashtag1","hashtag2"]},{"1366593243":["hashtag1","hashtag2"]},{"1366593246":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366593248, 1366593238, 1366593252, 1366593234, 1366593243, 1366593246)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.19962286949158 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:51:03.384194
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/50/image_16062025_20_50_45_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/20/50/image_16062025_20_50_25_10668.jpg', 2), ('/home/nano/Desktop/images/16062025/20/50/image_16062025_20_50_15_9686.jpg', 2), ('/home/nano/Desktop/images/16062025/20/49/image_16062025_20_50_05_9663.jpg', 2), ('/home/nano/Desktop/images/16062025/20/49/image_16062025_20_49_55_10665.jpg', 2), ('/home/nano/Desktop/images/16062025/19/59/image_16062025_19_59_15_9641.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/50/image_16062025_20_50_45_9655.jpg', '/home/nano/Desktop/images/16062025/20/50/image_16062025_20_50_25_10668.jpg', '/home/nano/Desktop/images/16062025/20/50/image_16062025_20_50_15_9686.jpg', '/home/nano/Desktop/images/16062025/20/49/image_16062025_20_50_05_9663.jpg', '/home/nano/Desktop/images/16062025/20/49/image_16062025_20_49_55_10665.jpg', '/home/nano/Desktop/images/16062025/19/59/image_16062025_19_59_15_9641.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/50/image_16062025_20_50_45_9655.jpg
/home/nano/Desktop/images/16062025/20/50/image_16062025_20_50_25_10668.jpg
/home/nano/Desktop/images/16062025/20/50/image_16062025_20_50_15_9686.jpg
/home/nano/Desktop/images/16062025/20/49/image_16062025_20_50_05_9663.jpg
/home/nano/Desktop/images/16062025/20/49/image_16062025_20_49_55_10665.jpg
/home/nano/Desktop/images/16062025/19/59/image_16062025_19_59_15_9641.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366593281","1366593269","1366593274","1366593277","1366593285","1366593293"],"photo_ids_order":["1366593269","1366593274","1366593277","1366593281","1366593285","1366593293"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9c2daccbde0931486c104f34fe82b0f4.jpg","text":"TemporaryFile(/tmp/multipartBody5463256693478958365asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099925476,"filename":"image_16062025_20_50_05_9663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/251cd363e6ffca7e81b3516042596f0d.jpg","text":"TemporaryFile(/tmp/multipartBody2895077978458179429asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099925476,"filename":"image_16062025_20_50_45_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3963330b1086f8be8c53266151fc730a.jpg","text":"TemporaryFile(/tmp/multipartBody7523956612928530166asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099925476,"filename":"image_16062025_20_50_25_10668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/373d0817892af2c27313eb0177ffc322.jpg","text":"TemporaryFile(/tmp/multipartBody3889597599808505788asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099925476,"filename":"image_16062025_20_50_15_9686.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0211a70a7b48332965c6940cfa500ecb.jpg","text":"TemporaryFile(/tmp/multipartBody977416591941125219asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099925476,"filename":"image_16062025_20_49_55_10665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6bc04733c7a0f2e3289f850a07852852.jpg","text":"TemporaryFile(/tmp/multipartBody27964450207572109asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099925476,"filename":"image_16062025_19_59_15_9641.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366593277","file1":"1366593274","file0":"1366593269","file4":"1366593285","file5":"1366593293","file3":"1366593281"},"map_files_photo_id_array":[{"photo_id":"1366593293","filename":"file5"},{"photo_id":"1366593277","filename":"file2"},{"photo_id":"1366593285","filename":"file4"},{"photo_id":"1366593274","filename":"file1"},{"photo_id":"1366593269","filename":"file0"},{"photo_id":"1366593281","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366593281":["hashtag1","hashtag2"]},{"1366593269":["hashtag1","hashtag2"]},{"1366593274":["hashtag1","hashtag2"]},{"1366593277":["hashtag1","hashtag2"]},{"1366593285":["hashtag1","hashtag2"]},{"1366593293":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366593281, 1366593269, 1366593274, 1366593277, 1366593285, 1366593293)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 53.37133455276489 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:52:02.404990
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/51/image_16062025_20_51_35_9662.jpg', 2), ('/home/nano/Desktop/images/16062025/20/51/image_16062025_20_51_25_10672.jpg', 2), ('/home/nano/Desktop/images/16062025/20/51/image_16062025_20_51_15_9679.jpg', 2), ('/home/nano/Desktop/images/16062025/20/50/image_16062025_20_51_05_9672.jpg', 2), ('/home/nano/Desktop/images/16062025/20/50/image_16062025_20_50_55_10665.jpg', 2), ('/home/nano/Desktop/images/16062025/19/58/image_16062025_19_59_05_9678.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/51/image_16062025_20_51_35_9662.jpg', '/home/nano/Desktop/images/16062025/20/51/image_16062025_20_51_25_10672.jpg', '/home/nano/Desktop/images/16062025/20/51/image_16062025_20_51_15_9679.jpg', '/home/nano/Desktop/images/16062025/20/50/image_16062025_20_51_05_9672.jpg', '/home/nano/Desktop/images/16062025/20/50/image_16062025_20_50_55_10665.jpg', '/home/nano/Desktop/images/16062025/19/58/image_16062025_19_59_05_9678.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/51/image_16062025_20_51_35_9662.jpg
/home/nano/Desktop/images/16062025/20/51/image_16062025_20_51_25_10672.jpg
/home/nano/Desktop/images/16062025/20/51/image_16062025_20_51_15_9679.jpg
/home/nano/Desktop/images/16062025/20/50/image_16062025_20_51_05_9672.jpg
/home/nano/Desktop/images/16062025/20/50/image_16062025_20_50_55_10665.jpg
/home/nano/Desktop/images/16062025/19/58/image_16062025_19_59_05_9678.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366593312","1366593306","1366593308","1366593317","1366593302","1366593315"],"photo_ids_order":["1366593302","1366593306","1366593308","1366593312","1366593315","1366593317"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/baebe7f8c829d86593b23b595f82f56f.jpg","text":"TemporaryFile(/tmp/multipartBody761242629595060867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099987223,"filename":"image_16062025_20_51_05_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/898f232aa2a295c0cb8a97b65fa69755.jpg","text":"TemporaryFile(/tmp/multipartBody3798787323026595008asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099987223,"filename":"image_16062025_20_51_25_10672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1fc1ca911a7348c733ae2fddcc662fb4.jpg","text":"TemporaryFile(/tmp/multipartBody2832450206863772922asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099987223,"filename":"image_16062025_20_51_15_9679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/98176ecb0627e8ffc090fa5194220a9c.jpg","text":"TemporaryFile(/tmp/multipartBody2058603787790956436asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099987223,"filename":"image_16062025_19_59_05_9678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b8f6c45abb4d4cbc6126ae008b144fd6.jpg","text":"TemporaryFile(/tmp/multipartBody3358443598721052734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099987223,"filename":"image_16062025_20_51_35_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/40257d7a6deccba6ac2ae0dc9d0d03bd.jpg","text":"TemporaryFile(/tmp/multipartBody7420085377640599030asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750099987223,"filename":"image_16062025_20_50_55_10665.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366593308","file1":"1366593306","file0":"1366593302","file4":"1366593315","file5":"1366593317","file3":"1366593312"},"map_files_photo_id_array":[{"photo_id":"1366593317","filename":"file5"},{"photo_id":"1366593308","filename":"file2"},{"photo_id":"1366593315","filename":"file4"},{"photo_id":"1366593306","filename":"file1"},{"photo_id":"1366593302","filename":"file0"},{"photo_id":"1366593312","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366593312":["hashtag1","hashtag2"]},{"1366593306":["hashtag1","hashtag2"]},{"1366593308":["hashtag1","hashtag2"]},{"1366593317":["hashtag1","hashtag2"]},{"1366593302":["hashtag1","hashtag2"]},{"1366593315":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366593312, 1366593306, 1366593308, 1366593317, 1366593302, 1366593315)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.66047811508179 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:53:02.671316
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/52/image_16062025_20_52_35_10667.jpg', 2), ('/home/nano/Desktop/images/16062025/20/52/image_16062025_20_52_24_9681.jpg', 2), ('/home/nano/Desktop/images/16062025/20/52/image_16062025_20_52_15_9680.jpg', 2), ('/home/nano/Desktop/images/16062025/20/51/image_16062025_20_52_05_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/20/51/image_16062025_20_51_55_10684.jpg', 2), ('/home/nano/Desktop/images/16062025/19/58/image_16062025_19_58_55_10628.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/52/image_16062025_20_52_35_10667.jpg', '/home/nano/Desktop/images/16062025/20/52/image_16062025_20_52_24_9681.jpg', '/home/nano/Desktop/images/16062025/20/52/image_16062025_20_52_15_9680.jpg', '/home/nano/Desktop/images/16062025/20/51/image_16062025_20_52_05_9668.jpg', '/home/nano/Desktop/images/16062025/20/51/image_16062025_20_51_55_10684.jpg', '/home/nano/Desktop/images/16062025/19/58/image_16062025_19_58_55_10628.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/52/image_16062025_20_52_35_10667.jpg
/home/nano/Desktop/images/16062025/20/52/image_16062025_20_52_24_9681.jpg
/home/nano/Desktop/images/16062025/20/52/image_16062025_20_52_15_9680.jpg
/home/nano/Desktop/images/16062025/20/51/image_16062025_20_52_05_9668.jpg
/home/nano/Desktop/images/16062025/20/51/image_16062025_20_51_55_10684.jpg
/home/nano/Desktop/images/16062025/19/58/image_16062025_19_58_55_10628.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366593332","1366593340","1366593337","1366593334","1366593336","1366593330"],"photo_ids_order":["1366593330","1366593332","1366593334","1366593336","1366593337","1366593340"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0693ba4e33c4e0801eea96a7e8244902.jpg","text":"TemporaryFile(/tmp/multipartBody8745568767478167255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100045985,"filename":"image_16062025_20_52_24_9681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/00941836a7ab8e4cda9b34667ef45388.jpg","text":"TemporaryFile(/tmp/multipartBody5413222263066355678asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100045985,"filename":"image_16062025_19_58_55_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d8d945327a47b7f248048f9d6997d4c0.jpg","text":"TemporaryFile(/tmp/multipartBody6701121539073565998asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100045985,"filename":"image_16062025_20_51_55_10684.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2eb6e2fb211994c0089a6aa3ed245e85.jpg","text":"TemporaryFile(/tmp/multipartBody2282073317629627588asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100045985,"filename":"image_16062025_20_52_15_9680.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1106feef3d52f92a1309e57f648ee52f.jpg","text":"TemporaryFile(/tmp/multipartBody9146926816284298450asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100045985,"filename":"image_16062025_20_52_05_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/27586951af141265b6722259e32d771b.jpg","text":"TemporaryFile(/tmp/multipartBody8987746303359457964asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100045985,"filename":"image_16062025_20_52_35_10667.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366593334","file1":"1366593332","file0":"1366593330","file4":"1366593337","file5":"1366593340","file3":"1366593336"},"map_files_photo_id_array":[{"photo_id":"1366593340","filename":"file5"},{"photo_id":"1366593334","filename":"file2"},{"photo_id":"1366593337","filename":"file4"},{"photo_id":"1366593332","filename":"file1"},{"photo_id":"1366593330","filename":"file0"},{"photo_id":"1366593336","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366593332":["hashtag1","hashtag2"]},{"1366593340":["hashtag1","hashtag2"]},{"1366593337":["hashtag1","hashtag2"]},{"1366593334":["hashtag1","hashtag2"]},{"1366593336":["hashtag1","hashtag2"]},{"1366593330":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366593332, 1366593340, 1366593337, 1366593334, 1366593336, 1366593330)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.71870493888855 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:54:02.728208
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/53/image_16062025_20_53_45_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/20/53/image_16062025_20_53_35_10673.jpg', 2), ('/home/nano/Desktop/images/16062025/20/53/image_16062025_20_53_15_9665.jpg', 2), ('/home/nano/Desktop/images/16062025/20/52/image_16062025_20_53_05_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/20/52/image_16062025_20_52_45_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_45_9629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/53/image_16062025_20_53_45_9654.jpg', '/home/nano/Desktop/images/16062025/20/53/image_16062025_20_53_35_10673.jpg', '/home/nano/Desktop/images/16062025/20/53/image_16062025_20_53_15_9665.jpg', '/home/nano/Desktop/images/16062025/20/52/image_16062025_20_53_05_9669.jpg', '/home/nano/Desktop/images/16062025/20/52/image_16062025_20_52_45_9655.jpg', '/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_45_9629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/53/image_16062025_20_53_45_9654.jpg
/home/nano/Desktop/images/16062025/20/53/image_16062025_20_53_35_10673.jpg
/home/nano/Desktop/images/16062025/20/53/image_16062025_20_53_15_9665.jpg
/home/nano/Desktop/images/16062025/20/52/image_16062025_20_53_05_9669.jpg
/home/nano/Desktop/images/16062025/20/52/image_16062025_20_52_45_9655.jpg
/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_45_9629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366593362","1366593365","1366593359","1366593367","1366593364","1366593369"],"photo_ids_order":["1366593359","1366593362","1366593364","1366593365","1366593367","1366593369"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/90db8bfb8e81ad7633724ed619d54957.jpg","text":"TemporaryFile(/tmp/multipartBody3126771466646251411asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100104477,"filename":"image_16062025_20_53_35_10673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f14cfafd866e5dd4bddf087e64535e87.jpg","text":"TemporaryFile(/tmp/multipartBody6893687551772719376asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100104477,"filename":"image_16062025_20_53_05_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e09d08dbc42898450879b96d88983914.jpg","text":"TemporaryFile(/tmp/multipartBody9206756539025933475asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100104477,"filename":"image_16062025_20_53_45_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9fc07aaf65e41bdfd466b1d062867116.jpg","text":"TemporaryFile(/tmp/multipartBody6448297496472626638asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100104477,"filename":"image_16062025_20_52_45_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3703edc4e3b86fba7c55904b31c40afa.jpg","text":"TemporaryFile(/tmp/multipartBody1017151401341880888asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100104477,"filename":"image_16062025_20_53_15_9665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9ba6d3e38d5f9b725fd388a0c9cca773.jpg","text":"TemporaryFile(/tmp/multipartBody3355248341468889395asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100104477,"filename":"image_16062025_19_57_45_9629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366593364","file1":"1366593362","file0":"1366593359","file4":"1366593367","file5":"1366593369","file3":"1366593365"},"map_files_photo_id_array":[{"photo_id":"1366593369","filename":"file5"},{"photo_id":"1366593364","filename":"file2"},{"photo_id":"1366593367","filename":"file4"},{"photo_id":"1366593362","filename":"file1"},{"photo_id":"1366593359","filename":"file0"},{"photo_id":"1366593365","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366593362":["hashtag1","hashtag2"]},{"1366593365":["hashtag1","hashtag2"]},{"1366593359":["hashtag1","hashtag2"]},{"1366593367":["hashtag1","hashtag2"]},{"1366593364":["hashtag1","hashtag2"]},{"1366593369":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366593362, 1366593365, 1366593359, 1366593367, 1366593364, 1366593369)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.0779242515564 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:54:47.034240
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/54/image_16062025_20_54_24_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/20/54/image_16062025_20_54_15_9679.jpg', 2), ('/home/nano/Desktop/images/16062025/20/53/image_16062025_20_54_05_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/20/53/image_16062025_20_53_55_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_35_10646.jpg', 2), ('/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_25_9640.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/54/image_16062025_20_54_24_9673.jpg', '/home/nano/Desktop/images/16062025/20/54/image_16062025_20_54_15_9679.jpg', '/home/nano/Desktop/images/16062025/20/53/image_16062025_20_54_05_9668.jpg', '/home/nano/Desktop/images/16062025/20/53/image_16062025_20_53_55_10666.jpg', '/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_35_10646.jpg', '/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_25_9640.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/54/image_16062025_20_54_24_9673.jpg
/home/nano/Desktop/images/16062025/20/54/image_16062025_20_54_15_9679.jpg
/home/nano/Desktop/images/16062025/20/53/image_16062025_20_54_05_9668.jpg
/home/nano/Desktop/images/16062025/20/53/image_16062025_20_53_55_10666.jpg
/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_35_10646.jpg
/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_25_9640.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366593389","1366593391","1366593385","1366593382","1366593376","1366593379"],"photo_ids_order":["1366593376","1366593379","1366593382","1366593385","1366593389","1366593391"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/795a4cd754f9f066d0582a633374dc4b.jpg","text":"TemporaryFile(/tmp/multipartBody8550843812989628372asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100151251,"filename":"image_16062025_19_57_35_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e910da4b3820137931724d35247a90f3.jpg","text":"TemporaryFile(/tmp/multipartBody4946396855444014397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100151251,"filename":"image_16062025_19_57_25_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7351edad359d50dfb244681173f36d35.jpg","text":"TemporaryFile(/tmp/multipartBody3672691722530977371asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100151251,"filename":"image_16062025_20_53_55_10666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/882b6c20dacacf6a767e5a0bb2b2c631.jpg","text":"TemporaryFile(/tmp/multipartBody3784262128469060886asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100151251,"filename":"image_16062025_20_54_05_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/626894c13fc7fcb9731c2ff84faf331b.jpg","text":"TemporaryFile(/tmp/multipartBody7713193306479836195asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100151251,"filename":"image_16062025_20_54_24_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5c51e49b0d8ed3d45e9cba2d43999627.jpg","text":"TemporaryFile(/tmp/multipartBody4888585682964953952asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100151251,"filename":"image_16062025_20_54_15_9679.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366593382","file1":"1366593379","file0":"1366593376","file4":"1366593389","file5":"1366593391","file3":"1366593385"},"map_files_photo_id_array":[{"photo_id":"1366593391","filename":"file5"},{"photo_id":"1366593382","filename":"file2"},{"photo_id":"1366593389","filename":"file4"},{"photo_id":"1366593379","filename":"file1"},{"photo_id":"1366593376","filename":"file0"},{"photo_id":"1366593385","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366593389":["hashtag1","hashtag2"]},{"1366593391":["hashtag1","hashtag2"]},{"1366593385":["hashtag1","hashtag2"]},{"1366593382":["hashtag1","hashtag2"]},{"1366593376":["hashtag1","hashtag2"]},{"1366593379":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366593389, 1366593391, 1366593385, 1366593382, 1366593376, 1366593379)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.20425796508789 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:55:32.098615
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/55/image_16062025_20_55_54_9676.jpg', 2), ('/home/nano/Desktop/images/16062025/20/55/image_16062025_20_55_35_10668.jpg', 2), ('/home/nano/Desktop/images/16062025/20/55/image_16062025_20_55_24_9662.jpg', 2), ('/home/nano/Desktop/images/16062025/20/55/image_16062025_20_55_15_9682.jpg', 2), ('/home/nano/Desktop/images/16062025/20/54/image_16062025_20_55_05_10702.jpg', 2), ('/home/nano/Desktop/images/16062025/20/54/image_16062025_20_54_45_9657.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/55/image_16062025_20_55_54_9676.jpg', '/home/nano/Desktop/images/16062025/20/55/image_16062025_20_55_35_10668.jpg', '/home/nano/Desktop/images/16062025/20/55/image_16062025_20_55_24_9662.jpg', '/home/nano/Desktop/images/16062025/20/55/image_16062025_20_55_15_9682.jpg', '/home/nano/Desktop/images/16062025/20/54/image_16062025_20_55_05_10702.jpg', '/home/nano/Desktop/images/16062025/20/54/image_16062025_20_54_45_9657.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/55/image_16062025_20_55_54_9676.jpg
/home/nano/Desktop/images/16062025/20/55/image_16062025_20_55_35_10668.jpg
/home/nano/Desktop/images/16062025/20/55/image_16062025_20_55_24_9662.jpg
/home/nano/Desktop/images/16062025/20/55/image_16062025_20_55_15_9682.jpg
/home/nano/Desktop/images/16062025/20/54/image_16062025_20_55_05_10702.jpg
/home/nano/Desktop/images/16062025/20/54/image_16062025_20_54_45_9657.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366593411","1366593419","1366593440","1366593397","1366593436","1366593426"],"photo_ids_order":["1366593397","1366593411","1366593419","1366593426","1366593436","1366593440"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/511efed6432c05155eb19feb543f175c.jpg","text":"TemporaryFile(/tmp/multipartBody1257266665910286090asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100194251,"filename":"image_16062025_20_55_35_10668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e230e586ebfe1fa361a034450dd974f4.jpg","text":"TemporaryFile(/tmp/multipartBody9038822626638317521asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100194251,"filename":"image_16062025_20_55_24_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2bb0d7d3d9df004aaae218aa76f4efeb.jpg","text":"TemporaryFile(/tmp/multipartBody3283593101259366280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100194251,"filename":"image_16062025_20_54_45_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/094498a21c208d78135445e9e738d046.jpg","text":"TemporaryFile(/tmp/multipartBody3222394551165440281asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100194251,"filename":"image_16062025_20_55_54_9676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0483da4912ae1f100582467cdd66bdf4.jpg","text":"TemporaryFile(/tmp/multipartBody6110428167637336973asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100194251,"filename":"image_16062025_20_55_05_10702.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/19c066e66be3c1610bd535ae313339a2.jpg","text":"TemporaryFile(/tmp/multipartBody5623097711115078533asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100194251,"filename":"image_16062025_20_55_15_9682.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366593419","file1":"1366593411","file0":"1366593397","file4":"1366593436","file5":"1366593440","file3":"1366593426"},"map_files_photo_id_array":[{"photo_id":"1366593440","filename":"file5"},{"photo_id":"1366593419","filename":"file2"},{"photo_id":"1366593436","filename":"file4"},{"photo_id":"1366593411","filename":"file1"},{"photo_id":"1366593397","filename":"file0"},{"photo_id":"1366593426","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366593411":["hashtag1","hashtag2"]},{"1366593419":["hashtag1","hashtag2"]},{"1366593440":["hashtag1","hashtag2"]},{"1366593397":["hashtag1","hashtag2"]},{"1366593436":["hashtag1","hashtag2"]},{"1366593426":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366593411, 1366593419, 1366593440, 1366593397, 1366593436, 1366593426)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 50.237744092941284 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:56:32.301374
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/56/image_16062025_20_56_45_9663.jpg', 2), ('/home/nano/Desktop/images/16062025/20/56/image_16062025_20_56_35_10671.jpg', 2), ('/home/nano/Desktop/images/16062025/20/56/image_16062025_20_56_24_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/20/56/image_16062025_20_56_15_9663.jpg', 2), ('/home/nano/Desktop/images/16062025/20/55/image_16062025_20_55_45_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_15_9649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/56/image_16062025_20_56_45_9663.jpg', '/home/nano/Desktop/images/16062025/20/56/image_16062025_20_56_35_10671.jpg', '/home/nano/Desktop/images/16062025/20/56/image_16062025_20_56_24_9657.jpg', '/home/nano/Desktop/images/16062025/20/56/image_16062025_20_56_15_9663.jpg', '/home/nano/Desktop/images/16062025/20/55/image_16062025_20_55_45_9659.jpg', '/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_15_9649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/56/image_16062025_20_56_45_9663.jpg
/home/nano/Desktop/images/16062025/20/56/image_16062025_20_56_35_10671.jpg
/home/nano/Desktop/images/16062025/20/56/image_16062025_20_56_24_9657.jpg
/home/nano/Desktop/images/16062025/20/56/image_16062025_20_56_15_9663.jpg
/home/nano/Desktop/images/16062025/20/55/image_16062025_20_55_45_9659.jpg
/home/nano/Desktop/images/16062025/19/57/image_16062025_19_57_15_9649.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366593473","1366593479","1366593458","1366593466","1366593460","1366593477"],"photo_ids_order":["1366593458","1366593460","1366593466","1366593473","1366593477","1366593479"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fab2df67cc61af55424b360bfdf46f83.jpg","text":"TemporaryFile(/tmp/multipartBody6149760775983036079asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100254439,"filename":"image_16062025_20_56_15_9663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3fc202e7ec197e6fb47f90c54a4f7862.jpg","text":"TemporaryFile(/tmp/multipartBody6706242295004662754asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100254439,"filename":"image_16062025_19_57_15_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d7dbc277c6c2faea4b4d7844f88912bc.jpg","text":"TemporaryFile(/tmp/multipartBody6423647644442323136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100254439,"filename":"image_16062025_20_56_45_9663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6a3541651af51ee3fb58295291a449da.jpg","text":"TemporaryFile(/tmp/multipartBody7964342968724971369asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100254439,"filename":"image_16062025_20_56_24_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6c3c3c23a72f2909373373a4417227f4.jpg","text":"TemporaryFile(/tmp/multipartBody5605263925515011053asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100254439,"filename":"image_16062025_20_56_35_10671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a79f1f3667e42f92eda5a9d3f0c5e925.jpg","text":"TemporaryFile(/tmp/multipartBody1840537007781449793asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100254439,"filename":"image_16062025_20_55_45_9659.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366593466","file1":"1366593460","file0":"1366593458","file4":"1366593477","file5":"1366593479","file3":"1366593473"},"map_files_photo_id_array":[{"photo_id":"1366593479","filename":"file5"},{"photo_id":"1366593466","filename":"file2"},{"photo_id":"1366593477","filename":"file4"},{"photo_id":"1366593460","filename":"file1"},{"photo_id":"1366593458","filename":"file0"},{"photo_id":"1366593473","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366593473":["hashtag1","hashtag2"]},{"1366593479":["hashtag1","hashtag2"]},{"1366593458":["hashtag1","hashtag2"]},{"1366593466":["hashtag1","hashtag2"]},{"1366593460":["hashtag1","hashtag2"]},{"1366593477":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366593473, 1366593479, 1366593458, 1366593466, 1366593460, 1366593477)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.817020654678345 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:57:32.331503
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_45_9656.jpg', 2), ('/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_24_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_15_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/20/56/image_16062025_20_57_05_10695.jpg', 2), ('/home/nano/Desktop/images/16062025/20/56/image_16062025_20_56_54_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/19/56/image_16062025_19_57_05_10651.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_45_9656.jpg', '/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_24_9659.jpg', '/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_15_9668.jpg', '/home/nano/Desktop/images/16062025/20/56/image_16062025_20_57_05_10695.jpg', '/home/nano/Desktop/images/16062025/20/56/image_16062025_20_56_54_9677.jpg', '/home/nano/Desktop/images/16062025/19/56/image_16062025_19_57_05_10651.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_45_9656.jpg
/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_24_9659.jpg
/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_15_9668.jpg
/home/nano/Desktop/images/16062025/20/56/image_16062025_20_57_05_10695.jpg
/home/nano/Desktop/images/16062025/20/56/image_16062025_20_56_54_9677.jpg
/home/nano/Desktop/images/16062025/19/56/image_16062025_19_57_05_10651.jpg
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:58:02.854359
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_45_9656.jpg', 2), ('/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_24_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_15_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/20/56/image_16062025_20_57_05_10695.jpg', 2), ('/home/nano/Desktop/images/16062025/20/56/image_16062025_20_56_54_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/19/56/image_16062025_19_57_05_10651.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_45_9656.jpg', '/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_24_9659.jpg', '/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_15_9668.jpg', '/home/nano/Desktop/images/16062025/20/56/image_16062025_20_57_05_10695.jpg', '/home/nano/Desktop/images/16062025/20/56/image_16062025_20_56_54_9677.jpg', '/home/nano/Desktop/images/16062025/19/56/image_16062025_19_57_05_10651.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_45_9656.jpg
/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_24_9659.jpg
/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_15_9668.jpg
/home/nano/Desktop/images/16062025/20/56/image_16062025_20_57_05_10695.jpg
/home/nano/Desktop/images/16062025/20/56/image_16062025_20_56_54_9677.jpg
/home/nano/Desktop/images/16062025/19/56/image_16062025_19_57_05_10651.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 2.022040605545044 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 20:59:03.541491
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_45_9656.jpg', 2), ('/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_24_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_15_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/20/56/image_16062025_20_57_05_10695.jpg', 2), ('/home/nano/Desktop/images/16062025/20/56/image_16062025_20_56_54_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/19/56/image_16062025_19_57_05_10651.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_45_9656.jpg', '/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_24_9659.jpg', '/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_15_9668.jpg', '/home/nano/Desktop/images/16062025/20/56/image_16062025_20_57_05_10695.jpg', '/home/nano/Desktop/images/16062025/20/56/image_16062025_20_56_54_9677.jpg', '/home/nano/Desktop/images/16062025/19/56/image_16062025_19_57_05_10651.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_45_9656.jpg
/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_24_9659.jpg
/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_15_9668.jpg
/home/nano/Desktop/images/16062025/20/56/image_16062025_20_57_05_10695.jpg
/home/nano/Desktop/images/16062025/20/56/image_16062025_20_56_54_9677.jpg
/home/nano/Desktop/images/16062025/19/56/image_16062025_19_57_05_10651.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366594244","1366594396","1366594369","1366594312","1366594295","1366594206"],"photo_ids_order":["1366594206","1366594244","1366594295","1366594312","1366594369","1366594396"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7978e87c04a7a71c8c6c6085866e18e9.jpg","text":"TemporaryFile(/tmp/multipartBody1149687846953898775asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100415949,"filename":"image_16062025_20_57_24_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c9da766d18e82b0a1fb759f41eb671bd.jpg","text":"TemporaryFile(/tmp/multipartBody5323108173025773459asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100415949,"filename":"image_16062025_19_57_05_10651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6c9e088de2251c463308369e19260197.jpg","text":"TemporaryFile(/tmp/multipartBody2289802293143376477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100415949,"filename":"image_16062025_20_56_54_9677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/410b0c7466ccc5fbf134cb6a0c448749.jpg","text":"TemporaryFile(/tmp/multipartBody3779998436998212645asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100415949,"filename":"image_16062025_20_57_05_10695.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e295c50e43f14ab03484b999a213f327.jpg","text":"TemporaryFile(/tmp/multipartBody583370251368236724asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100415949,"filename":"image_16062025_20_57_15_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e6ea7be9e32ac97a723c3b2fdbe420e4.jpg","text":"TemporaryFile(/tmp/multipartBody3890157285616590531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100415949,"filename":"image_16062025_20_57_45_9656.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366594295","file1":"1366594244","file0":"1366594206","file4":"1366594369","file5":"1366594396","file3":"1366594312"},"map_files_photo_id_array":[{"photo_id":"1366594396","filename":"file5"},{"photo_id":"1366594295","filename":"file2"},{"photo_id":"1366594369","filename":"file4"},{"photo_id":"1366594244","filename":"file1"},{"photo_id":"1366594206","filename":"file0"},{"photo_id":"1366594312","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366594244":["hashtag1","hashtag2"]},{"1366594396":["hashtag1","hashtag2"]},{"1366594369":["hashtag1","hashtag2"]},{"1366594312":["hashtag1","hashtag2"]},{"1366594295":["hashtag1","hashtag2"]},{"1366594206":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366594244, 1366594396, 1366594369, 1366594312, 1366594295, 1366594206)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 73.40221953392029 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:00:17.730504
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/00/image_16062025_21_00_45_9674.jpg', 2), ('/home/nano/Desktop/images/16062025/21/00/image_16062025_21_00_35_10684.jpg', 2), ('/home/nano/Desktop/images/16062025/21/00/image_16062025_21_00_25_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/21/00/image_16062025_21_00_15_9687.jpg', 2), ('/home/nano/Desktop/images/16062025/20/59/image_16062025_21_00_05_10671.jpg', 2), ('/home/nano/Desktop/images/16062025/20/59/image_16062025_20_59_55_9676.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/00/image_16062025_21_00_45_9674.jpg', '/home/nano/Desktop/images/16062025/21/00/image_16062025_21_00_35_10684.jpg', '/home/nano/Desktop/images/16062025/21/00/image_16062025_21_00_25_9658.jpg', '/home/nano/Desktop/images/16062025/21/00/image_16062025_21_00_15_9687.jpg', '/home/nano/Desktop/images/16062025/20/59/image_16062025_21_00_05_10671.jpg', '/home/nano/Desktop/images/16062025/20/59/image_16062025_20_59_55_9676.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/00/image_16062025_21_00_45_9674.jpg
/home/nano/Desktop/images/16062025/21/00/image_16062025_21_00_35_10684.jpg
/home/nano/Desktop/images/16062025/21/00/image_16062025_21_00_25_9658.jpg
/home/nano/Desktop/images/16062025/21/00/image_16062025_21_00_15_9687.jpg
/home/nano/Desktop/images/16062025/20/59/image_16062025_21_00_05_10671.jpg
/home/nano/Desktop/images/16062025/20/59/image_16062025_20_59_55_9676.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366594430","1366594412","1366594406","1366594409","1366594416","1366594404"],"photo_ids_order":["1366594404","1366594406","1366594409","1366594412","1366594416","1366594430"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d34c944838595ca752182a86595b07fc.jpg","text":"TemporaryFile(/tmp/multipartBody6068486689830205689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100479702,"filename":"image_16062025_20_59_55_9676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e1675765a85a0390fd7f2411e6a597e2.jpg","text":"TemporaryFile(/tmp/multipartBody2640418618785398769asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100479702,"filename":"image_16062025_21_00_15_9687.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fea832d8c14cdd0a76ad7f5d3b50e6b9.jpg","text":"TemporaryFile(/tmp/multipartBody2227161382598375208asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100479702,"filename":"image_16062025_21_00_35_10684.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/96345a27f7041e01abd0d8792e524a82.jpg","text":"TemporaryFile(/tmp/multipartBody6303296798440001293asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100479702,"filename":"image_16062025_21_00_25_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5855792cfc1329a6a9e97b9c635129fa.jpg","text":"TemporaryFile(/tmp/multipartBody4488159408539979279asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100479702,"filename":"image_16062025_21_00_05_10671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d5d9ca0d2f2696c8677914305df0f975.jpg","text":"TemporaryFile(/tmp/multipartBody3225306801819799477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100479702,"filename":"image_16062025_21_00_45_9674.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366594409","file1":"1366594406","file0":"1366594404","file4":"1366594416","file5":"1366594430","file3":"1366594412"},"map_files_photo_id_array":[{"photo_id":"1366594430","filename":"file5"},{"photo_id":"1366594409","filename":"file2"},{"photo_id":"1366594416","filename":"file4"},{"photo_id":"1366594406","filename":"file1"},{"photo_id":"1366594404","filename":"file0"},{"photo_id":"1366594412","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366594430":["hashtag1","hashtag2"]},{"1366594412":["hashtag1","hashtag2"]},{"1366594406":["hashtag1","hashtag2"]},{"1366594409":["hashtag1","hashtag2"]},{"1366594416":["hashtag1","hashtag2"]},{"1366594404":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366594430, 1366594412, 1366594406, 1366594409, 1366594416, 1366594404)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 53.742440700531006 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:01:16.803210
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/01/image_16062025_21_01_45_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/21/01/image_16062025_21_01_35_10667.jpg', 2), ('/home/nano/Desktop/images/16062025/21/01/image_16062025_21_01_25_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/21/01/image_16062025_21_01_15_9686.jpg', 2), ('/home/nano/Desktop/images/16062025/21/00/image_16062025_21_01_05_10685.jpg', 2), ('/home/nano/Desktop/images/16062025/21/00/image_16062025_21_00_55_9673.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/01/image_16062025_21_01_45_9671.jpg', '/home/nano/Desktop/images/16062025/21/01/image_16062025_21_01_35_10667.jpg', '/home/nano/Desktop/images/16062025/21/01/image_16062025_21_01_25_9655.jpg', '/home/nano/Desktop/images/16062025/21/01/image_16062025_21_01_15_9686.jpg', '/home/nano/Desktop/images/16062025/21/00/image_16062025_21_01_05_10685.jpg', '/home/nano/Desktop/images/16062025/21/00/image_16062025_21_00_55_9673.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/01/image_16062025_21_01_45_9671.jpg
/home/nano/Desktop/images/16062025/21/01/image_16062025_21_01_35_10667.jpg
/home/nano/Desktop/images/16062025/21/01/image_16062025_21_01_25_9655.jpg
/home/nano/Desktop/images/16062025/21/01/image_16062025_21_01_15_9686.jpg
/home/nano/Desktop/images/16062025/21/00/image_16062025_21_01_05_10685.jpg
/home/nano/Desktop/images/16062025/21/00/image_16062025_21_00_55_9673.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366594463","1366594442","1366594445","1366594439","1366594474","1366594479"],"photo_ids_order":["1366594439","1366594442","1366594445","1366594463","1366594474","1366594479"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8bd91f3cea7fd28cd4e769f859400ebd.jpg","text":"TemporaryFile(/tmp/multipartBody8120303917693622975asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100538790,"filename":"image_16062025_21_01_15_9686.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b81031c33ba7547a7b411e6975c1eabe.jpg","text":"TemporaryFile(/tmp/multipartBody3252331124820683652asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100538790,"filename":"image_16062025_21_01_35_10667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b86983244bee3ab41e7c02fd9ef70beb.jpg","text":"TemporaryFile(/tmp/multipartBody3979335112951996038asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100538790,"filename":"image_16062025_21_01_25_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/165bb24b9f40e66f21a1ffdcb4933dd0.jpg","text":"TemporaryFile(/tmp/multipartBody3514841664532776165asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100538790,"filename":"image_16062025_21_01_45_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/79d8d95588aa6c128ebe672d1d20bcf7.jpg","text":"TemporaryFile(/tmp/multipartBody624520273805402394asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100538790,"filename":"image_16062025_21_01_05_10685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/178508480b6e705f0d4d8e269f66b8f1.jpg","text":"TemporaryFile(/tmp/multipartBody5554748882912995503asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100538790,"filename":"image_16062025_21_00_55_9673.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366594445","file1":"1366594442","file0":"1366594439","file4":"1366594474","file5":"1366594479","file3":"1366594463"},"map_files_photo_id_array":[{"photo_id":"1366594479","filename":"file5"},{"photo_id":"1366594445","filename":"file2"},{"photo_id":"1366594474","filename":"file4"},{"photo_id":"1366594442","filename":"file1"},{"photo_id":"1366594439","filename":"file0"},{"photo_id":"1366594463","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366594463":["hashtag1","hashtag2"]},{"1366594442":["hashtag1","hashtag2"]},{"1366594445":["hashtag1","hashtag2"]},{"1366594439":["hashtag1","hashtag2"]},{"1366594474":["hashtag1","hashtag2"]},{"1366594479":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366594463, 1366594442, 1366594445, 1366594439, 1366594474, 1366594479)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.780468463897705 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:02:16.902297
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/02/image_16062025_21_02_45_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/21/02/image_16062025_21_02_35_10670.jpg', 2), ('/home/nano/Desktop/images/16062025/21/02/image_16062025_21_02_25_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/21/02/image_16062025_21_02_15_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/21/01/image_16062025_21_02_05_10689.jpg', 2), ('/home/nano/Desktop/images/16062025/21/01/image_16062025_21_01_55_9658.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/02/image_16062025_21_02_45_9660.jpg', '/home/nano/Desktop/images/16062025/21/02/image_16062025_21_02_35_10670.jpg', '/home/nano/Desktop/images/16062025/21/02/image_16062025_21_02_25_9659.jpg', '/home/nano/Desktop/images/16062025/21/02/image_16062025_21_02_15_9655.jpg', '/home/nano/Desktop/images/16062025/21/01/image_16062025_21_02_05_10689.jpg', '/home/nano/Desktop/images/16062025/21/01/image_16062025_21_01_55_9658.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/02/image_16062025_21_02_45_9660.jpg
/home/nano/Desktop/images/16062025/21/02/image_16062025_21_02_35_10670.jpg
/home/nano/Desktop/images/16062025/21/02/image_16062025_21_02_25_9659.jpg
/home/nano/Desktop/images/16062025/21/02/image_16062025_21_02_15_9655.jpg
/home/nano/Desktop/images/16062025/21/01/image_16062025_21_02_05_10689.jpg
/home/nano/Desktop/images/16062025/21/01/image_16062025_21_01_55_9658.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366594511","1366594576","1366594537","1366594516","1366594501","1366594521"],"photo_ids_order":["1366594501","1366594511","1366594516","1366594521","1366594537","1366594576"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ea083c2524f1598e6b82af16fe8e085f.jpg","text":"TemporaryFile(/tmp/multipartBody8745800781289055046asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100604596,"filename":"image_16062025_21_02_35_10670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2c67c91822b097e40f23c4f1d7f20386.jpg","text":"TemporaryFile(/tmp/multipartBody4437981541340907559asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100604596,"filename":"image_16062025_21_01_55_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9e208d4c0a389bef47cc532225efcfb6.jpg","text":"TemporaryFile(/tmp/multipartBody9174214216923332963asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100604596,"filename":"image_16062025_21_02_05_10689.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/29fb794499189f01c22d696ebd113a9b.jpg","text":"TemporaryFile(/tmp/multipartBody3184423277018764357asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100604596,"filename":"image_16062025_21_02_25_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5b024d01bf8426b2c67386b6e4084603.jpg","text":"TemporaryFile(/tmp/multipartBody2104638752152066373asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100604596,"filename":"image_16062025_21_02_45_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/24a524815de710a521ee39ed351088c9.jpg","text":"TemporaryFile(/tmp/multipartBody2644234328451243869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100604596,"filename":"image_16062025_21_02_15_9655.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366594516","file1":"1366594511","file0":"1366594501","file4":"1366594537","file5":"1366594576","file3":"1366594521"},"map_files_photo_id_array":[{"photo_id":"1366594576","filename":"file5"},{"photo_id":"1366594516","filename":"file2"},{"photo_id":"1366594537","filename":"file4"},{"photo_id":"1366594511","filename":"file1"},{"photo_id":"1366594501","filename":"file0"},{"photo_id":"1366594521","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366594511":["hashtag1","hashtag2"]},{"1366594576":["hashtag1","hashtag2"]},{"1366594537":["hashtag1","hashtag2"]},{"1366594516":["hashtag1","hashtag2"]},{"1366594501":["hashtag1","hashtag2"]},{"1366594521":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366594511, 1366594576, 1366594537, 1366594516, 1366594501, 1366594521)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 53.531493186950684 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:03:17.028653
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/03/image_16062025_21_03_45_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/21/03/image_16062025_21_03_35_10669.jpg', 2), ('/home/nano/Desktop/images/16062025/21/03/image_16062025_21_03_25_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/21/03/image_16062025_21_03_15_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/21/02/image_16062025_21_03_05_10671.jpg', 2), ('/home/nano/Desktop/images/16062025/21/02/image_16062025_21_02_55_9660.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/03/image_16062025_21_03_45_9655.jpg', '/home/nano/Desktop/images/16062025/21/03/image_16062025_21_03_35_10669.jpg', '/home/nano/Desktop/images/16062025/21/03/image_16062025_21_03_25_9655.jpg', '/home/nano/Desktop/images/16062025/21/03/image_16062025_21_03_15_9657.jpg', '/home/nano/Desktop/images/16062025/21/02/image_16062025_21_03_05_10671.jpg', '/home/nano/Desktop/images/16062025/21/02/image_16062025_21_02_55_9660.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/03/image_16062025_21_03_45_9655.jpg
/home/nano/Desktop/images/16062025/21/03/image_16062025_21_03_35_10669.jpg
/home/nano/Desktop/images/16062025/21/03/image_16062025_21_03_25_9655.jpg
/home/nano/Desktop/images/16062025/21/03/image_16062025_21_03_15_9657.jpg
/home/nano/Desktop/images/16062025/21/02/image_16062025_21_03_05_10671.jpg
/home/nano/Desktop/images/16062025/21/02/image_16062025_21_02_55_9660.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366594870","1366594945","1366594735","1366594833","1366594988","1366594790"],"photo_ids_order":["1366594735","1366594790","1366594833","1366594870","1366594945","1366594988"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/501d1d0daebe129ff3fb5127ac3537ab.jpg","text":"TemporaryFile(/tmp/multipartBody6548560946726467206asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100659709,"filename":"image_16062025_21_03_15_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7b33c6ae02406854895e4438802656e0.jpg","text":"TemporaryFile(/tmp/multipartBody303285017311449021asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100659709,"filename":"image_16062025_21_03_05_10671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/214f5d182af62704de2320c2b9c873f3.jpg","text":"TemporaryFile(/tmp/multipartBody8572085536128817655asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100659709,"filename":"image_16062025_21_03_45_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ff05902193739b66c4e27eeece1dc019.jpg","text":"TemporaryFile(/tmp/multipartBody2276298552385230231asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100659709,"filename":"image_16062025_21_03_25_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f0910d201def2d86d5c4e101e59e6bec.jpg","text":"TemporaryFile(/tmp/multipartBody3219027067091079590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100659709,"filename":"image_16062025_21_02_55_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e72edb4e1bacc2567a711c5fd59c4e2e.jpg","text":"TemporaryFile(/tmp/multipartBody3085635542037232358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100659709,"filename":"image_16062025_21_03_35_10669.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366594833","file1":"1366594790","file0":"1366594735","file4":"1366594945","file5":"1366594988","file3":"1366594870"},"map_files_photo_id_array":[{"photo_id":"1366594988","filename":"file5"},{"photo_id":"1366594833","filename":"file2"},{"photo_id":"1366594945","filename":"file4"},{"photo_id":"1366594790","filename":"file1"},{"photo_id":"1366594735","filename":"file0"},{"photo_id":"1366594870","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366594870":["hashtag1","hashtag2"]},{"1366594945":["hashtag1","hashtag2"]},{"1366594735":["hashtag1","hashtag2"]},{"1366594833":["hashtag1","hashtag2"]},{"1366594988":["hashtag1","hashtag2"]},{"1366594790":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366594870, 1366594945, 1366594735, 1366594833, 1366594988, 1366594790)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 49.80958676338196 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:04:17.155239
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/04/image_16062025_21_04_45_9661.jpg', 2), ('/home/nano/Desktop/images/16062025/21/04/image_16062025_21_04_35_10687.jpg', 2), ('/home/nano/Desktop/images/16062025/21/04/image_16062025_21_04_25_9675.jpg', 2), ('/home/nano/Desktop/images/16062025/21/04/image_16062025_21_04_15_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/21/03/image_16062025_21_04_05_10685.jpg', 2), ('/home/nano/Desktop/images/16062025/21/03/image_16062025_21_03_55_9656.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/04/image_16062025_21_04_45_9661.jpg', '/home/nano/Desktop/images/16062025/21/04/image_16062025_21_04_35_10687.jpg', '/home/nano/Desktop/images/16062025/21/04/image_16062025_21_04_25_9675.jpg', '/home/nano/Desktop/images/16062025/21/04/image_16062025_21_04_15_9657.jpg', '/home/nano/Desktop/images/16062025/21/03/image_16062025_21_04_05_10685.jpg', '/home/nano/Desktop/images/16062025/21/03/image_16062025_21_03_55_9656.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/04/image_16062025_21_04_45_9661.jpg
/home/nano/Desktop/images/16062025/21/04/image_16062025_21_04_35_10687.jpg
/home/nano/Desktop/images/16062025/21/04/image_16062025_21_04_25_9675.jpg
/home/nano/Desktop/images/16062025/21/04/image_16062025_21_04_15_9657.jpg
/home/nano/Desktop/images/16062025/21/03/image_16062025_21_04_05_10685.jpg
/home/nano/Desktop/images/16062025/21/03/image_16062025_21_03_55_9656.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366595161","1366595223","1366595226","1366595211","1366595228","1366595219"],"photo_ids_order":["1366595161","1366595211","1366595219","1366595223","1366595226","1366595228"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/be2863d0d06c78d83e319149e6a730d3.jpg","text":"TemporaryFile(/tmp/multipartBody1421575656876566482asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100719797,"filename":"image_16062025_21_04_45_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/779233a160a29b34ef835a091fec17ca.jpg","text":"TemporaryFile(/tmp/multipartBody8733371990395100480asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100719797,"filename":"image_16062025_21_04_15_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a220f84ea2d43ebd1b179c3a71251cc8.jpg","text":"TemporaryFile(/tmp/multipartBody8631446283756233256asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100719797,"filename":"image_16062025_21_04_05_10685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f5eada9d52aff5daef0826bf1c38da95.jpg","text":"TemporaryFile(/tmp/multipartBody2619728845792810872asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100719797,"filename":"image_16062025_21_04_35_10687.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/694ae25aa87c31f0e6a56e4497b3c9ce.jpg","text":"TemporaryFile(/tmp/multipartBody5830827278799554431asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100719797,"filename":"image_16062025_21_03_55_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/acbab3911ca7d3ea1c5c717c27a4c4eb.jpg","text":"TemporaryFile(/tmp/multipartBody7089474397951069222asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100719797,"filename":"image_16062025_21_04_25_9675.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366595219","file1":"1366595211","file0":"1366595161","file4":"1366595226","file5":"1366595228","file3":"1366595223"},"map_files_photo_id_array":[{"photo_id":"1366595228","filename":"file5"},{"photo_id":"1366595219","filename":"file2"},{"photo_id":"1366595226","filename":"file4"},{"photo_id":"1366595211","filename":"file1"},{"photo_id":"1366595161","filename":"file0"},{"photo_id":"1366595223","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366595161":["hashtag1","hashtag2"]},{"1366595223":["hashtag1","hashtag2"]},{"1366595226":["hashtag1","hashtag2"]},{"1366595211":["hashtag1","hashtag2"]},{"1366595228":["hashtag1","hashtag2"]},{"1366595219":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366595161, 1366595223, 1366595226, 1366595211, 1366595228, 1366595219)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.40612030029297 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:05:02.911315
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/20/59/image_16062025_20_59_45_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/20/59/image_16062025_20_59_35_10668.jpg', 2), ('/home/nano/Desktop/images/16062025/20/58/image_16062025_20_59_05_10670.jpg', 2), ('/home/nano/Desktop/images/16062025/20/58/image_16062025_20_58_55_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/20/58/image_16062025_20_58_45_9665.jpg', 2), ('/home/nano/Desktop/images/16062025/20/58/image_16062025_20_58_35_10692.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/20/59/image_16062025_20_59_45_9667.jpg', '/home/nano/Desktop/images/16062025/20/59/image_16062025_20_59_35_10668.jpg', '/home/nano/Desktop/images/16062025/20/58/image_16062025_20_59_05_10670.jpg', '/home/nano/Desktop/images/16062025/20/58/image_16062025_20_58_55_9659.jpg', '/home/nano/Desktop/images/16062025/20/58/image_16062025_20_58_45_9665.jpg', '/home/nano/Desktop/images/16062025/20/58/image_16062025_20_58_35_10692.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/20/59/image_16062025_20_59_45_9667.jpg
/home/nano/Desktop/images/16062025/20/59/image_16062025_20_59_35_10668.jpg
/home/nano/Desktop/images/16062025/20/58/image_16062025_20_59_05_10670.jpg
/home/nano/Desktop/images/16062025/20/58/image_16062025_20_58_55_9659.jpg
/home/nano/Desktop/images/16062025/20/58/image_16062025_20_58_45_9665.jpg
/home/nano/Desktop/images/16062025/20/58/image_16062025_20_58_35_10692.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366595398","1366595440","1366595337","1366595378","1366595444","1366595420"],"photo_ids_order":["1366595337","1366595378","1366595398","1366595420","1366595440","1366595444"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1714a6e9df947eca7443d57be615106e.jpg","text":"TemporaryFile(/tmp/multipartBody5961754376773918388asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100766153,"filename":"image_16062025_20_59_05_10670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/eaae75a6afc6ffe54d1b402f13aad886.jpg","text":"TemporaryFile(/tmp/multipartBody6352937592261716390asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100766153,"filename":"image_16062025_20_58_45_9665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b4d6e5680c9f9696da100781308e2012.jpg","text":"TemporaryFile(/tmp/multipartBody6372518774745070464asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100766153,"filename":"image_16062025_20_59_45_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/003f318b415c292064e0041eecffc63a.jpg","text":"TemporaryFile(/tmp/multipartBody4108830740414345483asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100766153,"filename":"image_16062025_20_59_35_10668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e47497857067990407b5e06cd3943731.jpg","text":"TemporaryFile(/tmp/multipartBody405814310708107596asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100766153,"filename":"image_16062025_20_58_35_10692.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/886a013c30540d9f6827b07b3de573be.jpg","text":"TemporaryFile(/tmp/multipartBody6936676808515638006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100766153,"filename":"image_16062025_20_58_55_9659.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366595398","file1":"1366595378","file0":"1366595337","file4":"1366595440","file5":"1366595444","file3":"1366595420"},"map_files_photo_id_array":[{"photo_id":"1366595444","filename":"file5"},{"photo_id":"1366595398","filename":"file2"},{"photo_id":"1366595440","filename":"file4"},{"photo_id":"1366595378","filename":"file1"},{"photo_id":"1366595337","filename":"file0"},{"photo_id":"1366595420","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366595398":["hashtag1","hashtag2"]},{"1366595440":["hashtag1","hashtag2"]},{"1366595337":["hashtag1","hashtag2"]},{"1366595378":["hashtag1","hashtag2"]},{"1366595444":["hashtag1","hashtag2"]},{"1366595420":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366595398, 1366595440, 1366595337, 1366595378, 1366595444, 1366595420)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 56.38807821273804 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:06:02.823904
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/05/image_16062025_21_05_35_10665.jpg', 2), ('/home/nano/Desktop/images/16062025/21/05/image_16062025_21_05_25_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/21/05/image_16062025_21_05_15_9662.jpg', 2), ('/home/nano/Desktop/images/16062025/21/04/image_16062025_21_05_05_10681.jpg', 2), ('/home/nano/Desktop/images/16062025/21/04/image_16062025_21_04_55_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/20/58/image_16062025_20_58_25_9659.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/05/image_16062025_21_05_35_10665.jpg', '/home/nano/Desktop/images/16062025/21/05/image_16062025_21_05_25_9657.jpg', '/home/nano/Desktop/images/16062025/21/05/image_16062025_21_05_15_9662.jpg', '/home/nano/Desktop/images/16062025/21/04/image_16062025_21_05_05_10681.jpg', '/home/nano/Desktop/images/16062025/21/04/image_16062025_21_04_55_9659.jpg', '/home/nano/Desktop/images/16062025/20/58/image_16062025_20_58_25_9659.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/05/image_16062025_21_05_35_10665.jpg
/home/nano/Desktop/images/16062025/21/05/image_16062025_21_05_25_9657.jpg
/home/nano/Desktop/images/16062025/21/05/image_16062025_21_05_15_9662.jpg
/home/nano/Desktop/images/16062025/21/04/image_16062025_21_05_05_10681.jpg
/home/nano/Desktop/images/16062025/21/04/image_16062025_21_04_55_9659.jpg
/home/nano/Desktop/images/16062025/20/58/image_16062025_20_58_25_9659.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366595461","1366595458","1366595527","1366595574","1366595475","1366595453"],"photo_ids_order":["1366595453","1366595458","1366595461","1366595475","1366595527","1366595574"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1b33d42b038c14b687f41b20159db758.jpg","text":"TemporaryFile(/tmp/multipartBody4674322866013859748asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100825966,"filename":"image_16062025_21_05_15_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9cfae3f173bcfda308fef06504c844bd.jpg","text":"TemporaryFile(/tmp/multipartBody8583104664579690422asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100825966,"filename":"image_16062025_21_05_25_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fa27e96370c2fbed0464e4e0007665b2.jpg","text":"TemporaryFile(/tmp/multipartBody5542773795696900823asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100825966,"filename":"image_16062025_21_04_55_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/280f2316adc8311bd2a6000ba8b2f904.jpg","text":"TemporaryFile(/tmp/multipartBody3858068006535824058asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100825966,"filename":"image_16062025_20_58_25_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f7fe3644429f5a1669867e3b548d2077.jpg","text":"TemporaryFile(/tmp/multipartBody6194227021697748358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100825966,"filename":"image_16062025_21_05_05_10681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dd52a2a8f397f7830589cdcea600ccf6.jpg","text":"TemporaryFile(/tmp/multipartBody2615407807879594607asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100825966,"filename":"image_16062025_21_05_35_10665.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366595461","file1":"1366595458","file0":"1366595453","file4":"1366595527","file5":"1366595574","file3":"1366595475"},"map_files_photo_id_array":[{"photo_id":"1366595574","filename":"file5"},{"photo_id":"1366595461","filename":"file2"},{"photo_id":"1366595527","filename":"file4"},{"photo_id":"1366595458","filename":"file1"},{"photo_id":"1366595453","filename":"file0"},{"photo_id":"1366595475","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366595461":["hashtag1","hashtag2"]},{"1366595458":["hashtag1","hashtag2"]},{"1366595527":["hashtag1","hashtag2"]},{"1366595574":["hashtag1","hashtag2"]},{"1366595475":["hashtag1","hashtag2"]},{"1366595453":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366595461, 1366595458, 1366595527, 1366595574, 1366595475, 1366595453)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 56.963417291641235 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:07:03.108135
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/06/image_16062025_21_06_35_10686.jpg', 2), ('/home/nano/Desktop/images/16062025/21/06/image_16062025_21_06_25_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/21/06/image_16062025_21_06_15_9675.jpg', 2), ('/home/nano/Desktop/images/16062025/21/05/image_16062025_21_06_05_10667.jpg', 2), ('/home/nano/Desktop/images/16062025/21/05/image_16062025_21_05_45_9656.jpg', 2), ('/home/nano/Desktop/images/16062025/20/58/image_16062025_20_58_15_9693.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/06/image_16062025_21_06_35_10686.jpg', '/home/nano/Desktop/images/16062025/21/06/image_16062025_21_06_25_9658.jpg', '/home/nano/Desktop/images/16062025/21/06/image_16062025_21_06_15_9675.jpg', '/home/nano/Desktop/images/16062025/21/05/image_16062025_21_06_05_10667.jpg', '/home/nano/Desktop/images/16062025/21/05/image_16062025_21_05_45_9656.jpg', '/home/nano/Desktop/images/16062025/20/58/image_16062025_20_58_15_9693.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/06/image_16062025_21_06_35_10686.jpg
/home/nano/Desktop/images/16062025/21/06/image_16062025_21_06_25_9658.jpg
/home/nano/Desktop/images/16062025/21/06/image_16062025_21_06_15_9675.jpg
/home/nano/Desktop/images/16062025/21/05/image_16062025_21_06_05_10667.jpg
/home/nano/Desktop/images/16062025/21/05/image_16062025_21_05_45_9656.jpg
/home/nano/Desktop/images/16062025/20/58/image_16062025_20_58_15_9693.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366595815","1366595730","1366595835","1366595888","1366595774","1366595813"],"photo_ids_order":["1366595730","1366595774","1366595813","1366595815","1366595835","1366595888"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cc38950211de27fb8fcf4563cecd59b1.jpg","text":"TemporaryFile(/tmp/multipartBody2449537368197273432asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100888489,"filename":"image_16062025_21_06_05_10667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/192baf59ee64ca8fae607a81470e952e.jpg","text":"TemporaryFile(/tmp/multipartBody8018372098585223133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100888489,"filename":"image_16062025_21_06_35_10686.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9ffb114240e8dff3c5acd08b2674ac7b.jpg","text":"TemporaryFile(/tmp/multipartBody1747920454005130555asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100888489,"filename":"image_16062025_21_05_45_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e32dd2b858f98b7ed8d6a78487987169.jpg","text":"TemporaryFile(/tmp/multipartBody780942072884608414asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100888489,"filename":"image_16062025_20_58_15_9693.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0051cfb15dfd11d79e6f185ac2a86e66.jpg","text":"TemporaryFile(/tmp/multipartBody2615798613533396523asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100888489,"filename":"image_16062025_21_06_25_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d8b577d5042a5ba555048f6110c13145.jpg","text":"TemporaryFile(/tmp/multipartBody6196299170481225876asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100888489,"filename":"image_16062025_21_06_15_9675.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366595813","file1":"1366595774","file0":"1366595730","file4":"1366595835","file5":"1366595888","file3":"1366595815"},"map_files_photo_id_array":[{"photo_id":"1366595888","filename":"file5"},{"photo_id":"1366595813","filename":"file2"},{"photo_id":"1366595835","filename":"file4"},{"photo_id":"1366595774","filename":"file1"},{"photo_id":"1366595730","filename":"file0"},{"photo_id":"1366595815","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366595815":["hashtag1","hashtag2"]},{"1366595730":["hashtag1","hashtag2"]},{"1366595835":["hashtag1","hashtag2"]},{"1366595888":["hashtag1","hashtag2"]},{"1366595774":["hashtag1","hashtag2"]},{"1366595813":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366595815, 1366595730, 1366595835, 1366595888, 1366595774, 1366595813)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 54.917811155319214 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:08:02.993935
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/07/image_16062025_21_07_45_9676.jpg', 2), ('/home/nano/Desktop/images/16062025/21/07/image_16062025_21_07_35_10681.jpg', 2), ('/home/nano/Desktop/images/16062025/21/07/image_16062025_21_07_25_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/21/07/image_16062025_21_07_15_9661.jpg', 2), ('/home/nano/Desktop/images/16062025/21/06/image_16062025_21_07_05_10682.jpg', 2), ('/home/nano/Desktop/images/16062025/21/06/image_16062025_21_06_45_9676.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/07/image_16062025_21_07_45_9676.jpg', '/home/nano/Desktop/images/16062025/21/07/image_16062025_21_07_35_10681.jpg', '/home/nano/Desktop/images/16062025/21/07/image_16062025_21_07_25_9654.jpg', '/home/nano/Desktop/images/16062025/21/07/image_16062025_21_07_15_9661.jpg', '/home/nano/Desktop/images/16062025/21/06/image_16062025_21_07_05_10682.jpg', '/home/nano/Desktop/images/16062025/21/06/image_16062025_21_06_45_9676.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/07/image_16062025_21_07_45_9676.jpg
/home/nano/Desktop/images/16062025/21/07/image_16062025_21_07_35_10681.jpg
/home/nano/Desktop/images/16062025/21/07/image_16062025_21_07_25_9654.jpg
/home/nano/Desktop/images/16062025/21/07/image_16062025_21_07_15_9661.jpg
/home/nano/Desktop/images/16062025/21/06/image_16062025_21_07_05_10682.jpg
/home/nano/Desktop/images/16062025/21/06/image_16062025_21_06_45_9676.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366596001","1366595988","1366596003","1366595997","1366595992","1366595974"],"photo_ids_order":["1366595974","1366595988","1366595992","1366595997","1366596001","1366596003"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ad47609e5f27910f34f68709cfe64cd4.jpg","text":"TemporaryFile(/tmp/multipartBody8273690534680107365asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100945279,"filename":"image_16062025_21_07_05_10682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6032c1e098342d0fdab95fd3aa2cf666.jpg","text":"TemporaryFile(/tmp/multipartBody4058636170625528026asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100945279,"filename":"image_16062025_21_07_35_10681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/62cd757061820268b964654b900b2d8d.jpg","text":"TemporaryFile(/tmp/multipartBody926354579975757744asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100945279,"filename":"image_16062025_21_06_45_9676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/766226838cb8d698c1721a892263c244.jpg","text":"TemporaryFile(/tmp/multipartBody3823048846951271763asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100945279,"filename":"image_16062025_21_07_15_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0452e6050c2b0effc28cf3d7f1279685.jpg","text":"TemporaryFile(/tmp/multipartBody1226953692548826077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100945279,"filename":"image_16062025_21_07_25_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/99fe55ec2cb3a4923d0fd9aa4a549e42.jpg","text":"TemporaryFile(/tmp/multipartBody7359277356085780292asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100945279,"filename":"image_16062025_21_07_45_9676.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366595992","file1":"1366595988","file0":"1366595974","file4":"1366596001","file5":"1366596003","file3":"1366595997"},"map_files_photo_id_array":[{"photo_id":"1366596003","filename":"file5"},{"photo_id":"1366595992","filename":"file2"},{"photo_id":"1366596001","filename":"file4"},{"photo_id":"1366595988","filename":"file1"},{"photo_id":"1366595974","filename":"file0"},{"photo_id":"1366595997","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366596001":["hashtag1","hashtag2"]},{"1366595988":["hashtag1","hashtag2"]},{"1366596003":["hashtag1","hashtag2"]},{"1366595997":["hashtag1","hashtag2"]},{"1366595992":["hashtag1","hashtag2"]},{"1366595974":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366596001, 1366595988, 1366596003, 1366595997, 1366595992, 1366595974)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.82949876785278 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:08:47.567923
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/08/image_16062025_21_08_35_10672.jpg', 2), ('/home/nano/Desktop/images/16062025/21/08/image_16062025_21_08_25_9665.jpg', 2), ('/home/nano/Desktop/images/16062025/21/08/image_16062025_21_08_15_9687.jpg', 2), ('/home/nano/Desktop/images/16062025/21/07/image_16062025_21_08_05_10701.jpg', 2), ('/home/nano/Desktop/images/16062025/21/07/image_16062025_21_07_55_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_54_9656.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/08/image_16062025_21_08_35_10672.jpg', '/home/nano/Desktop/images/16062025/21/08/image_16062025_21_08_25_9665.jpg', '/home/nano/Desktop/images/16062025/21/08/image_16062025_21_08_15_9687.jpg', '/home/nano/Desktop/images/16062025/21/07/image_16062025_21_08_05_10701.jpg', '/home/nano/Desktop/images/16062025/21/07/image_16062025_21_07_55_9659.jpg', '/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_54_9656.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/08/image_16062025_21_08_35_10672.jpg
/home/nano/Desktop/images/16062025/21/08/image_16062025_21_08_25_9665.jpg
/home/nano/Desktop/images/16062025/21/08/image_16062025_21_08_15_9687.jpg
/home/nano/Desktop/images/16062025/21/07/image_16062025_21_08_05_10701.jpg
/home/nano/Desktop/images/16062025/21/07/image_16062025_21_07_55_9659.jpg
/home/nano/Desktop/images/16062025/20/57/image_16062025_20_57_54_9656.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366596034","1366596022","1366596039","1366596030","1366596018","1366596026"],"photo_ids_order":["1366596018","1366596022","1366596026","1366596030","1366596034","1366596039"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/13e1aa02618a00228faf75e3d0d49aad.jpg","text":"TemporaryFile(/tmp/multipartBody5362027713309752353asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100989898,"filename":"image_16062025_21_07_55_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/933a49a084e3c6df3aaee5d3008ef1f8.jpg","text":"TemporaryFile(/tmp/multipartBody7636021082482036158asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100989898,"filename":"image_16062025_21_08_25_9665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/31774b5dcb5f6207b6aaf7780c48fbba.jpg","text":"TemporaryFile(/tmp/multipartBody8893003925447524969asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100989898,"filename":"image_16062025_20_57_54_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0fbc7a05292b0cdb06c49bc57d77f767.jpg","text":"TemporaryFile(/tmp/multipartBody3632027842721229059asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100989898,"filename":"image_16062025_21_08_05_10701.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/13c006a2cc07f34fd17fc91d24d348cb.jpg","text":"TemporaryFile(/tmp/multipartBody4428695815823065720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100989898,"filename":"image_16062025_21_08_35_10672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/20e1170ed025ea75c38ae0ea5105f2d2.jpg","text":"TemporaryFile(/tmp/multipartBody3924576557724184097asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750100989898,"filename":"image_16062025_21_08_15_9687.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366596026","file1":"1366596022","file0":"1366596018","file4":"1366596034","file5":"1366596039","file3":"1366596030"},"map_files_photo_id_array":[{"photo_id":"1366596039","filename":"file5"},{"photo_id":"1366596026","filename":"file2"},{"photo_id":"1366596034","filename":"file4"},{"photo_id":"1366596022","filename":"file1"},{"photo_id":"1366596018","filename":"file0"},{"photo_id":"1366596030","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366596034":["hashtag1","hashtag2"]},{"1366596022":["hashtag1","hashtag2"]},{"1366596039":["hashtag1","hashtag2"]},{"1366596030":["hashtag1","hashtag2"]},{"1366596018":["hashtag1","hashtag2"]},{"1366596026":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366596034, 1366596022, 1366596039, 1366596030, 1366596018, 1366596026)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.048858642578125 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:09:47.667823
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/09/image_16062025_21_09_45_9656.jpg', 2), ('/home/nano/Desktop/images/16062025/21/09/image_16062025_21_09_35_10665.jpg', 2), ('/home/nano/Desktop/images/16062025/21/09/image_16062025_21_09_25_9662.jpg', 2), ('/home/nano/Desktop/images/16062025/21/09/image_16062025_21_09_15_9680.jpg', 2), ('/home/nano/Desktop/images/16062025/21/08/image_16062025_21_09_05_10678.jpg', 2), ('/home/nano/Desktop/images/16062025/21/08/image_16062025_21_08_45_9660.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/09/image_16062025_21_09_45_9656.jpg', '/home/nano/Desktop/images/16062025/21/09/image_16062025_21_09_35_10665.jpg', '/home/nano/Desktop/images/16062025/21/09/image_16062025_21_09_25_9662.jpg', '/home/nano/Desktop/images/16062025/21/09/image_16062025_21_09_15_9680.jpg', '/home/nano/Desktop/images/16062025/21/08/image_16062025_21_09_05_10678.jpg', '/home/nano/Desktop/images/16062025/21/08/image_16062025_21_08_45_9660.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/09/image_16062025_21_09_45_9656.jpg
/home/nano/Desktop/images/16062025/21/09/image_16062025_21_09_35_10665.jpg
/home/nano/Desktop/images/16062025/21/09/image_16062025_21_09_25_9662.jpg
/home/nano/Desktop/images/16062025/21/09/image_16062025_21_09_15_9680.jpg
/home/nano/Desktop/images/16062025/21/08/image_16062025_21_09_05_10678.jpg
/home/nano/Desktop/images/16062025/21/08/image_16062025_21_08_45_9660.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366596066","1366596078","1366596071","1366596088","1366596082","1366596085"],"photo_ids_order":["1366596066","1366596071","1366596078","1366596082","1366596085","1366596088"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/096bda678c4a5b9fc2f6dcd60884c58d.jpg","text":"TemporaryFile(/tmp/multipartBody8083469283126613124asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101050592,"filename":"image_16062025_21_09_45_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3a34920ba0f0bbd9d92c2b76568f8a35.jpg","text":"TemporaryFile(/tmp/multipartBody3088734392459780740asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101050592,"filename":"image_16062025_21_09_25_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/999fb7c57444fe55bdec65d3425a73f7.jpg","text":"TemporaryFile(/tmp/multipartBody1470466948480935262asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101050592,"filename":"image_16062025_21_09_35_10665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/da7b6e41b25396642035dc1074e886f7.jpg","text":"TemporaryFile(/tmp/multipartBody8235610538124013011asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101050592,"filename":"image_16062025_21_08_45_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/576300b6f4811edbd80fcc49d3188226.jpg","text":"TemporaryFile(/tmp/multipartBody8212143440915659355asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101050592,"filename":"image_16062025_21_09_15_9680.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7ad508294e8a8fdb3ef7899794a6087f.jpg","text":"TemporaryFile(/tmp/multipartBody1364306902831259287asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101050592,"filename":"image_16062025_21_09_05_10678.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366596078","file1":"1366596071","file0":"1366596066","file4":"1366596085","file5":"1366596088","file3":"1366596082"},"map_files_photo_id_array":[{"photo_id":"1366596088","filename":"file5"},{"photo_id":"1366596078","filename":"file2"},{"photo_id":"1366596085","filename":"file4"},{"photo_id":"1366596071","filename":"file1"},{"photo_id":"1366596066","filename":"file0"},{"photo_id":"1366596082","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366596066":["hashtag1","hashtag2"]},{"1366596078":["hashtag1","hashtag2"]},{"1366596071":["hashtag1","hashtag2"]},{"1366596088":["hashtag1","hashtag2"]},{"1366596082":["hashtag1","hashtag2"]},{"1366596085":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366596066, 1366596078, 1366596071, 1366596088, 1366596082, 1366596085)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 49.37373661994934 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:10:46.751129
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/10/image_16062025_21_10_45_9661.jpg', 2), ('/home/nano/Desktop/images/16062025/21/10/image_16062025_21_10_35_10672.jpg', 2), ('/home/nano/Desktop/images/16062025/21/10/image_16062025_21_10_25_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/21/10/image_16062025_21_10_15_9680.jpg', 2), ('/home/nano/Desktop/images/16062025/21/09/image_16062025_21_09_55_9672.jpg', 2), ('/home/nano/Desktop/images/16062025/19/56/image_16062025_19_56_55_9630.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/10/image_16062025_21_10_45_9661.jpg', '/home/nano/Desktop/images/16062025/21/10/image_16062025_21_10_35_10672.jpg', '/home/nano/Desktop/images/16062025/21/10/image_16062025_21_10_25_9660.jpg', '/home/nano/Desktop/images/16062025/21/10/image_16062025_21_10_15_9680.jpg', '/home/nano/Desktop/images/16062025/21/09/image_16062025_21_09_55_9672.jpg', '/home/nano/Desktop/images/16062025/19/56/image_16062025_19_56_55_9630.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/10/image_16062025_21_10_45_9661.jpg
/home/nano/Desktop/images/16062025/21/10/image_16062025_21_10_35_10672.jpg
/home/nano/Desktop/images/16062025/21/10/image_16062025_21_10_25_9660.jpg
/home/nano/Desktop/images/16062025/21/10/image_16062025_21_10_15_9680.jpg
/home/nano/Desktop/images/16062025/21/09/image_16062025_21_09_55_9672.jpg
/home/nano/Desktop/images/16062025/19/56/image_16062025_19_56_55_9630.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366596138","1366596111","1366596131","1366596116","1366596125","1366596104"],"photo_ids_order":["1366596104","1366596111","1366596116","1366596125","1366596131","1366596138"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/afe41d838f514aba76a45f21ffa1e7e4.jpg","text":"TemporaryFile(/tmp/multipartBody9024866154668458174asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101111015,"filename":"image_16062025_19_56_55_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/71d5467eae55bf8eea95711d07ec7f2c.jpg","text":"TemporaryFile(/tmp/multipartBody5038028600329938797asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101111015,"filename":"image_16062025_21_10_35_10672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7f088ab81f30c856560b678115a10e80.jpg","text":"TemporaryFile(/tmp/multipartBody2934006173701706298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101111015,"filename":"image_16062025_21_09_55_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/95f055a695e40b619cd1c3e7937a6c9b.jpg","text":"TemporaryFile(/tmp/multipartBody2283196356629679316asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101111015,"filename":"image_16062025_21_10_25_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/963ec71e7ac996fe5ca4541fab1b8940.jpg","text":"TemporaryFile(/tmp/multipartBody6957279799786054732asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101111015,"filename":"image_16062025_21_10_15_9680.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/66f0cf2ffa8cbdd57162528dfe995da4.jpg","text":"TemporaryFile(/tmp/multipartBody8713111972709724229asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101111015,"filename":"image_16062025_21_10_45_9661.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366596116","file1":"1366596111","file0":"1366596104","file4":"1366596131","file5":"1366596138","file3":"1366596125"},"map_files_photo_id_array":[{"photo_id":"1366596138","filename":"file5"},{"photo_id":"1366596116","filename":"file2"},{"photo_id":"1366596131","filename":"file4"},{"photo_id":"1366596111","filename":"file1"},{"photo_id":"1366596104","filename":"file0"},{"photo_id":"1366596125","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366596138":["hashtag1","hashtag2"]},{"1366596111":["hashtag1","hashtag2"]},{"1366596131":["hashtag1","hashtag2"]},{"1366596116":["hashtag1","hashtag2"]},{"1366596125":["hashtag1","hashtag2"]},{"1366596104":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366596138, 1366596111, 1366596131, 1366596116, 1366596125, 1366596104)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 57.22134208679199 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:11:46.877164
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/11/image_16062025_21_11_25_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/21/11/image_16062025_21_11_15_9662.jpg', 2), ('/home/nano/Desktop/images/16062025/21/10/image_16062025_21_11_05_10682.jpg', 2), ('/home/nano/Desktop/images/16062025/21/10/image_16062025_21_10_55_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/19/49/image_16062025_19_49_45_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/19/49/image_16062025_19_49_35_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/11/image_16062025_21_11_25_9658.jpg', '/home/nano/Desktop/images/16062025/21/11/image_16062025_21_11_15_9662.jpg', '/home/nano/Desktop/images/16062025/21/10/image_16062025_21_11_05_10682.jpg', '/home/nano/Desktop/images/16062025/21/10/image_16062025_21_10_55_9660.jpg', '/home/nano/Desktop/images/16062025/19/49/image_16062025_19_49_45_10618.jpg', '/home/nano/Desktop/images/16062025/19/49/image_16062025_19_49_35_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/11/image_16062025_21_11_25_9658.jpg
/home/nano/Desktop/images/16062025/21/11/image_16062025_21_11_15_9662.jpg
/home/nano/Desktop/images/16062025/21/10/image_16062025_21_11_05_10682.jpg
/home/nano/Desktop/images/16062025/21/10/image_16062025_21_10_55_9660.jpg
/home/nano/Desktop/images/16062025/19/49/image_16062025_19_49_45_10618.jpg
/home/nano/Desktop/images/16062025/19/49/image_16062025_19_49_35_9612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366596177","1366596156","1366596159","1366596150","1366596164","1366596173"],"photo_ids_order":["1366596150","1366596156","1366596159","1366596164","1366596173","1366596177"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3e537cc6a54f03add7973264697a9a1b.jpg","text":"TemporaryFile(/tmp/multipartBody4128119753060100559asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101168425,"filename":"image_16062025_19_49_35_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8722e80a0d72126973f9d3a41998bc75.jpg","text":"TemporaryFile(/tmp/multipartBody5588986370641023992asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101168425,"filename":"image_16062025_21_11_15_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4e9ae49cf924ee95725ecac08e6eea97.jpg","text":"TemporaryFile(/tmp/multipartBody8846371695671851770asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101168425,"filename":"image_16062025_21_11_05_10682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6a8b0b44bc834d80a75f95117f71e0f6.jpg","text":"TemporaryFile(/tmp/multipartBody6706189506104289786asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101168425,"filename":"image_16062025_21_11_25_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7ad0eb298e6860d10e323db7cc58138b.jpg","text":"TemporaryFile(/tmp/multipartBody9162280811310577681asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101168425,"filename":"image_16062025_21_10_55_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4275e75a8a530344d3fd68a064a275ac.jpg","text":"TemporaryFile(/tmp/multipartBody5637036921859827934asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101168425,"filename":"image_16062025_19_49_45_10618.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366596159","file1":"1366596156","file0":"1366596150","file4":"1366596173","file5":"1366596177","file3":"1366596164"},"map_files_photo_id_array":[{"photo_id":"1366596177","filename":"file5"},{"photo_id":"1366596159","filename":"file2"},{"photo_id":"1366596173","filename":"file4"},{"photo_id":"1366596156","filename":"file1"},{"photo_id":"1366596150","filename":"file0"},{"photo_id":"1366596164","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366596177":["hashtag1","hashtag2"]},{"1366596156":["hashtag1","hashtag2"]},{"1366596159":["hashtag1","hashtag2"]},{"1366596150":["hashtag1","hashtag2"]},{"1366596164":["hashtag1","hashtag2"]},{"1366596173":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366596177, 1366596156, 1366596159, 1366596150, 1366596164, 1366596173)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 54.34885931015015 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:12:46.967398
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/12/image_16062025_21_12_45_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/21/12/image_16062025_21_12_25_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/21/12/image_16062025_21_12_15_9662.jpg', 2), ('/home/nano/Desktop/images/16062025/21/11/image_16062025_21_12_05_10679.jpg', 2), ('/home/nano/Desktop/images/16062025/21/11/image_16062025_21_11_45_9662.jpg', 2), ('/home/nano/Desktop/images/16062025/19/49/image_16062025_19_49_25_9613.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/12/image_16062025_21_12_45_9664.jpg', '/home/nano/Desktop/images/16062025/21/12/image_16062025_21_12_25_9669.jpg', '/home/nano/Desktop/images/16062025/21/12/image_16062025_21_12_15_9662.jpg', '/home/nano/Desktop/images/16062025/21/11/image_16062025_21_12_05_10679.jpg', '/home/nano/Desktop/images/16062025/21/11/image_16062025_21_11_45_9662.jpg', '/home/nano/Desktop/images/16062025/19/49/image_16062025_19_49_25_9613.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/12/image_16062025_21_12_45_9664.jpg
/home/nano/Desktop/images/16062025/21/12/image_16062025_21_12_25_9669.jpg
/home/nano/Desktop/images/16062025/21/12/image_16062025_21_12_15_9662.jpg
/home/nano/Desktop/images/16062025/21/11/image_16062025_21_12_05_10679.jpg
/home/nano/Desktop/images/16062025/21/11/image_16062025_21_11_45_9662.jpg
/home/nano/Desktop/images/16062025/19/49/image_16062025_19_49_25_9613.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366596205","1366596192","1366596201","1366596212","1366596209","1366596196"],"photo_ids_order":["1366596192","1366596196","1366596201","1366596205","1366596209","1366596212"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3993b9053d866a17528705701cc79387.jpg","text":"TemporaryFile(/tmp/multipartBody2697919253982251322asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101229279,"filename":"image_16062025_21_12_05_10679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a6c52a0d0e43c8b36b75efc6145f472f.jpg","text":"TemporaryFile(/tmp/multipartBody5094341519445769032asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101229279,"filename":"image_16062025_21_12_45_9664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2b660ccf02d6bf5812c4a39af7805221.jpg","text":"TemporaryFile(/tmp/multipartBody4794193824581663427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101229279,"filename":"image_16062025_21_12_15_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/efed63ecf9a6d4803cca6a5a725e151b.jpg","text":"TemporaryFile(/tmp/multipartBody2045471272784682145asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101229279,"filename":"image_16062025_19_49_25_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/73d32e7a18d688491d1d0aa62e73e7f6.jpg","text":"TemporaryFile(/tmp/multipartBody5878032650016378581asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101229279,"filename":"image_16062025_21_11_45_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/91f8b4aed45d3e39ee4bdfdd629c80ad.jpg","text":"TemporaryFile(/tmp/multipartBody1557175321642295178asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101229279,"filename":"image_16062025_21_12_25_9669.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366596201","file1":"1366596196","file0":"1366596192","file4":"1366596209","file5":"1366596212","file3":"1366596205"},"map_files_photo_id_array":[{"photo_id":"1366596212","filename":"file5"},{"photo_id":"1366596201","filename":"file2"},{"photo_id":"1366596209","filename":"file4"},{"photo_id":"1366596196","filename":"file1"},{"photo_id":"1366596192","filename":"file0"},{"photo_id":"1366596205","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366596205":["hashtag1","hashtag2"]},{"1366596192":["hashtag1","hashtag2"]},{"1366596201":["hashtag1","hashtag2"]},{"1366596212":["hashtag1","hashtag2"]},{"1366596209":["hashtag1","hashtag2"]},{"1366596196":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366596205, 1366596192, 1366596201, 1366596212, 1366596209, 1366596196)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 53.79936242103577 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:13:47.069005
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/13/image_16062025_21_13_45_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/21/13/image_16062025_21_13_25_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/21/13/image_16062025_21_13_15_9662.jpg', 2), ('/home/nano/Desktop/images/16062025/21/12/image_16062025_21_13_05_10676.jpg', 2), ('/home/nano/Desktop/images/16062025/21/12/image_16062025_21_12_55_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/19/49/image_16062025_19_49_15_10649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/13/image_16062025_21_13_45_9660.jpg', '/home/nano/Desktop/images/16062025/21/13/image_16062025_21_13_25_9657.jpg', '/home/nano/Desktop/images/16062025/21/13/image_16062025_21_13_15_9662.jpg', '/home/nano/Desktop/images/16062025/21/12/image_16062025_21_13_05_10676.jpg', '/home/nano/Desktop/images/16062025/21/12/image_16062025_21_12_55_9660.jpg', '/home/nano/Desktop/images/16062025/19/49/image_16062025_19_49_15_10649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/13/image_16062025_21_13_45_9660.jpg
/home/nano/Desktop/images/16062025/21/13/image_16062025_21_13_25_9657.jpg
/home/nano/Desktop/images/16062025/21/13/image_16062025_21_13_15_9662.jpg
/home/nano/Desktop/images/16062025/21/12/image_16062025_21_13_05_10676.jpg
/home/nano/Desktop/images/16062025/21/12/image_16062025_21_12_55_9660.jpg
/home/nano/Desktop/images/16062025/19/49/image_16062025_19_49_15_10649.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366596244","1366596247","1366596226","1366596237","1366596231","1366596253"],"photo_ids_order":["1366596226","1366596231","1366596237","1366596244","1366596247","1366596253"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1868c371750bb7099c0a5810b176a233.jpg","text":"TemporaryFile(/tmp/multipartBody1233851981435405964asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101289674,"filename":"image_16062025_21_13_05_10676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2b11c04425418a188eb53efe4bdf758b.jpg","text":"TemporaryFile(/tmp/multipartBody7802156777885668267asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101289674,"filename":"image_16062025_21_12_55_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bfdefb0068be1b53ad25298c9e14897c.jpg","text":"TemporaryFile(/tmp/multipartBody7478544334187103041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101289674,"filename":"image_16062025_21_13_45_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/28977855dc9fc3133275e1cea10db8ae.jpg","text":"TemporaryFile(/tmp/multipartBody2981730266203576216asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101289674,"filename":"image_16062025_21_13_15_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/141524c4cf2e5a5f0419637798ef255a.jpg","text":"TemporaryFile(/tmp/multipartBody4460604934162588656asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101289674,"filename":"image_16062025_21_13_25_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8ab01aac65175a787f6be1c5109ae7c7.jpg","text":"TemporaryFile(/tmp/multipartBody8392624923727841967asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101289674,"filename":"image_16062025_19_49_15_10649.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366596237","file1":"1366596231","file0":"1366596226","file4":"1366596247","file5":"1366596253","file3":"1366596244"},"map_files_photo_id_array":[{"photo_id":"1366596253","filename":"file5"},{"photo_id":"1366596237","filename":"file2"},{"photo_id":"1366596247","filename":"file4"},{"photo_id":"1366596231","filename":"file1"},{"photo_id":"1366596226","filename":"file0"},{"photo_id":"1366596244","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366596244":["hashtag1","hashtag2"]},{"1366596247":["hashtag1","hashtag2"]},{"1366596226":["hashtag1","hashtag2"]},{"1366596237":["hashtag1","hashtag2"]},{"1366596231":["hashtag1","hashtag2"]},{"1366596253":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366596244, 1366596247, 1366596226, 1366596237, 1366596231, 1366596253)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 51.27738285064697 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:14:47.164711
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/14/image_16062025_21_14_45_9665.jpg', 2), ('/home/nano/Desktop/images/16062025/21/14/image_16062025_21_14_35_10683.jpg', 2), ('/home/nano/Desktop/images/16062025/21/14/image_16062025_21_14_25_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/21/14/image_16062025_21_14_15_9665.jpg', 2), ('/home/nano/Desktop/images/16062025/21/13/image_16062025_21_14_05_10674.jpg', 2), ('/home/nano/Desktop/images/16062025/21/13/image_16062025_21_13_55_9654.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/14/image_16062025_21_14_45_9665.jpg', '/home/nano/Desktop/images/16062025/21/14/image_16062025_21_14_35_10683.jpg', '/home/nano/Desktop/images/16062025/21/14/image_16062025_21_14_25_9668.jpg', '/home/nano/Desktop/images/16062025/21/14/image_16062025_21_14_15_9665.jpg', '/home/nano/Desktop/images/16062025/21/13/image_16062025_21_14_05_10674.jpg', '/home/nano/Desktop/images/16062025/21/13/image_16062025_21_13_55_9654.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/14/image_16062025_21_14_45_9665.jpg
/home/nano/Desktop/images/16062025/21/14/image_16062025_21_14_35_10683.jpg
/home/nano/Desktop/images/16062025/21/14/image_16062025_21_14_25_9668.jpg
/home/nano/Desktop/images/16062025/21/14/image_16062025_21_14_15_9665.jpg
/home/nano/Desktop/images/16062025/21/13/image_16062025_21_14_05_10674.jpg
/home/nano/Desktop/images/16062025/21/13/image_16062025_21_13_55_9654.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366596291","1366596264","1366596281","1366596269","1366596286","1366596274"],"photo_ids_order":["1366596264","1366596269","1366596274","1366596281","1366596286","1366596291"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a465fd03155073c16b487748d69fb48a.jpg","text":"TemporaryFile(/tmp/multipartBody2993673722084962333asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101353943,"filename":"image_16062025_21_13_55_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9dffd1f2a8f9ec8cdb989096dee12471.jpg","text":"TemporaryFile(/tmp/multipartBody8615358735246558044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101353943,"filename":"image_16062025_21_14_45_9665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/76b2bb560b4289fe3a71006e7b725a0e.jpg","text":"TemporaryFile(/tmp/multipartBody1521216002906165237asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101353943,"filename":"image_16062025_21_14_15_9665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3e85483a0eaa25edf91508034694764a.jpg","text":"TemporaryFile(/tmp/multipartBody5335879149777056078asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101353943,"filename":"image_16062025_21_14_35_10683.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1e95b9e233721ffe79c01ef91cc5a3e1.jpg","text":"TemporaryFile(/tmp/multipartBody2494254056704576370asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101353943,"filename":"image_16062025_21_14_05_10674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/39a1beff9013fa39a6a07a4a5bfaa8ea.jpg","text":"TemporaryFile(/tmp/multipartBody8846895728455684489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101353943,"filename":"image_16062025_21_14_25_9668.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366596274","file1":"1366596269","file0":"1366596264","file4":"1366596286","file5":"1366596291","file3":"1366596281"},"map_files_photo_id_array":[{"photo_id":"1366596291","filename":"file5"},{"photo_id":"1366596274","filename":"file2"},{"photo_id":"1366596286","filename":"file4"},{"photo_id":"1366596269","filename":"file1"},{"photo_id":"1366596264","filename":"file0"},{"photo_id":"1366596281","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366596291":["hashtag1","hashtag2"]},{"1366596264":["hashtag1","hashtag2"]},{"1366596281":["hashtag1","hashtag2"]},{"1366596269":["hashtag1","hashtag2"]},{"1366596286":["hashtag1","hashtag2"]},{"1366596274":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366596291, 1366596264, 1366596281, 1366596269, 1366596286, 1366596274)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 67.05969524383545 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:16:03.057075
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/15/image_16062025_21_15_34_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/21/15/image_16062025_21_15_25_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/21/15/image_16062025_21_15_15_10696.jpg', 2), ('/home/nano/Desktop/images/16062025/21/14/image_16062025_21_14_55_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/19/48/image_16062025_19_49_05_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/19/48/image_16062025_19_48_55_10639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/15/image_16062025_21_15_34_9658.jpg', '/home/nano/Desktop/images/16062025/21/15/image_16062025_21_15_25_9659.jpg', '/home/nano/Desktop/images/16062025/21/15/image_16062025_21_15_15_10696.jpg', '/home/nano/Desktop/images/16062025/21/14/image_16062025_21_14_55_9667.jpg', '/home/nano/Desktop/images/16062025/19/48/image_16062025_19_49_05_9609.jpg', '/home/nano/Desktop/images/16062025/19/48/image_16062025_19_48_55_10639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/15/image_16062025_21_15_34_9658.jpg
/home/nano/Desktop/images/16062025/21/15/image_16062025_21_15_25_9659.jpg
/home/nano/Desktop/images/16062025/21/15/image_16062025_21_15_15_10696.jpg
/home/nano/Desktop/images/16062025/21/14/image_16062025_21_14_55_9667.jpg
/home/nano/Desktop/images/16062025/19/48/image_16062025_19_49_05_9609.jpg
/home/nano/Desktop/images/16062025/19/48/image_16062025_19_48_55_10639.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366596322","1366596319","1366596310","1366596336","1366596315","1366596305"],"photo_ids_order":["1366596305","1366596310","1366596315","1366596319","1366596322","1366596336"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b27c078c8fb8993271aec0eb4f4bb7ad.jpg","text":"TemporaryFile(/tmp/multipartBody7722425590418743397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101427708,"filename":"image_16062025_19_49_05_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5bcf07299831d098eb45602ed98dd5b8.jpg","text":"TemporaryFile(/tmp/multipartBody692527673983437330asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101427708,"filename":"image_16062025_21_14_55_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6725792d759edaa31a5d01e0f6ac57e4.jpg","text":"TemporaryFile(/tmp/multipartBody6482394422580043318asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101427708,"filename":"image_16062025_21_15_25_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f9544145ecdc0ff805afabde4dae36c6.jpg","text":"TemporaryFile(/tmp/multipartBody4048298802608806561asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101427708,"filename":"image_16062025_19_48_55_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6360f7026fe4eda50de95c0fad9b450d.jpg","text":"TemporaryFile(/tmp/multipartBody2486376559066607511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101427708,"filename":"image_16062025_21_15_15_10696.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5cc467ec8dc9526f1fe4252514bc4bdc.jpg","text":"TemporaryFile(/tmp/multipartBody1574969689081229484asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101427708,"filename":"image_16062025_21_15_34_9658.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366596315","file1":"1366596310","file0":"1366596305","file4":"1366596322","file5":"1366596336","file3":"1366596319"},"map_files_photo_id_array":[{"photo_id":"1366596336","filename":"file5"},{"photo_id":"1366596315","filename":"file2"},{"photo_id":"1366596322","filename":"file4"},{"photo_id":"1366596310","filename":"file1"},{"photo_id":"1366596305","filename":"file0"},{"photo_id":"1366596319","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366596322":["hashtag1","hashtag2"]},{"1366596319":["hashtag1","hashtag2"]},{"1366596310":["hashtag1","hashtag2"]},{"1366596336":["hashtag1","hashtag2"]},{"1366596315":["hashtag1","hashtag2"]},{"1366596305":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366596322, 1366596319, 1366596310, 1366596336, 1366596315, 1366596305)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 55.467944622039795 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:17:03.345597
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/16/image_16062025_21_16_45_10665.jpg', 2), ('/home/nano/Desktop/images/16062025/21/16/image_16062025_21_16_34_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/21/16/image_16062025_21_16_25_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/21/16/image_16062025_21_16_15_10689.jpg', 2), ('/home/nano/Desktop/images/16062025/21/15/image_16062025_21_16_04_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/21/15/image_16062025_21_15_55_9657.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/16/image_16062025_21_16_45_10665.jpg', '/home/nano/Desktop/images/16062025/21/16/image_16062025_21_16_34_9669.jpg', '/home/nano/Desktop/images/16062025/21/16/image_16062025_21_16_25_9657.jpg', '/home/nano/Desktop/images/16062025/21/16/image_16062025_21_16_15_10689.jpg', '/home/nano/Desktop/images/16062025/21/15/image_16062025_21_16_04_9673.jpg', '/home/nano/Desktop/images/16062025/21/15/image_16062025_21_15_55_9657.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/16/image_16062025_21_16_45_10665.jpg
/home/nano/Desktop/images/16062025/21/16/image_16062025_21_16_34_9669.jpg
/home/nano/Desktop/images/16062025/21/16/image_16062025_21_16_25_9657.jpg
/home/nano/Desktop/images/16062025/21/16/image_16062025_21_16_15_10689.jpg
/home/nano/Desktop/images/16062025/21/15/image_16062025_21_16_04_9673.jpg
/home/nano/Desktop/images/16062025/21/15/image_16062025_21_15_55_9657.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366596351","1366596356","1366596365","1366596379","1366596373","1366596376"],"photo_ids_order":["1366596351","1366596356","1366596365","1366596373","1366596376","1366596379"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/98cda8f4d2b29acdfeff557a4a764553.jpg","text":"TemporaryFile(/tmp/multipartBody2501605213608099670asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101485721,"filename":"image_16062025_21_16_45_10665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f7b9af26ce3934358e2f6a841615982f.jpg","text":"TemporaryFile(/tmp/multipartBody7448806777064090918asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101485721,"filename":"image_16062025_21_16_34_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fc314ed653fd4d7c2a33bf4624c467fd.jpg","text":"TemporaryFile(/tmp/multipartBody7667732055352137775asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101485721,"filename":"image_16062025_21_16_25_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c150376a5bd4817f33feef5d08a01927.jpg","text":"TemporaryFile(/tmp/multipartBody1449298071682507868asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101485721,"filename":"image_16062025_21_15_55_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/19c84615e4e8a583a27ad3ee326d7c41.jpg","text":"TemporaryFile(/tmp/multipartBody5382112423339515652asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101485721,"filename":"image_16062025_21_16_15_10689.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3ad7c638d5b637a16937cdb2e18f0633.jpg","text":"TemporaryFile(/tmp/multipartBody8239087846875592460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101485721,"filename":"image_16062025_21_16_04_9673.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366596365","file1":"1366596356","file0":"1366596351","file4":"1366596376","file5":"1366596379","file3":"1366596373"},"map_files_photo_id_array":[{"photo_id":"1366596379","filename":"file5"},{"photo_id":"1366596365","filename":"file2"},{"photo_id":"1366596376","filename":"file4"},{"photo_id":"1366596356","filename":"file1"},{"photo_id":"1366596351","filename":"file0"},{"photo_id":"1366596373","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366596351":["hashtag1","hashtag2"]},{"1366596356":["hashtag1","hashtag2"]},{"1366596365":["hashtag1","hashtag2"]},{"1366596379":["hashtag1","hashtag2"]},{"1366596373":["hashtag1","hashtag2"]},{"1366596376":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366596351, 1366596356, 1366596365, 1366596379, 1366596373, 1366596376)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 52.44330048561096 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:18:03.132284
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/17/image_16062025_21_17_45_10671.jpg', 2), ('/home/nano/Desktop/images/16062025/21/17/image_16062025_21_17_35_9672.jpg', 2), ('/home/nano/Desktop/images/16062025/21/17/image_16062025_21_17_25_9674.jpg', 2), ('/home/nano/Desktop/images/16062025/21/16/image_16062025_21_17_04_9696.jpg', 2), ('/home/nano/Desktop/images/16062025/21/16/image_16062025_21_16_55_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/19/44/image_16062025_19_44_35_9630.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/17/image_16062025_21_17_45_10671.jpg', '/home/nano/Desktop/images/16062025/21/17/image_16062025_21_17_35_9672.jpg', '/home/nano/Desktop/images/16062025/21/17/image_16062025_21_17_25_9674.jpg', '/home/nano/Desktop/images/16062025/21/16/image_16062025_21_17_04_9696.jpg', '/home/nano/Desktop/images/16062025/21/16/image_16062025_21_16_55_9660.jpg', '/home/nano/Desktop/images/16062025/19/44/image_16062025_19_44_35_9630.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/17/image_16062025_21_17_45_10671.jpg
/home/nano/Desktop/images/16062025/21/17/image_16062025_21_17_35_9672.jpg
/home/nano/Desktop/images/16062025/21/17/image_16062025_21_17_25_9674.jpg
/home/nano/Desktop/images/16062025/21/16/image_16062025_21_17_04_9696.jpg
/home/nano/Desktop/images/16062025/21/16/image_16062025_21_16_55_9660.jpg
/home/nano/Desktop/images/16062025/19/44/image_16062025_19_44_35_9630.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366596406","1366596396","1366596410","1366596397","1366596401","1366596391"],"photo_ids_order":["1366596391","1366596396","1366596397","1366596401","1366596406","1366596410"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/80639a39cb01268ea4ccbfeb5b41acb0.jpg","text":"TemporaryFile(/tmp/multipartBody205705676449476914asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101548787,"filename":"image_16062025_21_16_55_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cc7896bd5bcbb367dbfd907582e21d69.jpg","text":"TemporaryFile(/tmp/multipartBody1553886646189572380asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101548787,"filename":"image_16062025_21_17_35_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f77381d8ab50ffabde32b111bc256e8f.jpg","text":"TemporaryFile(/tmp/multipartBody5407624299942039271asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101548787,"filename":"image_16062025_19_44_35_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cc2da5f90fe4c6ecd1fefb7c5767d9aa.jpg","text":"TemporaryFile(/tmp/multipartBody5562518997435743193asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101548787,"filename":"image_16062025_21_17_25_9674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/31505da2b6225509b42ca234515f7541.jpg","text":"TemporaryFile(/tmp/multipartBody6481106354175375576asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101548787,"filename":"image_16062025_21_17_04_9696.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1a4003ade8887835859818286d7a3583.jpg","text":"TemporaryFile(/tmp/multipartBody6428925473494839528asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101548787,"filename":"image_16062025_21_17_45_10671.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366596397","file1":"1366596396","file0":"1366596391","file4":"1366596406","file5":"1366596410","file3":"1366596401"},"map_files_photo_id_array":[{"photo_id":"1366596410","filename":"file5"},{"photo_id":"1366596397","filename":"file2"},{"photo_id":"1366596406","filename":"file4"},{"photo_id":"1366596396","filename":"file1"},{"photo_id":"1366596391","filename":"file0"},{"photo_id":"1366596401","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366596406":["hashtag1","hashtag2"]},{"1366596396":["hashtag1","hashtag2"]},{"1366596410":["hashtag1","hashtag2"]},{"1366596397":["hashtag1","hashtag2"]},{"1366596401":["hashtag1","hashtag2"]},{"1366596391":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366596406, 1366596396, 1366596410, 1366596397, 1366596401, 1366596391)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.76530647277832 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:19:02.644639
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/18/image_16062025_21_18_45_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/21/18/image_16062025_21_18_35_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/21/18/image_16062025_21_18_25_9658.jpg', 2), ('/home/nano/Desktop/images/16062025/21/18/image_16062025_21_18_15_10686.jpg', 2), ('/home/nano/Desktop/images/16062025/21/17/image_16062025_21_18_05_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/21/17/image_16062025_21_17_55_9657.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/18/image_16062025_21_18_45_10666.jpg', '/home/nano/Desktop/images/16062025/21/18/image_16062025_21_18_35_9668.jpg', '/home/nano/Desktop/images/16062025/21/18/image_16062025_21_18_25_9658.jpg', '/home/nano/Desktop/images/16062025/21/18/image_16062025_21_18_15_10686.jpg', '/home/nano/Desktop/images/16062025/21/17/image_16062025_21_18_05_9668.jpg', '/home/nano/Desktop/images/16062025/21/17/image_16062025_21_17_55_9657.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/18/image_16062025_21_18_45_10666.jpg
/home/nano/Desktop/images/16062025/21/18/image_16062025_21_18_35_9668.jpg
/home/nano/Desktop/images/16062025/21/18/image_16062025_21_18_25_9658.jpg
/home/nano/Desktop/images/16062025/21/18/image_16062025_21_18_15_10686.jpg
/home/nano/Desktop/images/16062025/21/17/image_16062025_21_18_05_9668.jpg
/home/nano/Desktop/images/16062025/21/17/image_16062025_21_17_55_9657.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366596439","1366596430","1366596444","1366596437","1366596428","1366596433"],"photo_ids_order":["1366596428","1366596430","1366596433","1366596437","1366596439","1366596444"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9e9db24c6d25ec4fef2dc727d5ba5614.jpg","text":"TemporaryFile(/tmp/multipartBody7115593707866231943asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101605322,"filename":"image_16062025_21_18_05_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c7fc8544cdfc086c8ac55c74926c7a05.jpg","text":"TemporaryFile(/tmp/multipartBody5546929662986042736asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101605322,"filename":"image_16062025_21_18_35_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a5438f6e8175f17d39748b4268ad9326.jpg","text":"TemporaryFile(/tmp/multipartBody3338903693184247089asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101605322,"filename":"image_16062025_21_17_55_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8bec7db30e4ac08ebc06281fadbcbbc2.jpg","text":"TemporaryFile(/tmp/multipartBody7189356173846871599asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101605322,"filename":"image_16062025_21_18_15_10686.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5c7fb179bad9c80c28907dc3aa64421b.jpg","text":"TemporaryFile(/tmp/multipartBody2125853493722241009asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101605322,"filename":"image_16062025_21_18_45_10666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7e383c16ba761810cc6ebc39f4a7ed33.jpg","text":"TemporaryFile(/tmp/multipartBody6095265886833770203asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101605322,"filename":"image_16062025_21_18_25_9658.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366596433","file1":"1366596430","file0":"1366596428","file4":"1366596439","file5":"1366596444","file3":"1366596437"},"map_files_photo_id_array":[{"photo_id":"1366596444","filename":"file5"},{"photo_id":"1366596433","filename":"file2"},{"photo_id":"1366596439","filename":"file4"},{"photo_id":"1366596430","filename":"file1"},{"photo_id":"1366596428","filename":"file0"},{"photo_id":"1366596437","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366596439":["hashtag1","hashtag2"]},{"1366596430":["hashtag1","hashtag2"]},{"1366596444":["hashtag1","hashtag2"]},{"1366596437":["hashtag1","hashtag2"]},{"1366596428":["hashtag1","hashtag2"]},{"1366596433":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366596439, 1366596430, 1366596444, 1366596437, 1366596428, 1366596433)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.991873264312744 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:20:02.403332
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/19/image_16062025_21_19_45_10664.jpg', 2), ('/home/nano/Desktop/images/16062025/21/19/image_16062025_21_19_35_9656.jpg', 2), ('/home/nano/Desktop/images/16062025/21/19/image_16062025_21_19_15_10689.jpg', 2), ('/home/nano/Desktop/images/16062025/21/18/image_16062025_21_19_05_9683.jpg', 2), ('/home/nano/Desktop/images/16062025/21/18/image_16062025_21_18_55_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/19/43/image_16062025_19_44_05_9628.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/19/image_16062025_21_19_45_10664.jpg', '/home/nano/Desktop/images/16062025/21/19/image_16062025_21_19_35_9656.jpg', '/home/nano/Desktop/images/16062025/21/19/image_16062025_21_19_15_10689.jpg', '/home/nano/Desktop/images/16062025/21/18/image_16062025_21_19_05_9683.jpg', '/home/nano/Desktop/images/16062025/21/18/image_16062025_21_18_55_9657.jpg', '/home/nano/Desktop/images/16062025/19/43/image_16062025_19_44_05_9628.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/19/image_16062025_21_19_45_10664.jpg
/home/nano/Desktop/images/16062025/21/19/image_16062025_21_19_35_9656.jpg
/home/nano/Desktop/images/16062025/21/19/image_16062025_21_19_15_10689.jpg
/home/nano/Desktop/images/16062025/21/18/image_16062025_21_19_05_9683.jpg
/home/nano/Desktop/images/16062025/21/18/image_16062025_21_18_55_9657.jpg
/home/nano/Desktop/images/16062025/19/43/image_16062025_19_44_05_9628.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 2.288287401199341 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:20:16.868795
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/20/image_16062025_21_20_35_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/21/20/image_16062025_21_20_25_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/21/20/image_16062025_21_20_15_10705.jpg', 2), ('/home/nano/Desktop/images/16062025/21/19/image_16062025_21_20_05_9676.jpg', 2), ('/home/nano/Desktop/images/16062025/21/19/image_16062025_21_19_55_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/21/19/image_16062025_21_19_45_10664.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/20/image_16062025_21_20_35_9654.jpg', '/home/nano/Desktop/images/16062025/21/20/image_16062025_21_20_25_9657.jpg', '/home/nano/Desktop/images/16062025/21/20/image_16062025_21_20_15_10705.jpg', '/home/nano/Desktop/images/16062025/21/19/image_16062025_21_20_05_9676.jpg', '/home/nano/Desktop/images/16062025/21/19/image_16062025_21_19_55_9659.jpg', '/home/nano/Desktop/images/16062025/21/19/image_16062025_21_19_45_10664.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/20/image_16062025_21_20_35_9654.jpg
/home/nano/Desktop/images/16062025/21/20/image_16062025_21_20_25_9657.jpg
/home/nano/Desktop/images/16062025/21/20/image_16062025_21_20_15_10705.jpg
/home/nano/Desktop/images/16062025/21/19/image_16062025_21_20_05_9676.jpg
/home/nano/Desktop/images/16062025/21/19/image_16062025_21_19_55_9659.jpg
/home/nano/Desktop/images/16062025/21/19/image_16062025_21_19_45_10664.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366596529","1366596514","1366596523","1366596537","1366596534","1366596500"],"photo_ids_order":["1366596500","1366596514","1366596523","1366596529","1366596534","1366596537"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6bd4274c149ef0ae4c3ac8ecaaf387f1.jpg","text":"TemporaryFile(/tmp/multipartBody5822469734641168061asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101679087,"filename":"image_16062025_21_20_05_9676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b3e34245cd0c17fb5aae26468b1c6259.jpg","text":"TemporaryFile(/tmp/multipartBody1366000423645115980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101679087,"filename":"image_16062025_21_20_25_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/58df72179f25caf5581a92fb8520b2c9.jpg","text":"TemporaryFile(/tmp/multipartBody6475184329714576991asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101679087,"filename":"image_16062025_21_20_15_10705.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b12cc6439b91580b14ee1a99f1bc808b.jpg","text":"TemporaryFile(/tmp/multipartBody5429659662896199303asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101679087,"filename":"image_16062025_21_19_45_10664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a198229dec62146b34e8f6cf33d50e3b.jpg","text":"TemporaryFile(/tmp/multipartBody6842685683481813260asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101679087,"filename":"image_16062025_21_19_55_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/431af039cd82be25ae2558a3f7b2f7c2.jpg","text":"TemporaryFile(/tmp/multipartBody4420257957983540549asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101679087,"filename":"image_16062025_21_20_35_9654.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366596523","file1":"1366596514","file0":"1366596500","file4":"1366596534","file5":"1366596537","file3":"1366596529"},"map_files_photo_id_array":[{"photo_id":"1366596537","filename":"file5"},{"photo_id":"1366596523","filename":"file2"},{"photo_id":"1366596534","filename":"file4"},{"photo_id":"1366596514","filename":"file1"},{"photo_id":"1366596500","filename":"file0"},{"photo_id":"1366596529","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366596529":["hashtag1","hashtag2"]},{"1366596514":["hashtag1","hashtag2"]},{"1366596523":["hashtag1","hashtag2"]},{"1366596537":["hashtag1","hashtag2"]},{"1366596534":["hashtag1","hashtag2"]},{"1366596500":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366596529, 1366596514, 1366596523, 1366596537, 1366596534, 1366596500)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 53.05048680305481 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:21:16.969084
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/21/image_16062025_21_21_35_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/21/21/image_16062025_21_21_25_9659.jpg', 2), ('/home/nano/Desktop/images/16062025/21/21/image_16062025_21_21_15_10685.jpg', 2), ('/home/nano/Desktop/images/16062025/21/20/image_16062025_21_21_05_9672.jpg', 2), ('/home/nano/Desktop/images/16062025/21/20/image_16062025_21_20_55_9672.jpg', 2), ('/home/nano/Desktop/images/16062025/21/19/image_16062025_21_19_35_9656.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/21/image_16062025_21_21_35_9655.jpg', '/home/nano/Desktop/images/16062025/21/21/image_16062025_21_21_25_9659.jpg', '/home/nano/Desktop/images/16062025/21/21/image_16062025_21_21_15_10685.jpg', '/home/nano/Desktop/images/16062025/21/20/image_16062025_21_21_05_9672.jpg', '/home/nano/Desktop/images/16062025/21/20/image_16062025_21_20_55_9672.jpg', '/home/nano/Desktop/images/16062025/21/19/image_16062025_21_19_35_9656.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/21/image_16062025_21_21_35_9655.jpg
/home/nano/Desktop/images/16062025/21/21/image_16062025_21_21_25_9659.jpg
/home/nano/Desktop/images/16062025/21/21/image_16062025_21_21_15_10685.jpg
/home/nano/Desktop/images/16062025/21/20/image_16062025_21_21_05_9672.jpg
/home/nano/Desktop/images/16062025/21/20/image_16062025_21_20_55_9672.jpg
/home/nano/Desktop/images/16062025/21/19/image_16062025_21_19_35_9656.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366596562","1366596570","1366596558","1366596566","1366596574","1366596553"],"photo_ids_order":["1366596553","1366596558","1366596562","1366596566","1366596570","1366596574"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/61dcc4a739858335e9545d3f12cd2078.jpg","text":"TemporaryFile(/tmp/multipartBody3262114856142234067asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101739671,"filename":"image_16062025_21_21_15_10685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d6aa001852707029fb1e3d284256cb38.jpg","text":"TemporaryFile(/tmp/multipartBody1287586584235164288asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101739671,"filename":"image_16062025_21_20_55_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4362d5af25a5fb6db7d4980c229b2505.jpg","text":"TemporaryFile(/tmp/multipartBody4406318412830760121asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101739671,"filename":"image_16062025_21_21_25_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9d2bbe56317699c1ef6641ff04763ea7.jpg","text":"TemporaryFile(/tmp/multipartBody6381516990993479483asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101739671,"filename":"image_16062025_21_21_05_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/eeac4d77025b39fb5f436bacea25992a.jpg","text":"TemporaryFile(/tmp/multipartBody8342702286204944218asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101739671,"filename":"image_16062025_21_19_35_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/12bf66bf025130d8e14a04467d960af9.jpg","text":"TemporaryFile(/tmp/multipartBody1923855026356842118asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101739671,"filename":"image_16062025_21_21_35_9655.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366596562","file1":"1366596558","file0":"1366596553","file4":"1366596570","file5":"1366596574","file3":"1366596566"},"map_files_photo_id_array":[{"photo_id":"1366596574","filename":"file5"},{"photo_id":"1366596562","filename":"file2"},{"photo_id":"1366596570","filename":"file4"},{"photo_id":"1366596558","filename":"file1"},{"photo_id":"1366596553","filename":"file0"},{"photo_id":"1366596566","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366596562":["hashtag1","hashtag2"]},{"1366596570":["hashtag1","hashtag2"]},{"1366596558":["hashtag1","hashtag2"]},{"1366596566":["hashtag1","hashtag2"]},{"1366596574":["hashtag1","hashtag2"]},{"1366596553":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366596562, 1366596570, 1366596558, 1366596566, 1366596574, 1366596553)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.88390851020813 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:22:17.081150
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/22/image_16062025_21_22_45_10668.jpg', 2), ('/home/nano/Desktop/images/16062025/21/22/image_16062025_21_22_35_9656.jpg', 2), ('/home/nano/Desktop/images/16062025/21/22/image_16062025_21_22_25_9661.jpg', 2), ('/home/nano/Desktop/images/16062025/21/22/image_16062025_21_22_15_10690.jpg', 2), ('/home/nano/Desktop/images/16062025/21/21/image_16062025_21_22_05_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/21/21/image_16062025_21_21_45_10666.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/22/image_16062025_21_22_45_10668.jpg', '/home/nano/Desktop/images/16062025/21/22/image_16062025_21_22_35_9656.jpg', '/home/nano/Desktop/images/16062025/21/22/image_16062025_21_22_25_9661.jpg', '/home/nano/Desktop/images/16062025/21/22/image_16062025_21_22_15_10690.jpg', '/home/nano/Desktop/images/16062025/21/21/image_16062025_21_22_05_9657.jpg', '/home/nano/Desktop/images/16062025/21/21/image_16062025_21_21_45_10666.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/22/image_16062025_21_22_45_10668.jpg
/home/nano/Desktop/images/16062025/21/22/image_16062025_21_22_35_9656.jpg
/home/nano/Desktop/images/16062025/21/22/image_16062025_21_22_25_9661.jpg
/home/nano/Desktop/images/16062025/21/22/image_16062025_21_22_15_10690.jpg
/home/nano/Desktop/images/16062025/21/21/image_16062025_21_22_05_9657.jpg
/home/nano/Desktop/images/16062025/21/21/image_16062025_21_21_45_10666.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366596604","1366596612","1366596590","1366596602","1366596608","1366596598"],"photo_ids_order":["1366596590","1366596598","1366596602","1366596604","1366596608","1366596612"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8827d7fc7c15a52c0aa8e309649dfecc.jpg","text":"TemporaryFile(/tmp/multipartBody2356221304733391915asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101799358,"filename":"image_16062025_21_22_15_10690.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f83030fef264a6f52462bca4959021da.jpg","text":"TemporaryFile(/tmp/multipartBody8744748234821526018asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101799358,"filename":"image_16062025_21_21_45_10666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4acd15a9bc52028c4bd83b6e93a1f025.jpg","text":"TemporaryFile(/tmp/multipartBody8237268527317490321asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101799358,"filename":"image_16062025_21_22_45_10668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/203fc46532f91afa90073296f9832144.jpg","text":"TemporaryFile(/tmp/multipartBody1805485636648774846asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101799358,"filename":"image_16062025_21_22_25_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/39f2e622a408bc94113f1b7e08f7bf67.jpg","text":"TemporaryFile(/tmp/multipartBody6101343973222903250asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101799358,"filename":"image_16062025_21_22_05_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c8cb11eda4889767e91ae446f0ca4c27.jpg","text":"TemporaryFile(/tmp/multipartBody7428407906922592721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101799358,"filename":"image_16062025_21_22_35_9656.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366596602","file1":"1366596598","file0":"1366596590","file4":"1366596608","file5":"1366596612","file3":"1366596604"},"map_files_photo_id_array":[{"photo_id":"1366596612","filename":"file5"},{"photo_id":"1366596602","filename":"file2"},{"photo_id":"1366596608","filename":"file4"},{"photo_id":"1366596598","filename":"file1"},{"photo_id":"1366596590","filename":"file0"},{"photo_id":"1366596604","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366596604":["hashtag1","hashtag2"]},{"1366596612":["hashtag1","hashtag2"]},{"1366596590":["hashtag1","hashtag2"]},{"1366596602":["hashtag1","hashtag2"]},{"1366596608":["hashtag1","hashtag2"]},{"1366596598":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366596604, 1366596612, 1366596590, 1366596602, 1366596608, 1366596598)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.091047286987305 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:23:02.769720
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/19/image_16062025_21_19_15_10689.jpg', 2), ('/home/nano/Desktop/images/16062025/21/18/image_16062025_21_19_05_9683.jpg', 2), ('/home/nano/Desktop/images/16062025/21/18/image_16062025_21_18_55_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/19/43/image_16062025_19_44_05_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/19/43/image_16062025_19_43_55_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_15_10637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/19/image_16062025_21_19_15_10689.jpg', '/home/nano/Desktop/images/16062025/21/18/image_16062025_21_19_05_9683.jpg', '/home/nano/Desktop/images/16062025/21/18/image_16062025_21_18_55_9657.jpg', '/home/nano/Desktop/images/16062025/19/43/image_16062025_19_44_05_9628.jpg', '/home/nano/Desktop/images/16062025/19/43/image_16062025_19_43_55_10619.jpg', '/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_15_10637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/19/image_16062025_21_19_15_10689.jpg
/home/nano/Desktop/images/16062025/21/18/image_16062025_21_19_05_9683.jpg
/home/nano/Desktop/images/16062025/21/18/image_16062025_21_18_55_9657.jpg
/home/nano/Desktop/images/16062025/19/43/image_16062025_19_44_05_9628.jpg
/home/nano/Desktop/images/16062025/19/43/image_16062025_19_43_55_10619.jpg
/home/nano/Desktop/images/16062025/19/38/image_16062025_19_38_15_10637.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366596619","1366596636","1366596639","1366596627","1366596623","1366596632"],"photo_ids_order":["1366596619","1366596623","1366596627","1366596632","1366596636","1366596639"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fcba644af9e71ff0464ff26c8b612cce.jpg","text":"TemporaryFile(/tmp/multipartBody840246207357470445asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101844506,"filename":"image_16062025_21_19_15_10689.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9711f0298bde4287b42ee58f58c52f73.jpg","text":"TemporaryFile(/tmp/multipartBody795905232958305095asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101844506,"filename":"image_16062025_19_43_55_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4cf992956ac8fcbdeca4b2c76e5fed19.jpg","text":"TemporaryFile(/tmp/multipartBody7966018080635391976asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101844506,"filename":"image_16062025_19_38_15_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4d9065cebfe94d4cfc8c80a1ed4a35fb.jpg","text":"TemporaryFile(/tmp/multipartBody1109365056306184256asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101844506,"filename":"image_16062025_21_18_55_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ade11f79f5e5d401e3ea1979572b3bd5.jpg","text":"TemporaryFile(/tmp/multipartBody8966342114867652189asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101844506,"filename":"image_16062025_21_19_05_9683.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/318db618d6e1a22615943be56a61092d.jpg","text":"TemporaryFile(/tmp/multipartBody2527362960353445063asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101844506,"filename":"image_16062025_19_44_05_9628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366596627","file1":"1366596623","file0":"1366596619","file4":"1366596636","file5":"1366596639","file3":"1366596632"},"map_files_photo_id_array":[{"photo_id":"1366596639","filename":"file5"},{"photo_id":"1366596627","filename":"file2"},{"photo_id":"1366596636","filename":"file4"},{"photo_id":"1366596623","filename":"file1"},{"photo_id":"1366596619","filename":"file0"},{"photo_id":"1366596632","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366596619":["hashtag1","hashtag2"]},{"1366596636":["hashtag1","hashtag2"]},{"1366596639":["hashtag1","hashtag2"]},{"1366596627":["hashtag1","hashtag2"]},{"1366596623":["hashtag1","hashtag2"]},{"1366596632":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366596619, 1366596636, 1366596639, 1366596627, 1366596623, 1366596632)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 48.23155164718628 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:24:03.117196
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/23/image_16062025_21_23_45_10675.jpg', 2), ('/home/nano/Desktop/images/16062025/21/23/image_16062025_21_23_35_9674.jpg', 2), ('/home/nano/Desktop/images/16062025/21/23/image_16062025_21_23_15_10685.jpg', 2), ('/home/nano/Desktop/images/16062025/21/22/image_16062025_21_23_05_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/21/22/image_16062025_21_22_55_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/19/37/image_16062025_19_38_05_9617.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/23/image_16062025_21_23_45_10675.jpg', '/home/nano/Desktop/images/16062025/21/23/image_16062025_21_23_35_9674.jpg', '/home/nano/Desktop/images/16062025/21/23/image_16062025_21_23_15_10685.jpg', '/home/nano/Desktop/images/16062025/21/22/image_16062025_21_23_05_9673.jpg', '/home/nano/Desktop/images/16062025/21/22/image_16062025_21_22_55_9657.jpg', '/home/nano/Desktop/images/16062025/19/37/image_16062025_19_38_05_9617.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/23/image_16062025_21_23_45_10675.jpg
/home/nano/Desktop/images/16062025/21/23/image_16062025_21_23_35_9674.jpg
/home/nano/Desktop/images/16062025/21/23/image_16062025_21_23_15_10685.jpg
/home/nano/Desktop/images/16062025/21/22/image_16062025_21_23_05_9673.jpg
/home/nano/Desktop/images/16062025/21/22/image_16062025_21_22_55_9657.jpg
/home/nano/Desktop/images/16062025/19/37/image_16062025_19_38_05_9617.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366596661","1366596686","1366596665","1366596668","1366596656","1366596652"],"photo_ids_order":["1366596652","1366596656","1366596661","1366596665","1366596668","1366596686"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/99d6e7b4be24f1d5a66bef48fc6340ca.jpg","text":"TemporaryFile(/tmp/multipartBody5733488174074608554asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101905795,"filename":"image_16062025_21_23_15_10685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a79933744ac85625616313c667ea19c1.jpg","text":"TemporaryFile(/tmp/multipartBody499825167350229709asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101905795,"filename":"image_16062025_19_38_05_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7e1c2856f8529a4935550b457f479975.jpg","text":"TemporaryFile(/tmp/multipartBody6056184515413912984asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101905795,"filename":"image_16062025_21_23_05_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e0bf1eea8912b371a77b878789536fbc.jpg","text":"TemporaryFile(/tmp/multipartBody4158733363999008444asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101905795,"filename":"image_16062025_21_22_55_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a91e4def7017f59160e70f9b7e3162cb.jpg","text":"TemporaryFile(/tmp/multipartBody5913150898482866418asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101905795,"filename":"image_16062025_21_23_35_9674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ef700725958567a4e1edb93d6f59de73.jpg","text":"TemporaryFile(/tmp/multipartBody2334079029335469540asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101905795,"filename":"image_16062025_21_23_45_10675.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366596661","file1":"1366596656","file0":"1366596652","file4":"1366596668","file5":"1366596686","file3":"1366596665"},"map_files_photo_id_array":[{"photo_id":"1366596686","filename":"file5"},{"photo_id":"1366596661","filename":"file2"},{"photo_id":"1366596668","filename":"file4"},{"photo_id":"1366596656","filename":"file1"},{"photo_id":"1366596652","filename":"file0"},{"photo_id":"1366596665","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366596661":["hashtag1","hashtag2"]},{"1366596686":["hashtag1","hashtag2"]},{"1366596665":["hashtag1","hashtag2"]},{"1366596668":["hashtag1","hashtag2"]},{"1366596656":["hashtag1","hashtag2"]},{"1366596652":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366596661, 1366596686, 1366596665, 1366596668, 1366596656, 1366596652)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 55.411391496658325 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:25:03.060122
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/24/image_16062025_21_24_35_9663.jpg', 2), ('/home/nano/Desktop/images/16062025/21/24/image_16062025_21_24_25_9661.jpg', 2), ('/home/nano/Desktop/images/16062025/21/24/image_16062025_21_24_15_10715.jpg', 2), ('/home/nano/Desktop/images/16062025/21/23/image_16062025_21_24_05_9670.jpg', 2), ('/home/nano/Desktop/images/16062025/21/23/image_16062025_21_23_55_9665.jpg', 2), ('/home/nano/Desktop/images/16062025/19/37/image_16062025_19_37_55_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/24/image_16062025_21_24_35_9663.jpg', '/home/nano/Desktop/images/16062025/21/24/image_16062025_21_24_25_9661.jpg', '/home/nano/Desktop/images/16062025/21/24/image_16062025_21_24_15_10715.jpg', '/home/nano/Desktop/images/16062025/21/23/image_16062025_21_24_05_9670.jpg', '/home/nano/Desktop/images/16062025/21/23/image_16062025_21_23_55_9665.jpg', '/home/nano/Desktop/images/16062025/19/37/image_16062025_19_37_55_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/24/image_16062025_21_24_35_9663.jpg
/home/nano/Desktop/images/16062025/21/24/image_16062025_21_24_25_9661.jpg
/home/nano/Desktop/images/16062025/21/24/image_16062025_21_24_15_10715.jpg
/home/nano/Desktop/images/16062025/21/23/image_16062025_21_24_05_9670.jpg
/home/nano/Desktop/images/16062025/21/23/image_16062025_21_23_55_9665.jpg
/home/nano/Desktop/images/16062025/19/37/image_16062025_19_37_55_9610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366596709","1366596722","1366596716","1366596719","1366596704","1366596724"],"photo_ids_order":["1366596704","1366596709","1366596716","1366596719","1366596722","1366596724"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9e84f813ba62fe9d47106304ec28620b.jpg","text":"TemporaryFile(/tmp/multipartBody920521105379326528asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101966943,"filename":"image_16062025_21_24_25_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ad7a7d49adefe06de1782794506f4f70.jpg","text":"TemporaryFile(/tmp/multipartBody4208616928527826884asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101966943,"filename":"image_16062025_21_23_55_9665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0b48f4838c817e368cbd1bfef018d37b.jpg","text":"TemporaryFile(/tmp/multipartBody5628347504825137772asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101966943,"filename":"image_16062025_21_24_15_10715.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/999ea2b8007116a2ca45b342f1b25cd7.jpg","text":"TemporaryFile(/tmp/multipartBody4459084414790869360asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101966943,"filename":"image_16062025_21_24_05_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/52b2b7379af4c1f6bdb31477494d6b27.jpg","text":"TemporaryFile(/tmp/multipartBody2328724633492833938asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101966943,"filename":"image_16062025_21_24_35_9663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c0770f8be8406608217e9a6244d2a622.jpg","text":"TemporaryFile(/tmp/multipartBody1879679430154760839asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750101966943,"filename":"image_16062025_19_37_55_9610.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366596716","file1":"1366596709","file0":"1366596704","file4":"1366596722","file5":"1366596724","file3":"1366596719"},"map_files_photo_id_array":[{"photo_id":"1366596724","filename":"file5"},{"photo_id":"1366596716","filename":"file2"},{"photo_id":"1366596722","filename":"file4"},{"photo_id":"1366596709","filename":"file1"},{"photo_id":"1366596704","filename":"file0"},{"photo_id":"1366596719","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366596709":["hashtag1","hashtag2"]},{"1366596722":["hashtag1","hashtag2"]},{"1366596716":["hashtag1","hashtag2"]},{"1366596719":["hashtag1","hashtag2"]},{"1366596704":["hashtag1","hashtag2"]},{"1366596724":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366596709, 1366596722, 1366596716, 1366596719, 1366596704, 1366596724)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.56368112564087 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:26:03.071905
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/25/image_16062025_21_25_45_10671.jpg', 2), ('/home/nano/Desktop/images/16062025/21/25/image_16062025_21_25_35_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/21/25/image_16062025_21_25_15_10697.jpg', 2), ('/home/nano/Desktop/images/16062025/21/24/image_16062025_21_25_05_9681.jpg', 2), ('/home/nano/Desktop/images/16062025/21/24/image_16062025_21_24_55_9661.jpg', 2), ('/home/nano/Desktop/images/16062025/19/31/image_16062025_19_31_45_9609.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/25/image_16062025_21_25_45_10671.jpg', '/home/nano/Desktop/images/16062025/21/25/image_16062025_21_25_35_9657.jpg', '/home/nano/Desktop/images/16062025/21/25/image_16062025_21_25_15_10697.jpg', '/home/nano/Desktop/images/16062025/21/24/image_16062025_21_25_05_9681.jpg', '/home/nano/Desktop/images/16062025/21/24/image_16062025_21_24_55_9661.jpg', '/home/nano/Desktop/images/16062025/19/31/image_16062025_19_31_45_9609.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/25/image_16062025_21_25_45_10671.jpg
/home/nano/Desktop/images/16062025/21/25/image_16062025_21_25_35_9657.jpg
/home/nano/Desktop/images/16062025/21/25/image_16062025_21_25_15_10697.jpg
/home/nano/Desktop/images/16062025/21/24/image_16062025_21_25_05_9681.jpg
/home/nano/Desktop/images/16062025/21/24/image_16062025_21_24_55_9661.jpg
/home/nano/Desktop/images/16062025/19/31/image_16062025_19_31_45_9609.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366596748","1366596759","1366596738","1366596752","1366596755","1366596743"],"photo_ids_order":["1366596738","1366596743","1366596748","1366596752","1366596755","1366596759"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/953574893c9daf624ab008f2fa308c7b.jpg","text":"TemporaryFile(/tmp/multipartBody7110056229543872204asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102027069,"filename":"image_16062025_21_25_15_10697.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e14c807da7597bbf8b41d04f7cfcf5ad.jpg","text":"TemporaryFile(/tmp/multipartBody2832385883598377942asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102027069,"filename":"image_16062025_19_31_45_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2a8f23fda56d33f6d3498f920cf8e984.jpg","text":"TemporaryFile(/tmp/multipartBody4851404508842457467asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102027069,"filename":"image_16062025_21_25_45_10671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1c95301e228cd982adaa20d21c235ecc.jpg","text":"TemporaryFile(/tmp/multipartBody7651097330062819851asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102027069,"filename":"image_16062025_21_25_05_9681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7c25539768af624267c39a77346464d3.jpg","text":"TemporaryFile(/tmp/multipartBody8467891806525999526asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102027069,"filename":"image_16062025_21_24_55_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e0a901a48ee7de4ee1ed11cc0efed0cf.jpg","text":"TemporaryFile(/tmp/multipartBody8762664327999583274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102027069,"filename":"image_16062025_21_25_35_9657.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366596748","file1":"1366596743","file0":"1366596738","file4":"1366596755","file5":"1366596759","file3":"1366596752"},"map_files_photo_id_array":[{"photo_id":"1366596759","filename":"file5"},{"photo_id":"1366596748","filename":"file2"},{"photo_id":"1366596755","filename":"file4"},{"photo_id":"1366596743","filename":"file1"},{"photo_id":"1366596738","filename":"file0"},{"photo_id":"1366596752","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366596748":["hashtag1","hashtag2"]},{"1366596759":["hashtag1","hashtag2"]},{"1366596738":["hashtag1","hashtag2"]},{"1366596752":["hashtag1","hashtag2"]},{"1366596755":["hashtag1","hashtag2"]},{"1366596743":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366596748, 1366596759, 1366596738, 1366596752, 1366596755, 1366596743)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.264726877212524 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:27:03.245435
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/26/image_16062025_21_26_25_10673.jpg', 2), ('/home/nano/Desktop/images/16062025/21/26/image_16062025_21_26_14_9681.jpg', 2), ('/home/nano/Desktop/images/16062025/21/25/image_16062025_21_26_05_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/21/25/image_16062025_21_25_55_9663.jpg', 2), ('/home/nano/Desktop/images/16062025/19/31/image_16062025_19_31_35_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/19/31/image_16062025_19_31_25_9609.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/26/image_16062025_21_26_25_10673.jpg', '/home/nano/Desktop/images/16062025/21/26/image_16062025_21_26_14_9681.jpg', '/home/nano/Desktop/images/16062025/21/25/image_16062025_21_26_05_9667.jpg', '/home/nano/Desktop/images/16062025/21/25/image_16062025_21_25_55_9663.jpg', '/home/nano/Desktop/images/16062025/19/31/image_16062025_19_31_35_10619.jpg', '/home/nano/Desktop/images/16062025/19/31/image_16062025_19_31_25_9609.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/26/image_16062025_21_26_25_10673.jpg
/home/nano/Desktop/images/16062025/21/26/image_16062025_21_26_14_9681.jpg
/home/nano/Desktop/images/16062025/21/25/image_16062025_21_26_05_9667.jpg
/home/nano/Desktop/images/16062025/21/25/image_16062025_21_25_55_9663.jpg
/home/nano/Desktop/images/16062025/19/31/image_16062025_19_31_35_10619.jpg
/home/nano/Desktop/images/16062025/19/31/image_16062025_19_31_25_9609.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366596771","1366596804","1366596797","1366596790","1366596784","1366596778"],"photo_ids_order":["1366596771","1366596778","1366596784","1366596790","1366596797","1366596804"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2cd555e27eedd9f53b0a4d55f56f2773.jpg","text":"TemporaryFile(/tmp/multipartBody5006937696024656400asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102089785,"filename":"image_16062025_21_26_25_10673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/699401a5d8a578e962a3d386816698af.jpg","text":"TemporaryFile(/tmp/multipartBody8760967027934275151asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102089785,"filename":"image_16062025_19_31_25_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/db0ae71a450ddc53c34ebe94ee1c570e.jpg","text":"TemporaryFile(/tmp/multipartBody8716409732973496861asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102089785,"filename":"image_16062025_19_31_35_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7026bc2c313cfdabbda2410b44dc44d6.jpg","text":"TemporaryFile(/tmp/multipartBody7842694552898891264asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102089785,"filename":"image_16062025_21_25_55_9663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/57eb285b09b6b97dd4f457468063e24c.jpg","text":"TemporaryFile(/tmp/multipartBody9132680590340801477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102089785,"filename":"image_16062025_21_26_05_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7e179135cd540c1f8ef7f121c6809d5c.jpg","text":"TemporaryFile(/tmp/multipartBody1668821553553985838asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102089785,"filename":"image_16062025_21_26_14_9681.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366596784","file1":"1366596778","file0":"1366596771","file4":"1366596797","file5":"1366596804","file3":"1366596790"},"map_files_photo_id_array":[{"photo_id":"1366596804","filename":"file5"},{"photo_id":"1366596784","filename":"file2"},{"photo_id":"1366596797","filename":"file4"},{"photo_id":"1366596778","filename":"file1"},{"photo_id":"1366596771","filename":"file0"},{"photo_id":"1366596790","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366596771":["hashtag1","hashtag2"]},{"1366596804":["hashtag1","hashtag2"]},{"1366596797":["hashtag1","hashtag2"]},{"1366596790":["hashtag1","hashtag2"]},{"1366596784":["hashtag1","hashtag2"]},{"1366596778":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366596771, 1366596804, 1366596797, 1366596790, 1366596784, 1366596778)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.49828600883484 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:28:17.686342
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/28/image_16062025_21_28_44_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/21/28/image_16062025_21_28_35_9662.jpg', 2), ('/home/nano/Desktop/images/16062025/21/28/image_16062025_21_28_25_10670.jpg', 2), ('/home/nano/Desktop/images/16062025/21/28/image_16062025_21_28_14_9693.jpg', 2), ('/home/nano/Desktop/images/16062025/21/27/image_16062025_21_28_05_9670.jpg', 2), ('/home/nano/Desktop/images/16062025/21/27/image_16062025_21_27_55_10673.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/28/image_16062025_21_28_44_9667.jpg', '/home/nano/Desktop/images/16062025/21/28/image_16062025_21_28_35_9662.jpg', '/home/nano/Desktop/images/16062025/21/28/image_16062025_21_28_25_10670.jpg', '/home/nano/Desktop/images/16062025/21/28/image_16062025_21_28_14_9693.jpg', '/home/nano/Desktop/images/16062025/21/27/image_16062025_21_28_05_9670.jpg', '/home/nano/Desktop/images/16062025/21/27/image_16062025_21_27_55_10673.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/28/image_16062025_21_28_44_9667.jpg
/home/nano/Desktop/images/16062025/21/28/image_16062025_21_28_35_9662.jpg
/home/nano/Desktop/images/16062025/21/28/image_16062025_21_28_25_10670.jpg
/home/nano/Desktop/images/16062025/21/28/image_16062025_21_28_14_9693.jpg
/home/nano/Desktop/images/16062025/21/27/image_16062025_21_28_05_9670.jpg
/home/nano/Desktop/images/16062025/21/27/image_16062025_21_27_55_10673.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366596825","1366596819","1366596839","1366596836","1366596821","1366596844"],"photo_ids_order":["1366596819","1366596821","1366596825","1366596836","1366596839","1366596844"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1d865df2a016851268b25ced2200110f.jpg","text":"TemporaryFile(/tmp/multipartBody3256884901762795264asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102159874,"filename":"image_16062025_21_28_25_10670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/01d0e1f680955981ac5d648cfcc0ff93.jpg","text":"TemporaryFile(/tmp/multipartBody8340136951457809223asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102159874,"filename":"image_16062025_21_28_44_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d9afa1a77b49566ca11b16817a6acc7f.jpg","text":"TemporaryFile(/tmp/multipartBody1570801907355886367asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102159874,"filename":"image_16062025_21_28_05_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b8372d8b6d9f356b32d915387d49b09d.jpg","text":"TemporaryFile(/tmp/multipartBody940617931569446876asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102159874,"filename":"image_16062025_21_28_14_9693.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3cba3d2dcac7a6ff529e4e7429281b81.jpg","text":"TemporaryFile(/tmp/multipartBody2429735420376473824asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102159874,"filename":"image_16062025_21_28_35_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/161aa0d84bd76aa8a4ed48bf97caf5f5.jpg","text":"TemporaryFile(/tmp/multipartBody1873519640754868772asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102159874,"filename":"image_16062025_21_27_55_10673.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366596825","file1":"1366596821","file0":"1366596819","file4":"1366596839","file5":"1366596844","file3":"1366596836"},"map_files_photo_id_array":[{"photo_id":"1366596844","filename":"file5"},{"photo_id":"1366596825","filename":"file2"},{"photo_id":"1366596839","filename":"file4"},{"photo_id":"1366596821","filename":"file1"},{"photo_id":"1366596819","filename":"file0"},{"photo_id":"1366596836","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366596825":["hashtag1","hashtag2"]},{"1366596819":["hashtag1","hashtag2"]},{"1366596839":["hashtag1","hashtag2"]},{"1366596836":["hashtag1","hashtag2"]},{"1366596821":["hashtag1","hashtag2"]},{"1366596844":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366596825, 1366596819, 1366596839, 1366596836, 1366596821, 1366596844)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 49.93885922431946 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:29:16.792594
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/29/image_16062025_21_29_44_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/21/29/image_16062025_21_29_25_10668.jpg', 2), ('/home/nano/Desktop/images/16062025/21/29/image_16062025_21_29_14_9687.jpg', 2), ('/home/nano/Desktop/images/16062025/21/28/image_16062025_21_29_05_9661.jpg', 2), ('/home/nano/Desktop/images/16062025/21/28/image_16062025_21_28_55_10676.jpg', 2), ('/home/nano/Desktop/images/16062025/21/27/image_16062025_21_27_44_9664.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/29/image_16062025_21_29_44_9660.jpg', '/home/nano/Desktop/images/16062025/21/29/image_16062025_21_29_25_10668.jpg', '/home/nano/Desktop/images/16062025/21/29/image_16062025_21_29_14_9687.jpg', '/home/nano/Desktop/images/16062025/21/28/image_16062025_21_29_05_9661.jpg', '/home/nano/Desktop/images/16062025/21/28/image_16062025_21_28_55_10676.jpg', '/home/nano/Desktop/images/16062025/21/27/image_16062025_21_27_44_9664.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/29/image_16062025_21_29_44_9660.jpg
/home/nano/Desktop/images/16062025/21/29/image_16062025_21_29_25_10668.jpg
/home/nano/Desktop/images/16062025/21/29/image_16062025_21_29_14_9687.jpg
/home/nano/Desktop/images/16062025/21/28/image_16062025_21_29_05_9661.jpg
/home/nano/Desktop/images/16062025/21/28/image_16062025_21_28_55_10676.jpg
/home/nano/Desktop/images/16062025/21/27/image_16062025_21_27_44_9664.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366596870","1366596861","1366596918","1366596857","1366596911","1366596865"],"photo_ids_order":["1366596857","1366596861","1366596865","1366596870","1366596911","1366596918"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c188ef344cf7d4c59701245214602ed7.jpg","text":"TemporaryFile(/tmp/multipartBody4743040289719342892asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102218763,"filename":"image_16062025_21_29_05_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2f1486568382d1f8384e95b93c584c14.jpg","text":"TemporaryFile(/tmp/multipartBody727724812782068009asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102218763,"filename":"image_16062025_21_29_25_10668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6a75151aa1477c24f6d3ba0d136d2279.jpg","text":"TemporaryFile(/tmp/multipartBody4573418240864444096asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102218763,"filename":"image_16062025_21_27_44_9664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6b9f3a34d8a005ef42c48257afc7df44.jpg","text":"TemporaryFile(/tmp/multipartBody2139795339554667047asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102218763,"filename":"image_16062025_21_29_44_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ba55d9a94c6bd374e0bbf16708e0c210.jpg","text":"TemporaryFile(/tmp/multipartBody3268964008437995064asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102218763,"filename":"image_16062025_21_28_55_10676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d20d520658ba48847f71956fd4b9b982.jpg","text":"TemporaryFile(/tmp/multipartBody2101559226432013473asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102218763,"filename":"image_16062025_21_29_14_9687.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366596865","file1":"1366596861","file0":"1366596857","file4":"1366596911","file5":"1366596918","file3":"1366596870"},"map_files_photo_id_array":[{"photo_id":"1366596918","filename":"file5"},{"photo_id":"1366596865","filename":"file2"},{"photo_id":"1366596911","filename":"file4"},{"photo_id":"1366596861","filename":"file1"},{"photo_id":"1366596857","filename":"file0"},{"photo_id":"1366596870","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366596870":["hashtag1","hashtag2"]},{"1366596861":["hashtag1","hashtag2"]},{"1366596918":["hashtag1","hashtag2"]},{"1366596857":["hashtag1","hashtag2"]},{"1366596911":["hashtag1","hashtag2"]},{"1366596865":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366596870, 1366596861, 1366596918, 1366596857, 1366596911, 1366596865)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 60.78142952919006 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:30:31.884008
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/30/image_16062025_21_30_45_9660.jpg', 2), ('/home/nano/Desktop/images/16062025/21/30/image_16062025_21_30_35_9678.jpg', 2), ('/home/nano/Desktop/images/16062025/21/30/image_16062025_21_30_25_10669.jpg', 2), ('/home/nano/Desktop/images/16062025/21/30/image_16062025_21_30_15_9685.jpg', 2), ('/home/nano/Desktop/images/16062025/21/29/image_16062025_21_30_05_9666.jpg', 2), ('/home/nano/Desktop/images/16062025/21/29/image_16062025_21_29_55_10687.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/30/image_16062025_21_30_45_9660.jpg', '/home/nano/Desktop/images/16062025/21/30/image_16062025_21_30_35_9678.jpg', '/home/nano/Desktop/images/16062025/21/30/image_16062025_21_30_25_10669.jpg', '/home/nano/Desktop/images/16062025/21/30/image_16062025_21_30_15_9685.jpg', '/home/nano/Desktop/images/16062025/21/29/image_16062025_21_30_05_9666.jpg', '/home/nano/Desktop/images/16062025/21/29/image_16062025_21_29_55_10687.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/30/image_16062025_21_30_45_9660.jpg
/home/nano/Desktop/images/16062025/21/30/image_16062025_21_30_35_9678.jpg
/home/nano/Desktop/images/16062025/21/30/image_16062025_21_30_25_10669.jpg
/home/nano/Desktop/images/16062025/21/30/image_16062025_21_30_15_9685.jpg
/home/nano/Desktop/images/16062025/21/29/image_16062025_21_30_05_9666.jpg
/home/nano/Desktop/images/16062025/21/29/image_16062025_21_29_55_10687.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366596952","1366596969","1366596960","1366596948","1366596957","1366596962"],"photo_ids_order":["1366596948","1366596952","1366596957","1366596960","1366596962","1366596969"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9c9a58039b647e9f870e971ca9a804c7.jpg","text":"TemporaryFile(/tmp/multipartBody4925296318127688371asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102294462,"filename":"image_16062025_21_30_35_9678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7fd9c8171da032accd29bc160fae0162.jpg","text":"TemporaryFile(/tmp/multipartBody130838422291455647asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102294462,"filename":"image_16062025_21_29_55_10687.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c53d20c83a8ef35ef38934285f7c774c.jpg","text":"TemporaryFile(/tmp/multipartBody7513878538740845237asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102294462,"filename":"image_16062025_21_30_15_9685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/698e0c89ff63ce30e07930724a4b2e78.jpg","text":"TemporaryFile(/tmp/multipartBody6335041706497483769asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102294462,"filename":"image_16062025_21_30_45_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/33d93e30334a1fb9fc6122c717788bdb.jpg","text":"TemporaryFile(/tmp/multipartBody8470265712537042321asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102294462,"filename":"image_16062025_21_30_25_10669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fb635fb7562ca0ff5cd55dfb13e3397b.jpg","text":"TemporaryFile(/tmp/multipartBody8527845101711147869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102294462,"filename":"image_16062025_21_30_05_9666.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366596957","file1":"1366596952","file0":"1366596948","file4":"1366596962","file5":"1366596969","file3":"1366596960"},"map_files_photo_id_array":[{"photo_id":"1366596969","filename":"file5"},{"photo_id":"1366596957","filename":"file2"},{"photo_id":"1366596962","filename":"file4"},{"photo_id":"1366596952","filename":"file1"},{"photo_id":"1366596948","filename":"file0"},{"photo_id":"1366596960","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366596952":["hashtag1","hashtag2"]},{"1366596969":["hashtag1","hashtag2"]},{"1366596960":["hashtag1","hashtag2"]},{"1366596948":["hashtag1","hashtag2"]},{"1366596957":["hashtag1","hashtag2"]},{"1366596962":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366596952, 1366596969, 1366596960, 1366596948, 1366596957, 1366596962)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 62.66153931617737 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:31:46.967381
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/31/image_16062025_21_31_45_9666.jpg', 2), ('/home/nano/Desktop/images/16062025/21/31/image_16062025_21_31_35_9661.jpg', 2), ('/home/nano/Desktop/images/16062025/21/31/image_16062025_21_31_25_10685.jpg', 2), ('/home/nano/Desktop/images/16062025/21/31/image_16062025_21_31_15_9670.jpg', 2), ('/home/nano/Desktop/images/16062025/21/30/image_16062025_21_31_05_9663.jpg', 2), ('/home/nano/Desktop/images/16062025/21/30/image_16062025_21_30_55_10685.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/31/image_16062025_21_31_45_9666.jpg', '/home/nano/Desktop/images/16062025/21/31/image_16062025_21_31_35_9661.jpg', '/home/nano/Desktop/images/16062025/21/31/image_16062025_21_31_25_10685.jpg', '/home/nano/Desktop/images/16062025/21/31/image_16062025_21_31_15_9670.jpg', '/home/nano/Desktop/images/16062025/21/30/image_16062025_21_31_05_9663.jpg', '/home/nano/Desktop/images/16062025/21/30/image_16062025_21_30_55_10685.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/31/image_16062025_21_31_45_9666.jpg
/home/nano/Desktop/images/16062025/21/31/image_16062025_21_31_35_9661.jpg
/home/nano/Desktop/images/16062025/21/31/image_16062025_21_31_25_10685.jpg
/home/nano/Desktop/images/16062025/21/31/image_16062025_21_31_15_9670.jpg
/home/nano/Desktop/images/16062025/21/30/image_16062025_21_31_05_9663.jpg
/home/nano/Desktop/images/16062025/21/30/image_16062025_21_30_55_10685.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366597000","1366597011","1366596992","1366596983","1366596986","1366597006"],"photo_ids_order":["1366596983","1366596986","1366596992","1366597000","1366597006","1366597011"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/05d8a7a5933e6f98ef2b2b92e4d89b72.jpg","text":"TemporaryFile(/tmp/multipartBody6171514319419510356asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102368449,"filename":"image_16062025_21_31_15_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/29f57c7de6a885e05ced972a78d7be02.jpg","text":"TemporaryFile(/tmp/multipartBody8195538725787398317asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102368449,"filename":"image_16062025_21_30_55_10685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fcb0c880b06a80b2f189a44e52852b0e.jpg","text":"TemporaryFile(/tmp/multipartBody6241903890633043029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102368449,"filename":"image_16062025_21_31_25_10685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2e8dfab2a79757d3bf39b66f7873da43.jpg","text":"TemporaryFile(/tmp/multipartBody6584438914485126727asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102368449,"filename":"image_16062025_21_31_45_9666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/117d59847fb95b230bddf29a69609e5d.jpg","text":"TemporaryFile(/tmp/multipartBody4243363719880074606asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102368449,"filename":"image_16062025_21_31_35_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/229b0a2eec3835fe0339468e0e574eb6.jpg","text":"TemporaryFile(/tmp/multipartBody1042954307782653780asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102368449,"filename":"image_16062025_21_31_05_9663.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366596992","file1":"1366596986","file0":"1366596983","file4":"1366597006","file5":"1366597011","file3":"1366597000"},"map_files_photo_id_array":[{"photo_id":"1366597011","filename":"file5"},{"photo_id":"1366596992","filename":"file2"},{"photo_id":"1366597006","filename":"file4"},{"photo_id":"1366596986","filename":"file1"},{"photo_id":"1366596983","filename":"file0"},{"photo_id":"1366597000","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366597000":["hashtag1","hashtag2"]},{"1366597011":["hashtag1","hashtag2"]},{"1366596992":["hashtag1","hashtag2"]},{"1366596983":["hashtag1","hashtag2"]},{"1366596986":["hashtag1","hashtag2"]},{"1366597006":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366597000, 1366597011, 1366596992, 1366596983, 1366596986, 1366597006)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 56.162962198257446 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:32:47.102584
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/32/image_16062025_21_32_45_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/21/32/image_16062025_21_32_35_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/21/32/image_16062025_21_32_25_10668.jpg', 2), ('/home/nano/Desktop/images/16062025/21/32/image_16062025_21_32_15_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/21/31/image_16062025_21_32_05_9678.jpg', 2), ('/home/nano/Desktop/images/16062025/21/31/image_16062025_21_31_55_10677.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/32/image_16062025_21_32_45_9657.jpg', '/home/nano/Desktop/images/16062025/21/32/image_16062025_21_32_35_9657.jpg', '/home/nano/Desktop/images/16062025/21/32/image_16062025_21_32_25_10668.jpg', '/home/nano/Desktop/images/16062025/21/32/image_16062025_21_32_15_9667.jpg', '/home/nano/Desktop/images/16062025/21/31/image_16062025_21_32_05_9678.jpg', '/home/nano/Desktop/images/16062025/21/31/image_16062025_21_31_55_10677.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/32/image_16062025_21_32_45_9657.jpg
/home/nano/Desktop/images/16062025/21/32/image_16062025_21_32_35_9657.jpg
/home/nano/Desktop/images/16062025/21/32/image_16062025_21_32_25_10668.jpg
/home/nano/Desktop/images/16062025/21/32/image_16062025_21_32_15_9667.jpg
/home/nano/Desktop/images/16062025/21/31/image_16062025_21_32_05_9678.jpg
/home/nano/Desktop/images/16062025/21/31/image_16062025_21_31_55_10677.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366597050","1366597053","1366597061","1366597057","1366597045","1366597039"],"photo_ids_order":["1366597039","1366597045","1366597050","1366597053","1366597057","1366597061"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/658da8701c1ce984d2ad3c2e93100cf6.jpg","text":"TemporaryFile(/tmp/multipartBody8227825146234526757asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102429719,"filename":"image_16062025_21_32_25_10668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/55fee6b1c04efc2a263bb9bba4ae7bd5.jpg","text":"TemporaryFile(/tmp/multipartBody1173998900712701346asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102429719,"filename":"image_16062025_21_32_15_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c2d53e50a90bb569dee6a52b7da660d9.jpg","text":"TemporaryFile(/tmp/multipartBody6903461058735897167asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102429719,"filename":"image_16062025_21_31_55_10677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f4a9c3069f7e8cb9f6c7d9b29973a3bb.jpg","text":"TemporaryFile(/tmp/multipartBody390010398783347504asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102429719,"filename":"image_16062025_21_32_05_9678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f3d6d1c95f62781fe52916d7fb072f77.jpg","text":"TemporaryFile(/tmp/multipartBody6444671387190912958asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102429719,"filename":"image_16062025_21_32_35_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/723df12bd0e600a1c04cb283b73d9fb4.jpg","text":"TemporaryFile(/tmp/multipartBody4100522907525228819asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102429719,"filename":"image_16062025_21_32_45_9657.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366597050","file1":"1366597045","file0":"1366597039","file4":"1366597057","file5":"1366597061","file3":"1366597053"},"map_files_photo_id_array":[{"photo_id":"1366597061","filename":"file5"},{"photo_id":"1366597050","filename":"file2"},{"photo_id":"1366597057","filename":"file4"},{"photo_id":"1366597045","filename":"file1"},{"photo_id":"1366597039","filename":"file0"},{"photo_id":"1366597053","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366597050":["hashtag1","hashtag2"]},{"1366597053":["hashtag1","hashtag2"]},{"1366597061":["hashtag1","hashtag2"]},{"1366597057":["hashtag1","hashtag2"]},{"1366597045":["hashtag1","hashtag2"]},{"1366597039":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366597050, 1366597053, 1366597061, 1366597057, 1366597045, 1366597039)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.049062728881836 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:33:47.178479
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/33/image_16062025_21_33_25_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/21/33/image_16062025_21_33_15_9665.jpg', 2), ('/home/nano/Desktop/images/16062025/21/32/image_16062025_21_33_05_9674.jpg', 2), ('/home/nano/Desktop/images/16062025/21/32/image_16062025_21_32_55_10666.jpg', 2), ('/home/nano/Desktop/images/16062025/21/27/image_16062025_21_27_35_9661.jpg', 2), ('/home/nano/Desktop/images/16062025/21/27/image_16062025_21_27_25_10686.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/33/image_16062025_21_33_25_10666.jpg', '/home/nano/Desktop/images/16062025/21/33/image_16062025_21_33_15_9665.jpg', '/home/nano/Desktop/images/16062025/21/32/image_16062025_21_33_05_9674.jpg', '/home/nano/Desktop/images/16062025/21/32/image_16062025_21_32_55_10666.jpg', '/home/nano/Desktop/images/16062025/21/27/image_16062025_21_27_35_9661.jpg', '/home/nano/Desktop/images/16062025/21/27/image_16062025_21_27_25_10686.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/33/image_16062025_21_33_25_10666.jpg
/home/nano/Desktop/images/16062025/21/33/image_16062025_21_33_15_9665.jpg
/home/nano/Desktop/images/16062025/21/32/image_16062025_21_33_05_9674.jpg
/home/nano/Desktop/images/16062025/21/32/image_16062025_21_32_55_10666.jpg
/home/nano/Desktop/images/16062025/21/27/image_16062025_21_27_35_9661.jpg
/home/nano/Desktop/images/16062025/21/27/image_16062025_21_27_25_10686.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366597091","1366597104","1366597076","1366597085","1366597099","1366597081"],"photo_ids_order":["1366597076","1366597081","1366597085","1366597091","1366597099","1366597104"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5d773b60ddc733ddb044d43f54cf4761.jpg","text":"TemporaryFile(/tmp/multipartBody8995490722861463070asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102489966,"filename":"image_16062025_21_32_55_10666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/16cd7ace9f1a53b9b213d28b0333f742.jpg","text":"TemporaryFile(/tmp/multipartBody2435661615226144588asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102489966,"filename":"image_16062025_21_27_25_10686.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9b32a60d15d177b4e00337efcc21caf1.jpg","text":"TemporaryFile(/tmp/multipartBody6761258981112669774asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102489966,"filename":"image_16062025_21_33_25_10666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/42f611cce1692525f71cb6cadc4ed30b.jpg","text":"TemporaryFile(/tmp/multipartBody7797913501557315832asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102489966,"filename":"image_16062025_21_33_05_9674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/19f6c6dd246d42d44a21a870448c5242.jpg","text":"TemporaryFile(/tmp/multipartBody6992972236774240012asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102489966,"filename":"image_16062025_21_27_35_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a153876b9937424c736fcb24b0cab6f0.jpg","text":"TemporaryFile(/tmp/multipartBody2424204760181756456asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102489966,"filename":"image_16062025_21_33_15_9665.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366597085","file1":"1366597081","file0":"1366597076","file4":"1366597099","file5":"1366597104","file3":"1366597091"},"map_files_photo_id_array":[{"photo_id":"1366597104","filename":"file5"},{"photo_id":"1366597085","filename":"file2"},{"photo_id":"1366597099","filename":"file4"},{"photo_id":"1366597081","filename":"file1"},{"photo_id":"1366597076","filename":"file0"},{"photo_id":"1366597091","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366597091":["hashtag1","hashtag2"]},{"1366597104":["hashtag1","hashtag2"]},{"1366597076":["hashtag1","hashtag2"]},{"1366597085":["hashtag1","hashtag2"]},{"1366597099":["hashtag1","hashtag2"]},{"1366597081":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366597091, 1366597104, 1366597076, 1366597085, 1366597099, 1366597081)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 49.24947452545166 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:34:47.306778
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/34/image_16062025_21_34_45_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/21/34/image_16062025_21_34_35_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/21/34/image_16062025_21_34_25_10667.jpg', 2), ('/home/nano/Desktop/images/16062025/21/34/image_16062025_21_34_15_9676.jpg', 2), ('/home/nano/Desktop/images/16062025/21/33/image_16062025_21_34_05_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/21/33/image_16062025_21_33_45_9658.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/34/image_16062025_21_34_45_9664.jpg', '/home/nano/Desktop/images/16062025/21/34/image_16062025_21_34_35_9657.jpg', '/home/nano/Desktop/images/16062025/21/34/image_16062025_21_34_25_10667.jpg', '/home/nano/Desktop/images/16062025/21/34/image_16062025_21_34_15_9676.jpg', '/home/nano/Desktop/images/16062025/21/33/image_16062025_21_34_05_9669.jpg', '/home/nano/Desktop/images/16062025/21/33/image_16062025_21_33_45_9658.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/34/image_16062025_21_34_45_9664.jpg
/home/nano/Desktop/images/16062025/21/34/image_16062025_21_34_35_9657.jpg
/home/nano/Desktop/images/16062025/21/34/image_16062025_21_34_25_10667.jpg
/home/nano/Desktop/images/16062025/21/34/image_16062025_21_34_15_9676.jpg
/home/nano/Desktop/images/16062025/21/33/image_16062025_21_34_05_9669.jpg
/home/nano/Desktop/images/16062025/21/33/image_16062025_21_33_45_9658.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366597137","1366597122","1366597125","1366597119","1366597127","1366597132"],"photo_ids_order":["1366597119","1366597122","1366597125","1366597127","1366597132","1366597137"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9694192d5c0def6fb359043d175f6ace.jpg","text":"TemporaryFile(/tmp/multipartBody897934490379064099asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102551391,"filename":"image_16062025_21_33_45_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/10701d318ce6e52863e26f19dcb578a0.jpg","text":"TemporaryFile(/tmp/multipartBody5269169588393968519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102551391,"filename":"image_16062025_21_34_35_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6acfb3224765981620f7ed74b6c332b3.jpg","text":"TemporaryFile(/tmp/multipartBody1973184674143953134asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102551391,"filename":"image_16062025_21_34_25_10667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1801fc567f707c0c74d37ea444716275.jpg","text":"TemporaryFile(/tmp/multipartBody4820632929036685417asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102551391,"filename":"image_16062025_21_34_45_9664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c7860a2df83c4879aeb348db08ed05cc.jpg","text":"TemporaryFile(/tmp/multipartBody2100089406607989044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102551391,"filename":"image_16062025_21_34_15_9676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/992d610bf755ca8155f55f78c2f979a3.jpg","text":"TemporaryFile(/tmp/multipartBody877364936472123144asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102551391,"filename":"image_16062025_21_34_05_9669.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366597125","file1":"1366597122","file0":"1366597119","file4":"1366597132","file5":"1366597137","file3":"1366597127"},"map_files_photo_id_array":[{"photo_id":"1366597137","filename":"file5"},{"photo_id":"1366597125","filename":"file2"},{"photo_id":"1366597132","filename":"file4"},{"photo_id":"1366597122","filename":"file1"},{"photo_id":"1366597119","filename":"file0"},{"photo_id":"1366597127","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366597137":["hashtag1","hashtag2"]},{"1366597122":["hashtag1","hashtag2"]},{"1366597125":["hashtag1","hashtag2"]},{"1366597119":["hashtag1","hashtag2"]},{"1366597127":["hashtag1","hashtag2"]},{"1366597132":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366597137, 1366597122, 1366597125, 1366597119, 1366597127, 1366597132)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 52.64481711387634 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:35:47.439612
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/35/image_16062025_21_35_45_9665.jpg', 2), ('/home/nano/Desktop/images/16062025/21/35/image_16062025_21_35_25_10669.jpg', 2), ('/home/nano/Desktop/images/16062025/21/35/image_16062025_21_35_15_9698.jpg', 2), ('/home/nano/Desktop/images/16062025/21/34/image_16062025_21_35_05_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/21/34/image_16062025_21_34_55_10671.jpg', 2), ('/home/nano/Desktop/images/16062025/21/27/image_16062025_21_27_14_9679.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/35/image_16062025_21_35_45_9665.jpg', '/home/nano/Desktop/images/16062025/21/35/image_16062025_21_35_25_10669.jpg', '/home/nano/Desktop/images/16062025/21/35/image_16062025_21_35_15_9698.jpg', '/home/nano/Desktop/images/16062025/21/34/image_16062025_21_35_05_9673.jpg', '/home/nano/Desktop/images/16062025/21/34/image_16062025_21_34_55_10671.jpg', '/home/nano/Desktop/images/16062025/21/27/image_16062025_21_27_14_9679.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/35/image_16062025_21_35_45_9665.jpg
/home/nano/Desktop/images/16062025/21/35/image_16062025_21_35_25_10669.jpg
/home/nano/Desktop/images/16062025/21/35/image_16062025_21_35_15_9698.jpg
/home/nano/Desktop/images/16062025/21/34/image_16062025_21_35_05_9673.jpg
/home/nano/Desktop/images/16062025/21/34/image_16062025_21_34_55_10671.jpg
/home/nano/Desktop/images/16062025/21/27/image_16062025_21_27_14_9679.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366597207","1366597185","1366597173","1366597199","1366597193","1366597162"],"photo_ids_order":["1366597162","1366597173","1366597185","1366597193","1366597199","1366597207"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/afc17701012bca096611805de0f7ce71.jpg","text":"TemporaryFile(/tmp/multipartBody8062455395442114261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102646080,"filename":"image_16062025_21_27_14_9679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ab3660e693781fa6c1f769ce54f7641d.jpg","text":"TemporaryFile(/tmp/multipartBody254315836286612879asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102646080,"filename":"image_16062025_21_35_15_9698.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/29ef4d5f0154ede60987cefc8d4c2576.jpg","text":"TemporaryFile(/tmp/multipartBody7439241497699995808asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102646080,"filename":"image_16062025_21_35_25_10669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/16f53e12b8aa8d3fa53d852488ff2d6d.jpg","text":"TemporaryFile(/tmp/multipartBody2036309800995146508asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102646080,"filename":"image_16062025_21_34_55_10671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9eb4dd7c897fa723351f17220384b740.jpg","text":"TemporaryFile(/tmp/multipartBody4305116744104937915asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102646080,"filename":"image_16062025_21_35_05_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/741af88eef20eab85903ae83dec33372.jpg","text":"TemporaryFile(/tmp/multipartBody1873846282978001048asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102646080,"filename":"image_16062025_21_35_45_9665.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366597185","file1":"1366597173","file0":"1366597162","file4":"1366597199","file5":"1366597207","file3":"1366597193"},"map_files_photo_id_array":[{"photo_id":"1366597207","filename":"file5"},{"photo_id":"1366597185","filename":"file2"},{"photo_id":"1366597199","filename":"file4"},{"photo_id":"1366597173","filename":"file1"},{"photo_id":"1366597162","filename":"file0"},{"photo_id":"1366597193","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366597207":["hashtag1","hashtag2"]},{"1366597185":["hashtag1","hashtag2"]},{"1366597173":["hashtag1","hashtag2"]},{"1366597199":["hashtag1","hashtag2"]},{"1366597193":["hashtag1","hashtag2"]},{"1366597162":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366597207, 1366597185, 1366597173, 1366597199, 1366597193, 1366597162)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 171.54151725769043 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:38:47.747240
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/38/image_16062025_21_38_45_9665.jpg', 2), ('/home/nano/Desktop/images/16062025/21/38/image_16062025_21_38_24_9666.jpg', 2), ('/home/nano/Desktop/images/16062025/21/38/image_16062025_21_38_15_9686.jpg', 2), ('/home/nano/Desktop/images/16062025/21/37/image_16062025_21_38_05_10677.jpg', 2), ('/home/nano/Desktop/images/16062025/21/37/image_16062025_21_37_54_9670.jpg', 2), ('/home/nano/Desktop/images/16062025/21/37/image_16062025_21_37_45_9679.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/38/image_16062025_21_38_45_9665.jpg', '/home/nano/Desktop/images/16062025/21/38/image_16062025_21_38_24_9666.jpg', '/home/nano/Desktop/images/16062025/21/38/image_16062025_21_38_15_9686.jpg', '/home/nano/Desktop/images/16062025/21/37/image_16062025_21_38_05_10677.jpg', '/home/nano/Desktop/images/16062025/21/37/image_16062025_21_37_54_9670.jpg', '/home/nano/Desktop/images/16062025/21/37/image_16062025_21_37_45_9679.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/38/image_16062025_21_38_45_9665.jpg
/home/nano/Desktop/images/16062025/21/38/image_16062025_21_38_24_9666.jpg
/home/nano/Desktop/images/16062025/21/38/image_16062025_21_38_15_9686.jpg
/home/nano/Desktop/images/16062025/21/37/image_16062025_21_38_05_10677.jpg
/home/nano/Desktop/images/16062025/21/37/image_16062025_21_37_54_9670.jpg
/home/nano/Desktop/images/16062025/21/37/image_16062025_21_37_45_9679.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366597224","1366597248","1366597253","1366597234","1366597228","1366597243"],"photo_ids_order":["1366597224","1366597228","1366597234","1366597243","1366597248","1366597253"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1c9b9382ce60f344a2c1de0b2a01f2d0.jpg","text":"TemporaryFile(/tmp/multipartBody799872161647112259asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102790150,"filename":"image_16062025_21_38_45_9665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/082805a0d8775ea46ad1d6a0a70a6f9b.jpg","text":"TemporaryFile(/tmp/multipartBody7759287547504720832asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102790150,"filename":"image_16062025_21_37_54_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c613e10092d728008ec2f60968d204c8.jpg","text":"TemporaryFile(/tmp/multipartBody3389329233529536781asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102790150,"filename":"image_16062025_21_37_45_9679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9b0d636dc68239c2ca64203a86ead596.jpg","text":"TemporaryFile(/tmp/multipartBody7396960843962967899asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102790150,"filename":"image_16062025_21_38_15_9686.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/36e08ed19893ceeff41e3da151257dea.jpg","text":"TemporaryFile(/tmp/multipartBody2642332035163188498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102790150,"filename":"image_16062025_21_38_24_9666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3dd64318c68222101489d4f4e26354d4.jpg","text":"TemporaryFile(/tmp/multipartBody4236942564917350658asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102790150,"filename":"image_16062025_21_38_05_10677.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366597234","file1":"1366597228","file0":"1366597224","file4":"1366597248","file5":"1366597253","file3":"1366597243"},"map_files_photo_id_array":[{"photo_id":"1366597253","filename":"file5"},{"photo_id":"1366597234","filename":"file2"},{"photo_id":"1366597248","filename":"file4"},{"photo_id":"1366597228","filename":"file1"},{"photo_id":"1366597224","filename":"file0"},{"photo_id":"1366597243","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366597224":["hashtag1","hashtag2"]},{"1366597248":["hashtag1","hashtag2"]},{"1366597253":["hashtag1","hashtag2"]},{"1366597234":["hashtag1","hashtag2"]},{"1366597228":["hashtag1","hashtag2"]},{"1366597243":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366597224, 1366597248, 1366597253, 1366597234, 1366597228, 1366597243)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.04957938194275 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:39:46.943854
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/39/image_16062025_21_39_45_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/21/39/image_16062025_21_39_35_10680.jpg', 2), ('/home/nano/Desktop/images/16062025/21/39/image_16062025_21_39_25_9709.jpg', 2), ('/home/nano/Desktop/images/16062025/21/39/image_16062025_21_39_15_9817.jpg', 2), ('/home/nano/Desktop/images/16062025/21/38/image_16062025_21_38_54_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/21/37/image_16062025_21_37_35_10676.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/39/image_16062025_21_39_45_9673.jpg', '/home/nano/Desktop/images/16062025/21/39/image_16062025_21_39_35_10680.jpg', '/home/nano/Desktop/images/16062025/21/39/image_16062025_21_39_25_9709.jpg', '/home/nano/Desktop/images/16062025/21/39/image_16062025_21_39_15_9817.jpg', '/home/nano/Desktop/images/16062025/21/38/image_16062025_21_38_54_9664.jpg', '/home/nano/Desktop/images/16062025/21/37/image_16062025_21_37_35_10676.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/39/image_16062025_21_39_45_9673.jpg
/home/nano/Desktop/images/16062025/21/39/image_16062025_21_39_35_10680.jpg
/home/nano/Desktop/images/16062025/21/39/image_16062025_21_39_25_9709.jpg
/home/nano/Desktop/images/16062025/21/39/image_16062025_21_39_15_9817.jpg
/home/nano/Desktop/images/16062025/21/38/image_16062025_21_38_54_9664.jpg
/home/nano/Desktop/images/16062025/21/37/image_16062025_21_37_35_10676.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366597299","1366597335","1366597329","1366597280","1366597322","1366597315"],"photo_ids_order":["1366597280","1366597299","1366597315","1366597322","1366597329","1366597335"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9c756a945fefd6684804aa8555612bed.jpg","text":"TemporaryFile(/tmp/multipartBody2795892804704304125asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102854150,"filename":"image_16062025_21_39_35_10680.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9e695d0f2ef13917ab810b77905c23c1.jpg","text":"TemporaryFile(/tmp/multipartBody4719666577499770911asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102854150,"filename":"image_16062025_21_37_35_10676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/32b80309e6e1f19a457801d0ec6c3f41.jpg","text":"TemporaryFile(/tmp/multipartBody2272495908593177673asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102854150,"filename":"image_16062025_21_38_54_9664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/98632e89d73abcd869bce0c4c7d26350.jpg","text":"TemporaryFile(/tmp/multipartBody8332721773706738354asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102854150,"filename":"image_16062025_21_39_45_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d41c5a0b3c132486adc1286c7562a5e3.jpg","text":"TemporaryFile(/tmp/multipartBody6432635984319186901asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102854150,"filename":"image_16062025_21_39_15_9817.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b93230a3f0a98cc1de2ac671a2503c35.jpg","text":"TemporaryFile(/tmp/multipartBody8334032834163780729asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102854150,"filename":"image_16062025_21_39_25_9709.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366597315","file1":"1366597299","file0":"1366597280","file4":"1366597329","file5":"1366597335","file3":"1366597322"},"map_files_photo_id_array":[{"photo_id":"1366597335","filename":"file5"},{"photo_id":"1366597315","filename":"file2"},{"photo_id":"1366597329","filename":"file4"},{"photo_id":"1366597299","filename":"file1"},{"photo_id":"1366597280","filename":"file0"},{"photo_id":"1366597322","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366597299":["hashtag1","hashtag2"]},{"1366597335":["hashtag1","hashtag2"]},{"1366597329":["hashtag1","hashtag2"]},{"1366597280":["hashtag1","hashtag2"]},{"1366597322":["hashtag1","hashtag2"]},{"1366597315":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366597299, 1366597335, 1366597329, 1366597280, 1366597322, 1366597315)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 62.914896726608276 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:41:02.747849
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/40/image_16062025_21_40_45_10681.jpg', 2), ('/home/nano/Desktop/images/16062025/21/40/image_16062025_21_40_34_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/21/40/image_16062025_21_40_25_9689.jpg', 2), ('/home/nano/Desktop/images/16062025/21/40/image_16062025_21_40_15_10698.jpg', 2), ('/home/nano/Desktop/images/16062025/21/39/image_16062025_21_40_04_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/21/39/image_16062025_21_39_55_9665.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/40/image_16062025_21_40_45_10681.jpg', '/home/nano/Desktop/images/16062025/21/40/image_16062025_21_40_34_9669.jpg', '/home/nano/Desktop/images/16062025/21/40/image_16062025_21_40_25_9689.jpg', '/home/nano/Desktop/images/16062025/21/40/image_16062025_21_40_15_10698.jpg', '/home/nano/Desktop/images/16062025/21/39/image_16062025_21_40_04_9673.jpg', '/home/nano/Desktop/images/16062025/21/39/image_16062025_21_39_55_9665.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/40/image_16062025_21_40_45_10681.jpg
/home/nano/Desktop/images/16062025/21/40/image_16062025_21_40_34_9669.jpg
/home/nano/Desktop/images/16062025/21/40/image_16062025_21_40_25_9689.jpg
/home/nano/Desktop/images/16062025/21/40/image_16062025_21_40_15_10698.jpg
/home/nano/Desktop/images/16062025/21/39/image_16062025_21_40_04_9673.jpg
/home/nano/Desktop/images/16062025/21/39/image_16062025_21_39_55_9665.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366597385","1366597370","1366597373","1366597364","1366597381","1366597390"],"photo_ids_order":["1366597364","1366597370","1366597373","1366597381","1366597385","1366597390"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5ef2271e9299942e3597197e375fb2c1.jpg","text":"TemporaryFile(/tmp/multipartBody1994034994811066959asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102925665,"filename":"image_16062025_21_40_04_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c06709917200b1928c20b7864de89551.jpg","text":"TemporaryFile(/tmp/multipartBody4055938035131054742asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102925665,"filename":"image_16062025_21_40_34_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/eded2403ba53996204c99b4bd4dccc35.jpg","text":"TemporaryFile(/tmp/multipartBody2674600974162531184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102925665,"filename":"image_16062025_21_40_25_9689.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5e4fc0e77a9b1ce836d02880d7e77933.jpg","text":"TemporaryFile(/tmp/multipartBody6429115639077588729asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102925665,"filename":"image_16062025_21_40_45_10681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/83a591d444a2929047f80d8b5eeec971.jpg","text":"TemporaryFile(/tmp/multipartBody2030256689601463434asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102925665,"filename":"image_16062025_21_40_15_10698.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0fc4a87ea37b7c0d273e40da4b8f282e.jpg","text":"TemporaryFile(/tmp/multipartBody1538021313894685094asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102925665,"filename":"image_16062025_21_39_55_9665.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366597373","file1":"1366597370","file0":"1366597364","file4":"1366597385","file5":"1366597390","file3":"1366597381"},"map_files_photo_id_array":[{"photo_id":"1366597390","filename":"file5"},{"photo_id":"1366597373","filename":"file2"},{"photo_id":"1366597385","filename":"file4"},{"photo_id":"1366597370","filename":"file1"},{"photo_id":"1366597364","filename":"file0"},{"photo_id":"1366597381","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366597385":["hashtag1","hashtag2"]},{"1366597370":["hashtag1","hashtag2"]},{"1366597373":["hashtag1","hashtag2"]},{"1366597364":["hashtag1","hashtag2"]},{"1366597381":["hashtag1","hashtag2"]},{"1366597390":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366597385, 1366597370, 1366597373, 1366597364, 1366597381, 1366597390)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 66.75670027732849 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:42:17.244708
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/42/image_16062025_21_42_45_10675.jpg', 2), ('/home/nano/Desktop/images/16062025/21/42/image_16062025_21_42_35_9665.jpg', 2), ('/home/nano/Desktop/images/16062025/21/42/image_16062025_21_42_25_9666.jpg', 2), ('/home/nano/Desktop/images/16062025/21/42/image_16062025_21_42_15_10729.jpg', 2), ('/home/nano/Desktop/images/16062025/21/41/image_16062025_21_41_55_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/21/41/image_16062025_21_41_45_10674.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/42/image_16062025_21_42_45_10675.jpg', '/home/nano/Desktop/images/16062025/21/42/image_16062025_21_42_35_9665.jpg', '/home/nano/Desktop/images/16062025/21/42/image_16062025_21_42_25_9666.jpg', '/home/nano/Desktop/images/16062025/21/42/image_16062025_21_42_15_10729.jpg', '/home/nano/Desktop/images/16062025/21/41/image_16062025_21_41_55_9664.jpg', '/home/nano/Desktop/images/16062025/21/41/image_16062025_21_41_45_10674.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/42/image_16062025_21_42_45_10675.jpg
/home/nano/Desktop/images/16062025/21/42/image_16062025_21_42_35_9665.jpg
/home/nano/Desktop/images/16062025/21/42/image_16062025_21_42_25_9666.jpg
/home/nano/Desktop/images/16062025/21/42/image_16062025_21_42_15_10729.jpg
/home/nano/Desktop/images/16062025/21/41/image_16062025_21_41_55_9664.jpg
/home/nano/Desktop/images/16062025/21/41/image_16062025_21_41_45_10674.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366597494","1366597411","1366597422","1366597481","1366597462","1366597417"],"photo_ids_order":["1366597411","1366597417","1366597422","1366597462","1366597481","1366597494"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7350c107c9c21511aa6b3e8aa08788a0.jpg","text":"TemporaryFile(/tmp/multipartBody7338947025610691816asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102999924,"filename":"image_16062025_21_41_45_10674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4a05a741ca442bf0c045f8bb9fec29eb.jpg","text":"TemporaryFile(/tmp/multipartBody621946389469515484asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102999924,"filename":"image_16062025_21_42_45_10675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/abee6c36990e7665758d6140a726c6ee.jpg","text":"TemporaryFile(/tmp/multipartBody5556402139544553498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102999924,"filename":"image_16062025_21_42_25_9666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b0fa2f2d13bb2f5e06a53a98bce9c5f2.jpg","text":"TemporaryFile(/tmp/multipartBody8248364386140496303asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102999924,"filename":"image_16062025_21_41_55_9664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/94634680cc56f49d7d0a3b3cea2c80bf.jpg","text":"TemporaryFile(/tmp/multipartBody2660293557064402064asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102999924,"filename":"image_16062025_21_42_15_10729.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fe56c59be282dfa31d77549e050a5327.jpg","text":"TemporaryFile(/tmp/multipartBody2271853686455671592asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750102999924,"filename":"image_16062025_21_42_35_9665.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366597422","file1":"1366597417","file0":"1366597411","file4":"1366597481","file5":"1366597494","file3":"1366597462"},"map_files_photo_id_array":[{"photo_id":"1366597494","filename":"file5"},{"photo_id":"1366597422","filename":"file2"},{"photo_id":"1366597481","filename":"file4"},{"photo_id":"1366597417","filename":"file1"},{"photo_id":"1366597411","filename":"file0"},{"photo_id":"1366597462","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366597494":["hashtag1","hashtag2"]},{"1366597411":["hashtag1","hashtag2"]},{"1366597422":["hashtag1","hashtag2"]},{"1366597481":["hashtag1","hashtag2"]},{"1366597462":["hashtag1","hashtag2"]},{"1366597417":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366597494, 1366597411, 1366597422, 1366597481, 1366597462, 1366597417)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 49.052913427352905 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:43:17.341567
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/43/image_16062025_21_43_45_10684.jpg', 2), ('/home/nano/Desktop/images/16062025/21/43/image_16062025_21_43_35_9682.jpg', 2), ('/home/nano/Desktop/images/16062025/21/43/image_16062025_21_43_25_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/21/43/image_16062025_21_43_15_10696.jpg', 2), ('/home/nano/Desktop/images/16062025/21/42/image_16062025_21_43_05_9685.jpg', 2), ('/home/nano/Desktop/images/16062025/21/42/image_16062025_21_42_55_9667.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/43/image_16062025_21_43_45_10684.jpg', '/home/nano/Desktop/images/16062025/21/43/image_16062025_21_43_35_9682.jpg', '/home/nano/Desktop/images/16062025/21/43/image_16062025_21_43_25_9664.jpg', '/home/nano/Desktop/images/16062025/21/43/image_16062025_21_43_15_10696.jpg', '/home/nano/Desktop/images/16062025/21/42/image_16062025_21_43_05_9685.jpg', '/home/nano/Desktop/images/16062025/21/42/image_16062025_21_42_55_9667.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/43/image_16062025_21_43_45_10684.jpg
/home/nano/Desktop/images/16062025/21/43/image_16062025_21_43_35_9682.jpg
/home/nano/Desktop/images/16062025/21/43/image_16062025_21_43_25_9664.jpg
/home/nano/Desktop/images/16062025/21/43/image_16062025_21_43_15_10696.jpg
/home/nano/Desktop/images/16062025/21/42/image_16062025_21_43_05_9685.jpg
/home/nano/Desktop/images/16062025/21/42/image_16062025_21_42_55_9667.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366597603","1366597593","1366597578","1366597532","1366597597","1366597599"],"photo_ids_order":["1366597532","1366597578","1366597593","1366597597","1366597599","1366597603"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f2d0fc22b05e493ea5cc270baf66d608.jpg","text":"TemporaryFile(/tmp/multipartBody278431868653040045asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103060476,"filename":"image_16062025_21_42_55_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b8c1e582960f127df2037955a34c26e3.jpg","text":"TemporaryFile(/tmp/multipartBody3475860453890756976asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103060476,"filename":"image_16062025_21_43_25_9664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c77453ec978a2ed37111836c6eb2024a.jpg","text":"TemporaryFile(/tmp/multipartBody9049283468957300968asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103060476,"filename":"image_16062025_21_43_35_9682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/728231e3c8fadccc9e6914e0abf98c21.jpg","text":"TemporaryFile(/tmp/multipartBody1979470547417582394asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103060476,"filename":"image_16062025_21_43_45_10684.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/84091e18116ef10a5317a35f4adf14f2.jpg","text":"TemporaryFile(/tmp/multipartBody6955151311715565908asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103060476,"filename":"image_16062025_21_43_15_10696.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6591cfa88e11daba8fb088f0e5ff14e7.jpg","text":"TemporaryFile(/tmp/multipartBody6679876988286465638asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103060476,"filename":"image_16062025_21_43_05_9685.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366597593","file1":"1366597578","file0":"1366597532","file4":"1366597599","file5":"1366597603","file3":"1366597597"},"map_files_photo_id_array":[{"photo_id":"1366597603","filename":"file5"},{"photo_id":"1366597593","filename":"file2"},{"photo_id":"1366597599","filename":"file4"},{"photo_id":"1366597578","filename":"file1"},{"photo_id":"1366597532","filename":"file0"},{"photo_id":"1366597597","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366597603":["hashtag1","hashtag2"]},{"1366597593":["hashtag1","hashtag2"]},{"1366597578":["hashtag1","hashtag2"]},{"1366597532":["hashtag1","hashtag2"]},{"1366597597":["hashtag1","hashtag2"]},{"1366597599":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366597603, 1366597593, 1366597578, 1366597532, 1366597597, 1366597599)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.62179970741272 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:44:17.449022
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/44/image_16062025_21_44_44_9665.jpg', 2), ('/home/nano/Desktop/images/16062025/21/44/image_16062025_21_44_35_9705.jpg', 2), ('/home/nano/Desktop/images/16062025/21/44/image_16062025_21_44_25_9684.jpg', 2), ('/home/nano/Desktop/images/16062025/21/44/image_16062025_21_44_15_10703.jpg', 2), ('/home/nano/Desktop/images/16062025/21/43/image_16062025_21_44_05_9672.jpg', 2), ('/home/nano/Desktop/images/16062025/21/43/image_16062025_21_43_55_9665.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/44/image_16062025_21_44_44_9665.jpg', '/home/nano/Desktop/images/16062025/21/44/image_16062025_21_44_35_9705.jpg', '/home/nano/Desktop/images/16062025/21/44/image_16062025_21_44_25_9684.jpg', '/home/nano/Desktop/images/16062025/21/44/image_16062025_21_44_15_10703.jpg', '/home/nano/Desktop/images/16062025/21/43/image_16062025_21_44_05_9672.jpg', '/home/nano/Desktop/images/16062025/21/43/image_16062025_21_43_55_9665.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/44/image_16062025_21_44_44_9665.jpg
/home/nano/Desktop/images/16062025/21/44/image_16062025_21_44_35_9705.jpg
/home/nano/Desktop/images/16062025/21/44/image_16062025_21_44_25_9684.jpg
/home/nano/Desktop/images/16062025/21/44/image_16062025_21_44_15_10703.jpg
/home/nano/Desktop/images/16062025/21/43/image_16062025_21_44_05_9672.jpg
/home/nano/Desktop/images/16062025/21/43/image_16062025_21_43_55_9665.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 302.7925455570221 secondes ---
<Response [502]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>502 Proxy Error</title>\n</head><body>\n<h1>Proxy Error</h1>\n<p>The proxy server received an invalid\r\nresponse from an upstream server.<br />\r\nThe proxy server could not handle the request<p>Reason: <strong>Error reading from remote server</strong></p></p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
502
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:49:32.352702
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/49/image_16062025_21_49_45_9665.jpg', 2), ('/home/nano/Desktop/images/16062025/21/49/image_16062025_21_49_35_9674.jpg', 2), ('/home/nano/Desktop/images/16062025/21/49/image_16062025_21_49_25_10675.jpg', 2), ('/home/nano/Desktop/images/16062025/21/49/image_16062025_21_49_15_9674.jpg', 2), ('/home/nano/Desktop/images/16062025/21/48/image_16062025_21_49_05_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/21/48/image_16062025_21_48_55_10674.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/49/image_16062025_21_49_45_9665.jpg', '/home/nano/Desktop/images/16062025/21/49/image_16062025_21_49_35_9674.jpg', '/home/nano/Desktop/images/16062025/21/49/image_16062025_21_49_25_10675.jpg', '/home/nano/Desktop/images/16062025/21/49/image_16062025_21_49_15_9674.jpg', '/home/nano/Desktop/images/16062025/21/48/image_16062025_21_49_05_9671.jpg', '/home/nano/Desktop/images/16062025/21/48/image_16062025_21_48_55_10674.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/49/image_16062025_21_49_45_9665.jpg
/home/nano/Desktop/images/16062025/21/49/image_16062025_21_49_35_9674.jpg
/home/nano/Desktop/images/16062025/21/49/image_16062025_21_49_25_10675.jpg
/home/nano/Desktop/images/16062025/21/49/image_16062025_21_49_15_9674.jpg
/home/nano/Desktop/images/16062025/21/48/image_16062025_21_49_05_9671.jpg
/home/nano/Desktop/images/16062025/21/48/image_16062025_21_48_55_10674.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366597710","1366597745","1366597727","1366597736","1366597700","1366597718"],"photo_ids_order":["1366597700","1366597710","1366597718","1366597727","1366597736","1366597745"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c3c8b1cd0e6611acd1a0abb47526775b.jpg","text":"TemporaryFile(/tmp/multipartBody7663120873451075927asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103449306,"filename":"image_16062025_21_49_35_9674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c742ee36c7fcc3d540fdd8ee6e15ad51.jpg","text":"TemporaryFile(/tmp/multipartBody3893996792119603880asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103449306,"filename":"image_16062025_21_48_55_10674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/27665f0711d4a964615d470a9bec2766.jpg","text":"TemporaryFile(/tmp/multipartBody1725442441283929asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103449306,"filename":"image_16062025_21_49_15_9674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/95e1da4bd9c97f550764e3d37f160c0e.jpg","text":"TemporaryFile(/tmp/multipartBody6785872689113495744asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103449306,"filename":"image_16062025_21_49_05_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9409a0c43370e6b515bb7602df3e39b2.jpg","text":"TemporaryFile(/tmp/multipartBody2207070641770345630asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103449306,"filename":"image_16062025_21_49_45_9665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a398fea36cb4d9b5279ec0204b5574d3.jpg","text":"TemporaryFile(/tmp/multipartBody1586582634013298521asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103449306,"filename":"image_16062025_21_49_25_10675.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366597718","file1":"1366597710","file0":"1366597700","file4":"1366597736","file5":"1366597745","file3":"1366597727"},"map_files_photo_id_array":[{"photo_id":"1366597745","filename":"file5"},{"photo_id":"1366597718","filename":"file2"},{"photo_id":"1366597736","filename":"file4"},{"photo_id":"1366597710","filename":"file1"},{"photo_id":"1366597700","filename":"file0"},{"photo_id":"1366597727","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366597710":["hashtag1","hashtag2"]},{"1366597745":["hashtag1","hashtag2"]},{"1366597727":["hashtag1","hashtag2"]},{"1366597736":["hashtag1","hashtag2"]},{"1366597700":["hashtag1","hashtag2"]},{"1366597718":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366597710, 1366597745, 1366597727, 1366597736, 1366597700, 1366597718)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 90.84290146827698 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:51:17.483529
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/51/image_16062025_21_51_45_9681.jpg', 2), ('/home/nano/Desktop/images/16062025/21/51/image_16062025_21_51_35_10693.jpg', 2), ('/home/nano/Desktop/images/16062025/21/51/image_16062025_21_51_15_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/21/50/image_16062025_21_51_05_10701.jpg', 2), ('/home/nano/Desktop/images/16062025/21/50/image_16062025_21_50_54_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/21/50/image_16062025_21_50_45_9666.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/51/image_16062025_21_51_45_9681.jpg', '/home/nano/Desktop/images/16062025/21/51/image_16062025_21_51_35_10693.jpg', '/home/nano/Desktop/images/16062025/21/51/image_16062025_21_51_15_9673.jpg', '/home/nano/Desktop/images/16062025/21/50/image_16062025_21_51_05_10701.jpg', '/home/nano/Desktop/images/16062025/21/50/image_16062025_21_50_54_9664.jpg', '/home/nano/Desktop/images/16062025/21/50/image_16062025_21_50_45_9666.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/51/image_16062025_21_51_45_9681.jpg
/home/nano/Desktop/images/16062025/21/51/image_16062025_21_51_35_10693.jpg
/home/nano/Desktop/images/16062025/21/51/image_16062025_21_51_15_9673.jpg
/home/nano/Desktop/images/16062025/21/50/image_16062025_21_51_05_10701.jpg
/home/nano/Desktop/images/16062025/21/50/image_16062025_21_50_54_9664.jpg
/home/nano/Desktop/images/16062025/21/50/image_16062025_21_50_45_9666.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366597801","1366597773","1366597829","1366597808","1366597762","1366597794"],"photo_ids_order":["1366597762","1366597773","1366597794","1366597801","1366597808","1366597829"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a0c981f2dccab1ea9bd348e6da3bdef7.jpg","text":"TemporaryFile(/tmp/multipartBody8102860024344742177asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103540422,"filename":"image_16062025_21_51_05_10701.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d7b939a2689249a3476856edbae1b14f.jpg","text":"TemporaryFile(/tmp/multipartBody2711316809553561547asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103540422,"filename":"image_16062025_21_51_35_10693.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/51de410c75a7571715ae080465e48988.jpg","text":"TemporaryFile(/tmp/multipartBody698452445894018060asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103540422,"filename":"image_16062025_21_50_45_9666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a2c865340bab9e5ae7519f1893aa9c1b.jpg","text":"TemporaryFile(/tmp/multipartBody915808786349073182asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103540422,"filename":"image_16062025_21_50_54_9664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3ccd96adfcc3a89d8d603450f52ae3ba.jpg","text":"TemporaryFile(/tmp/multipartBody6502717887214351331asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103540422,"filename":"image_16062025_21_51_45_9681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c3622b5a75e7a85eeb999cf7c8996c3e.jpg","text":"TemporaryFile(/tmp/multipartBody1074964196391253955asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103540422,"filename":"image_16062025_21_51_15_9673.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366597794","file1":"1366597773","file0":"1366597762","file4":"1366597808","file5":"1366597829","file3":"1366597801"},"map_files_photo_id_array":[{"photo_id":"1366597829","filename":"file5"},{"photo_id":"1366597794","filename":"file2"},{"photo_id":"1366597808","filename":"file4"},{"photo_id":"1366597773","filename":"file1"},{"photo_id":"1366597762","filename":"file0"},{"photo_id":"1366597801","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366597801":["hashtag1","hashtag2"]},{"1366597773":["hashtag1","hashtag2"]},{"1366597829":["hashtag1","hashtag2"]},{"1366597808":["hashtag1","hashtag2"]},{"1366597762":["hashtag1","hashtag2"]},{"1366597794":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366597801, 1366597773, 1366597829, 1366597808, 1366597762, 1366597794)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 88.15451693534851 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:52:47.585764
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/52/image_16062025_21_52_45_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/21/52/image_16062025_21_52_35_10679.jpg', 2), ('/home/nano/Desktop/images/16062025/21/52/image_16062025_21_52_25_9670.jpg', 2), ('/home/nano/Desktop/images/16062025/21/52/image_16062025_21_52_15_9678.jpg', 2), ('/home/nano/Desktop/images/16062025/21/51/image_16062025_21_52_05_10686.jpg', 2), ('/home/nano/Desktop/images/16062025/21/51/image_16062025_21_51_55_9666.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/52/image_16062025_21_52_45_9668.jpg', '/home/nano/Desktop/images/16062025/21/52/image_16062025_21_52_35_10679.jpg', '/home/nano/Desktop/images/16062025/21/52/image_16062025_21_52_25_9670.jpg', '/home/nano/Desktop/images/16062025/21/52/image_16062025_21_52_15_9678.jpg', '/home/nano/Desktop/images/16062025/21/51/image_16062025_21_52_05_10686.jpg', '/home/nano/Desktop/images/16062025/21/51/image_16062025_21_51_55_9666.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/52/image_16062025_21_52_45_9668.jpg
/home/nano/Desktop/images/16062025/21/52/image_16062025_21_52_35_10679.jpg
/home/nano/Desktop/images/16062025/21/52/image_16062025_21_52_25_9670.jpg
/home/nano/Desktop/images/16062025/21/52/image_16062025_21_52_15_9678.jpg
/home/nano/Desktop/images/16062025/21/51/image_16062025_21_52_05_10686.jpg
/home/nano/Desktop/images/16062025/21/51/image_16062025_21_51_55_9666.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366597899","1366597935","1366597905","1366597895","1366597922","1366597915"],"photo_ids_order":["1366597895","1366597899","1366597905","1366597915","1366597922","1366597935"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0ed1e98cefbe74d4814ae4d6e0e94232.jpg","text":"TemporaryFile(/tmp/multipartBody5217180786699491778asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103654709,"filename":"image_16062025_21_52_35_10679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c42b0ac6c9d1731c87eac57d933a6d4f.jpg","text":"TemporaryFile(/tmp/multipartBody7452413163876417252asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103654709,"filename":"image_16062025_21_51_55_9666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7bf66a28cbb3a9677b5bf84b69a999d7.jpg","text":"TemporaryFile(/tmp/multipartBody3179983410220914547asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103654709,"filename":"image_16062025_21_52_25_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6ea7c3c2d11227a72ed3ac7e7eb8d31f.jpg","text":"TemporaryFile(/tmp/multipartBody6020875819224456459asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103654709,"filename":"image_16062025_21_52_45_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1a8488ef60364291242f0e818c37ccc8.jpg","text":"TemporaryFile(/tmp/multipartBody6046926148284548736asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103654709,"filename":"image_16062025_21_52_05_10686.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/93d077af2c171acae6b5862f8caffa06.jpg","text":"TemporaryFile(/tmp/multipartBody4350625113668077568asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103654709,"filename":"image_16062025_21_52_15_9678.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366597905","file1":"1366597899","file0":"1366597895","file4":"1366597922","file5":"1366597935","file3":"1366597915"},"map_files_photo_id_array":[{"photo_id":"1366597935","filename":"file5"},{"photo_id":"1366597905","filename":"file2"},{"photo_id":"1366597922","filename":"file4"},{"photo_id":"1366597899","filename":"file1"},{"photo_id":"1366597895","filename":"file0"},{"photo_id":"1366597915","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366597899":["hashtag1","hashtag2"]},{"1366597935":["hashtag1","hashtag2"]},{"1366597905":["hashtag1","hashtag2"]},{"1366597895":["hashtag1","hashtag2"]},{"1366597922":["hashtag1","hashtag2"]},{"1366597915":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366597899, 1366597935, 1366597905, 1366597895, 1366597922, 1366597915)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 121.64470720291138 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:55:02.373181
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/54/image_16062025_21_54_45_10685.jpg', 2), ('/home/nano/Desktop/images/16062025/21/54/image_16062025_21_54_34_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/21/54/image_16062025_21_54_25_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/21/53/image_16062025_21_54_04_9704.jpg', 2), ('/home/nano/Desktop/images/16062025/21/53/image_16062025_21_53_45_10681.jpg', 2), ('/home/nano/Desktop/images/16062025/21/53/image_16062025_21_53_34_9682.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/54/image_16062025_21_54_45_10685.jpg', '/home/nano/Desktop/images/16062025/21/54/image_16062025_21_54_34_9667.jpg', '/home/nano/Desktop/images/16062025/21/54/image_16062025_21_54_25_9667.jpg', '/home/nano/Desktop/images/16062025/21/53/image_16062025_21_54_04_9704.jpg', '/home/nano/Desktop/images/16062025/21/53/image_16062025_21_53_45_10681.jpg', '/home/nano/Desktop/images/16062025/21/53/image_16062025_21_53_34_9682.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/54/image_16062025_21_54_45_10685.jpg
/home/nano/Desktop/images/16062025/21/54/image_16062025_21_54_34_9667.jpg
/home/nano/Desktop/images/16062025/21/54/image_16062025_21_54_25_9667.jpg
/home/nano/Desktop/images/16062025/21/53/image_16062025_21_54_04_9704.jpg
/home/nano/Desktop/images/16062025/21/53/image_16062025_21_53_45_10681.jpg
/home/nano/Desktop/images/16062025/21/53/image_16062025_21_53_34_9682.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366597998","1366598001","1366598004","1366597994","1366597984","1366597989"],"photo_ids_order":["1366597984","1366597989","1366597994","1366597998","1366598001","1366598004"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9ff34fd3485bb5ac5b7743c515d7135c.jpg","text":"TemporaryFile(/tmp/multipartBody5995646663184367553asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103766708,"filename":"image_16062025_21_54_04_9704.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/70237657819d30ba1cc3aff6d479c0aa.jpg","text":"TemporaryFile(/tmp/multipartBody7970655543802967858asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103766708,"filename":"image_16062025_21_53_45_10681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c3612a63c790cc276fb60d085b947186.jpg","text":"TemporaryFile(/tmp/multipartBody3848443844932418775asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103766708,"filename":"image_16062025_21_53_34_9682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/21516bdff702cc19fa92ba47ba2e6f3a.jpg","text":"TemporaryFile(/tmp/multipartBody2542498797043615752asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103766708,"filename":"image_16062025_21_54_25_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1ad110de522875a65fd06eadd426fc04.jpg","text":"TemporaryFile(/tmp/multipartBody6829889140271839047asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103766708,"filename":"image_16062025_21_54_45_10685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/749599f7ad03e509477bb38659175f5d.jpg","text":"TemporaryFile(/tmp/multipartBody6881731231346889446asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103766708,"filename":"image_16062025_21_54_34_9667.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366597994","file1":"1366597989","file0":"1366597984","file4":"1366598001","file5":"1366598004","file3":"1366597998"},"map_files_photo_id_array":[{"photo_id":"1366598004","filename":"file5"},{"photo_id":"1366597994","filename":"file2"},{"photo_id":"1366598001","filename":"file4"},{"photo_id":"1366597989","filename":"file1"},{"photo_id":"1366597984","filename":"file0"},{"photo_id":"1366597998","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366597998":["hashtag1","hashtag2"]},{"1366598001":["hashtag1","hashtag2"]},{"1366598004":["hashtag1","hashtag2"]},{"1366597994":["hashtag1","hashtag2"]},{"1366597984":["hashtag1","hashtag2"]},{"1366597989":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366597998, 1366598001, 1366598004, 1366597994, 1366597984, 1366597989)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 55.324827671051025 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:56:02.531492
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/55/image_16062025_21_55_45_10702.jpg', 2), ('/home/nano/Desktop/images/16062025/21/55/image_16062025_21_55_35_9670.jpg', 2), ('/home/nano/Desktop/images/16062025/21/55/image_16062025_21_55_25_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/21/55/image_16062025_21_55_15_10710.jpg', 2), ('/home/nano/Desktop/images/16062025/21/54/image_16062025_21_55_05_9686.jpg', 2), ('/home/nano/Desktop/images/16062025/21/54/image_16062025_21_54_55_9668.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/55/image_16062025_21_55_45_10702.jpg', '/home/nano/Desktop/images/16062025/21/55/image_16062025_21_55_35_9670.jpg', '/home/nano/Desktop/images/16062025/21/55/image_16062025_21_55_25_9668.jpg', '/home/nano/Desktop/images/16062025/21/55/image_16062025_21_55_15_10710.jpg', '/home/nano/Desktop/images/16062025/21/54/image_16062025_21_55_05_9686.jpg', '/home/nano/Desktop/images/16062025/21/54/image_16062025_21_54_55_9668.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/55/image_16062025_21_55_45_10702.jpg
/home/nano/Desktop/images/16062025/21/55/image_16062025_21_55_35_9670.jpg
/home/nano/Desktop/images/16062025/21/55/image_16062025_21_55_25_9668.jpg
/home/nano/Desktop/images/16062025/21/55/image_16062025_21_55_15_10710.jpg
/home/nano/Desktop/images/16062025/21/54/image_16062025_21_55_05_9686.jpg
/home/nano/Desktop/images/16062025/21/54/image_16062025_21_54_55_9668.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366598067","1366598034","1366598072","1366598075","1366598080","1366598027"],"photo_ids_order":["1366598027","1366598034","1366598067","1366598072","1366598075","1366598080"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2415a0165cab42de9b3b36f43f0aea87.jpg","text":"TemporaryFile(/tmp/multipartBody5099275573113758887asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103827301,"filename":"image_16062025_21_55_25_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0a8a9dec058da47f786e8ae203e1da73.jpg","text":"TemporaryFile(/tmp/multipartBody4131921957990912606asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103827301,"filename":"image_16062025_21_55_35_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d005f2e2ae7bb03dac8ae4804913d2bb.jpg","text":"TemporaryFile(/tmp/multipartBody2045216824404697031asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103827301,"filename":"image_16062025_21_55_15_10710.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8f432e98b2d92576ed1778dbefd429ed.jpg","text":"TemporaryFile(/tmp/multipartBody378434530409724398asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103827301,"filename":"image_16062025_21_55_05_9686.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/348f84cbafefa4a0e0c7a937b84e4680.jpg","text":"TemporaryFile(/tmp/multipartBody9054487350362486810asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103827301,"filename":"image_16062025_21_54_55_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8ccd986c0df15611cc29bc41a0717b36.jpg","text":"TemporaryFile(/tmp/multipartBody960138031117828788asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103827301,"filename":"image_16062025_21_55_45_10702.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366598067","file1":"1366598034","file0":"1366598027","file4":"1366598075","file5":"1366598080","file3":"1366598072"},"map_files_photo_id_array":[{"photo_id":"1366598080","filename":"file5"},{"photo_id":"1366598067","filename":"file2"},{"photo_id":"1366598075","filename":"file4"},{"photo_id":"1366598034","filename":"file1"},{"photo_id":"1366598027","filename":"file0"},{"photo_id":"1366598072","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366598067":["hashtag1","hashtag2"]},{"1366598034":["hashtag1","hashtag2"]},{"1366598072":["hashtag1","hashtag2"]},{"1366598075":["hashtag1","hashtag2"]},{"1366598080":["hashtag1","hashtag2"]},{"1366598027":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366598067, 1366598034, 1366598072, 1366598075, 1366598080, 1366598027)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 78.36043334007263 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:57:32.038970
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_44_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_35_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_25_10685.jpg', 2), ('/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_14_9681.jpg', 2), ('/home/nano/Desktop/images/16062025/21/56/image_16062025_21_57_05_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/21/56/image_16062025_21_56_55_9678.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_44_9668.jpg', '/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_35_9668.jpg', '/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_25_10685.jpg', '/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_14_9681.jpg', '/home/nano/Desktop/images/16062025/21/56/image_16062025_21_57_05_9677.jpg', '/home/nano/Desktop/images/16062025/21/56/image_16062025_21_56_55_9678.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_44_9668.jpg
/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_35_9668.jpg
/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_25_10685.jpg
/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_14_9681.jpg
/home/nano/Desktop/images/16062025/21/56/image_16062025_21_57_05_9677.jpg
/home/nano/Desktop/images/16062025/21/56/image_16062025_21_56_55_9678.jpg
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:58:02.643388
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_44_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_35_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_25_10685.jpg', 2), ('/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_14_9681.jpg', 2), ('/home/nano/Desktop/images/16062025/21/56/image_16062025_21_57_05_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/21/56/image_16062025_21_56_55_9678.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_44_9668.jpg', '/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_35_9668.jpg', '/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_25_10685.jpg', '/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_14_9681.jpg', '/home/nano/Desktop/images/16062025/21/56/image_16062025_21_57_05_9677.jpg', '/home/nano/Desktop/images/16062025/21/56/image_16062025_21_56_55_9678.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_44_9668.jpg
/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_35_9668.jpg
/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_25_10685.jpg
/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_14_9681.jpg
/home/nano/Desktop/images/16062025/21/56/image_16062025_21_57_05_9677.jpg
/home/nano/Desktop/images/16062025/21/56/image_16062025_21_56_55_9678.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366598145","1366598148","1366598133","1366598141","1366598149","1366598137"],"photo_ids_order":["1366598133","1366598137","1366598141","1366598145","1366598148","1366598149"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a7db62f59aca147b896ddecbb9a9afb8.jpg","text":"TemporaryFile(/tmp/multipartBody442988000438969014asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103945269,"filename":"image_16062025_21_57_14_9681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4e77deeddfa26710cda16da0952b7067.jpg","text":"TemporaryFile(/tmp/multipartBody5708096996011422068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103945269,"filename":"image_16062025_21_57_05_9677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/186c97d8a3a571578f41a6d94d1bc465.jpg","text":"TemporaryFile(/tmp/multipartBody4360664554844954232asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103945269,"filename":"image_16062025_21_57_44_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/199387ac302d7e66eff3f3233995c26a.jpg","text":"TemporaryFile(/tmp/multipartBody9066572466513027063asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103945269,"filename":"image_16062025_21_57_25_10685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1f6d562b31755e8a6ea9097eaf150744.jpg","text":"TemporaryFile(/tmp/multipartBody5220812203263266460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103945269,"filename":"image_16062025_21_56_55_9678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7097c65cece388e43e058d2765a934cb.jpg","text":"TemporaryFile(/tmp/multipartBody8271585593622299965asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750103945269,"filename":"image_16062025_21_57_35_9668.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366598141","file1":"1366598137","file0":"1366598133","file4":"1366598148","file5":"1366598149","file3":"1366598145"},"map_files_photo_id_array":[{"photo_id":"1366598149","filename":"file5"},{"photo_id":"1366598141","filename":"file2"},{"photo_id":"1366598148","filename":"file4"},{"photo_id":"1366598137","filename":"file1"},{"photo_id":"1366598133","filename":"file0"},{"photo_id":"1366598145","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366598145":["hashtag1","hashtag2"]},{"1366598148":["hashtag1","hashtag2"]},{"1366598133":["hashtag1","hashtag2"]},{"1366598141":["hashtag1","hashtag2"]},{"1366598149":["hashtag1","hashtag2"]},{"1366598137":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366598145, 1366598148, 1366598133, 1366598141, 1366598149, 1366598137)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.81793689727783 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 21:59:03.313825
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/21/58/image_16062025_21_58_44_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/21/58/image_16062025_21_58_35_9685.jpg', 2), ('/home/nano/Desktop/images/16062025/21/58/image_16062025_21_58_25_10679.jpg', 2), ('/home/nano/Desktop/images/16062025/21/58/image_16062025_21_58_14_9695.jpg', 2), ('/home/nano/Desktop/images/16062025/21/57/image_16062025_21_58_05_9672.jpg', 2), ('/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_55_10679.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/21/58/image_16062025_21_58_44_9667.jpg', '/home/nano/Desktop/images/16062025/21/58/image_16062025_21_58_35_9685.jpg', '/home/nano/Desktop/images/16062025/21/58/image_16062025_21_58_25_10679.jpg', '/home/nano/Desktop/images/16062025/21/58/image_16062025_21_58_14_9695.jpg', '/home/nano/Desktop/images/16062025/21/57/image_16062025_21_58_05_9672.jpg', '/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_55_10679.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/21/58/image_16062025_21_58_44_9667.jpg
/home/nano/Desktop/images/16062025/21/58/image_16062025_21_58_35_9685.jpg
/home/nano/Desktop/images/16062025/21/58/image_16062025_21_58_25_10679.jpg
/home/nano/Desktop/images/16062025/21/58/image_16062025_21_58_14_9695.jpg
/home/nano/Desktop/images/16062025/21/57/image_16062025_21_58_05_9672.jpg
/home/nano/Desktop/images/16062025/21/57/image_16062025_21_57_55_10679.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366598266","1366598298","1366598292","1366598286","1366598268","1366598235"],"photo_ids_order":["1366598235","1366598266","1366598268","1366598286","1366598292","1366598298"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/66763007c40a0c987ebe08b81dc68ef4.jpg","text":"TemporaryFile(/tmp/multipartBody7765026974514485447asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104017835,"filename":"image_16062025_21_58_35_9685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bffe50295c2bd01860e50fddf2a95d3c.jpg","text":"TemporaryFile(/tmp/multipartBody751621057081349474asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104017835,"filename":"image_16062025_21_57_55_10679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/257fd6bbbf321f65319636e8d74bf6b5.jpg","text":"TemporaryFile(/tmp/multipartBody6559046009967816652asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104017835,"filename":"image_16062025_21_58_05_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4279368566cefea53eff466287ec99ac.jpg","text":"TemporaryFile(/tmp/multipartBody8850264528633935534asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104017835,"filename":"image_16062025_21_58_14_9695.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fb46ed9a1d324f9313d2e18f7855d059.jpg","text":"TemporaryFile(/tmp/multipartBody8135833901249367271asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104017835,"filename":"image_16062025_21_58_25_10679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c83dd197effee8eea8eccf9322720f72.jpg","text":"TemporaryFile(/tmp/multipartBody4121352417670795741asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104017835,"filename":"image_16062025_21_58_44_9667.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366598268","file1":"1366598266","file0":"1366598235","file4":"1366598292","file5":"1366598298","file3":"1366598286"},"map_files_photo_id_array":[{"photo_id":"1366598298","filename":"file5"},{"photo_id":"1366598268","filename":"file2"},{"photo_id":"1366598292","filename":"file4"},{"photo_id":"1366598266","filename":"file1"},{"photo_id":"1366598235","filename":"file0"},{"photo_id":"1366598286","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366598266":["hashtag1","hashtag2"]},{"1366598298":["hashtag1","hashtag2"]},{"1366598292":["hashtag1","hashtag2"]},{"1366598286":["hashtag1","hashtag2"]},{"1366598268":["hashtag1","hashtag2"]},{"1366598235":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366598266, 1366598298, 1366598292, 1366598286, 1366598268, 1366598235)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 72.74178981781006 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:00:17.652565
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/00/image_16062025_22_00_35_9675.jpg', 2), ('/home/nano/Desktop/images/16062025/22/00/image_16062025_22_00_25_10683.jpg', 2), ('/home/nano/Desktop/images/16062025/22/00/image_16062025_22_00_15_9703.jpg', 2), ('/home/nano/Desktop/images/16062025/21/59/image_16062025_22_00_05_9684.jpg', 2), ('/home/nano/Desktop/images/16062025/21/59/image_16062025_21_59_55_10681.jpg', 2), ('/home/nano/Desktop/images/16062025/21/59/image_16062025_21_59_45_9691.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/00/image_16062025_22_00_35_9675.jpg', '/home/nano/Desktop/images/16062025/22/00/image_16062025_22_00_25_10683.jpg', '/home/nano/Desktop/images/16062025/22/00/image_16062025_22_00_15_9703.jpg', '/home/nano/Desktop/images/16062025/21/59/image_16062025_22_00_05_9684.jpg', '/home/nano/Desktop/images/16062025/21/59/image_16062025_21_59_55_10681.jpg', '/home/nano/Desktop/images/16062025/21/59/image_16062025_21_59_45_9691.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/00/image_16062025_22_00_35_9675.jpg
/home/nano/Desktop/images/16062025/22/00/image_16062025_22_00_25_10683.jpg
/home/nano/Desktop/images/16062025/22/00/image_16062025_22_00_15_9703.jpg
/home/nano/Desktop/images/16062025/21/59/image_16062025_22_00_05_9684.jpg
/home/nano/Desktop/images/16062025/21/59/image_16062025_21_59_55_10681.jpg
/home/nano/Desktop/images/16062025/21/59/image_16062025_21_59_45_9691.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366598331","1366598336","1366598341","1366598344","1366598338","1366598349"],"photo_ids_order":["1366598331","1366598336","1366598338","1366598341","1366598344","1366598349"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cccd2e463c8de0ca1f0bcb2f2af56923.jpg","text":"TemporaryFile(/tmp/multipartBody1633071728602882208asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104081451,"filename":"image_16062025_22_00_35_9675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a9bc2a7d5a9fffebda4e183ff3cb01aa.jpg","text":"TemporaryFile(/tmp/multipartBody7958422325287544968asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104081451,"filename":"image_16062025_22_00_25_10683.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8509e7655914b969c63e0e9cc4b73a1d.jpg","text":"TemporaryFile(/tmp/multipartBody3316646880526826357asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104081451,"filename":"image_16062025_22_00_05_9684.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/075a4445fb5a6cfbb109e69817f59172.jpg","text":"TemporaryFile(/tmp/multipartBody70327256394841691asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104081451,"filename":"image_16062025_21_59_55_10681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3dec5ca2b28c939ceb8c8a5b71a7d360.jpg","text":"TemporaryFile(/tmp/multipartBody7847153050803459121asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104081451,"filename":"image_16062025_22_00_15_9703.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/56176c11ea0840f77fed9c09527a956e.jpg","text":"TemporaryFile(/tmp/multipartBody6275892805396574227asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104081451,"filename":"image_16062025_21_59_45_9691.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366598338","file1":"1366598336","file0":"1366598331","file4":"1366598344","file5":"1366598349","file3":"1366598341"},"map_files_photo_id_array":[{"photo_id":"1366598349","filename":"file5"},{"photo_id":"1366598338","filename":"file2"},{"photo_id":"1366598344","filename":"file4"},{"photo_id":"1366598336","filename":"file1"},{"photo_id":"1366598331","filename":"file0"},{"photo_id":"1366598341","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366598331":["hashtag1","hashtag2"]},{"1366598336":["hashtag1","hashtag2"]},{"1366598341":["hashtag1","hashtag2"]},{"1366598344":["hashtag1","hashtag2"]},{"1366598338":["hashtag1","hashtag2"]},{"1366598349":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366598331, 1366598336, 1366598341, 1366598344, 1366598338, 1366598349)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 50.026806116104126 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:01:16.768292
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/01/image_16062025_22_01_45_9666.jpg', 2), ('/home/nano/Desktop/images/16062025/22/01/image_16062025_22_01_35_10681.jpg', 2), ('/home/nano/Desktop/images/16062025/22/00/image_16062025_22_01_05_9681.jpg', 2), ('/home/nano/Desktop/images/16062025/22/00/image_16062025_22_00_55_10678.jpg', 2), ('/home/nano/Desktop/images/16062025/21/59/image_16062025_21_59_35_9666.jpg', 2), ('/home/nano/Desktop/images/16062025/21/59/image_16062025_21_59_25_10676.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/01/image_16062025_22_01_45_9666.jpg', '/home/nano/Desktop/images/16062025/22/01/image_16062025_22_01_35_10681.jpg', '/home/nano/Desktop/images/16062025/22/00/image_16062025_22_01_05_9681.jpg', '/home/nano/Desktop/images/16062025/22/00/image_16062025_22_00_55_10678.jpg', '/home/nano/Desktop/images/16062025/21/59/image_16062025_21_59_35_9666.jpg', '/home/nano/Desktop/images/16062025/21/59/image_16062025_21_59_25_10676.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/01/image_16062025_22_01_45_9666.jpg
/home/nano/Desktop/images/16062025/22/01/image_16062025_22_01_35_10681.jpg
/home/nano/Desktop/images/16062025/22/00/image_16062025_22_01_05_9681.jpg
/home/nano/Desktop/images/16062025/22/00/image_16062025_22_00_55_10678.jpg
/home/nano/Desktop/images/16062025/21/59/image_16062025_21_59_35_9666.jpg
/home/nano/Desktop/images/16062025/21/59/image_16062025_21_59_25_10676.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366598390","1366598386","1366598374","1366598377","1366598370","1366598382"],"photo_ids_order":["1366598370","1366598374","1366598377","1366598382","1366598386","1366598390"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1b0a585e4f06b30215e9bff036b944d8.jpg","text":"TemporaryFile(/tmp/multipartBody773951880259024548asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104139292,"filename":"image_16062025_21_59_25_10676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/78795208ba83b076126445d1442b7437.jpg","text":"TemporaryFile(/tmp/multipartBody7626450813766807849asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104139292,"filename":"image_16062025_21_59_35_9666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2ab2861d30f95fb5dc87b48923799d06.jpg","text":"TemporaryFile(/tmp/multipartBody6781551019840591733asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104139292,"filename":"image_16062025_22_01_35_10681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/455820c7928c552d1b37a1c0b772fc74.jpg","text":"TemporaryFile(/tmp/multipartBody1242446717849892932asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104139292,"filename":"image_16062025_22_01_05_9681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/43395ad852564bab6ae16ab0a1879c0b.jpg","text":"TemporaryFile(/tmp/multipartBody6961979435760983713asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104139292,"filename":"image_16062025_22_01_45_9666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8b7e04794bff99a8b54d303d9021fff4.jpg","text":"TemporaryFile(/tmp/multipartBody4456285171707174533asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104139292,"filename":"image_16062025_22_00_55_10678.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366598377","file1":"1366598374","file0":"1366598370","file4":"1366598386","file5":"1366598390","file3":"1366598382"},"map_files_photo_id_array":[{"photo_id":"1366598390","filename":"file5"},{"photo_id":"1366598377","filename":"file2"},{"photo_id":"1366598386","filename":"file4"},{"photo_id":"1366598374","filename":"file1"},{"photo_id":"1366598370","filename":"file0"},{"photo_id":"1366598382","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366598390":["hashtag1","hashtag2"]},{"1366598386":["hashtag1","hashtag2"]},{"1366598374":["hashtag1","hashtag2"]},{"1366598377":["hashtag1","hashtag2"]},{"1366598370":["hashtag1","hashtag2"]},{"1366598382":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366598390, 1366598386, 1366598374, 1366598377, 1366598370, 1366598382)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.9285569190979 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:02:16.886752
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/02/image_16062025_22_02_45_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/22/02/image_16062025_22_02_35_10686.jpg', 2), ('/home/nano/Desktop/images/16062025/22/02/image_16062025_22_02_24_9700.jpg', 2), ('/home/nano/Desktop/images/16062025/22/02/image_16062025_22_02_15_9672.jpg', 2), ('/home/nano/Desktop/images/16062025/22/01/image_16062025_22_02_05_10693.jpg', 2), ('/home/nano/Desktop/images/16062025/22/01/image_16062025_22_01_54_9667.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/02/image_16062025_22_02_45_9664.jpg', '/home/nano/Desktop/images/16062025/22/02/image_16062025_22_02_35_10686.jpg', '/home/nano/Desktop/images/16062025/22/02/image_16062025_22_02_24_9700.jpg', '/home/nano/Desktop/images/16062025/22/02/image_16062025_22_02_15_9672.jpg', '/home/nano/Desktop/images/16062025/22/01/image_16062025_22_02_05_10693.jpg', '/home/nano/Desktop/images/16062025/22/01/image_16062025_22_01_54_9667.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/02/image_16062025_22_02_45_9664.jpg
/home/nano/Desktop/images/16062025/22/02/image_16062025_22_02_35_10686.jpg
/home/nano/Desktop/images/16062025/22/02/image_16062025_22_02_24_9700.jpg
/home/nano/Desktop/images/16062025/22/02/image_16062025_22_02_15_9672.jpg
/home/nano/Desktop/images/16062025/22/01/image_16062025_22_02_05_10693.jpg
/home/nano/Desktop/images/16062025/22/01/image_16062025_22_01_54_9667.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366598418","1366598403","1366598435","1366598408","1366598431","1366598428"],"photo_ids_order":["1366598403","1366598408","1366598418","1366598428","1366598431","1366598435"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2f59f1de28a05de39fdd41488eca08e5.jpg","text":"TemporaryFile(/tmp/multipartBody6753483508550902613asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104199838,"filename":"image_16062025_22_02_24_9700.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/214adeaf758eb5bc2157317665f4bd31.jpg","text":"TemporaryFile(/tmp/multipartBody5826462851813035827asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104199838,"filename":"image_16062025_22_02_45_9664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c64fdc9e7af0c6396d658c5e292d22f0.jpg","text":"TemporaryFile(/tmp/multipartBody399446417112033542asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104199838,"filename":"image_16062025_22_01_54_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/088bc8cbae9b704128fbe254dc74b6d9.jpg","text":"TemporaryFile(/tmp/multipartBody836782202582155204asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104199838,"filename":"image_16062025_22_02_35_10686.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1030c0bc691e9f247202a982d9681484.jpg","text":"TemporaryFile(/tmp/multipartBody8291322261788616653asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104199838,"filename":"image_16062025_22_02_05_10693.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ad12f4a5fb4a2a05a1a978a1bb1a7da5.jpg","text":"TemporaryFile(/tmp/multipartBody3793832260211890937asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104199838,"filename":"image_16062025_22_02_15_9672.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366598418","file1":"1366598408","file0":"1366598403","file4":"1366598431","file5":"1366598435","file3":"1366598428"},"map_files_photo_id_array":[{"photo_id":"1366598435","filename":"file5"},{"photo_id":"1366598418","filename":"file2"},{"photo_id":"1366598431","filename":"file4"},{"photo_id":"1366598408","filename":"file1"},{"photo_id":"1366598403","filename":"file0"},{"photo_id":"1366598428","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366598418":["hashtag1","hashtag2"]},{"1366598403":["hashtag1","hashtag2"]},{"1366598435":["hashtag1","hashtag2"]},{"1366598408":["hashtag1","hashtag2"]},{"1366598431":["hashtag1","hashtag2"]},{"1366598428":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366598418, 1366598403, 1366598435, 1366598408, 1366598431, 1366598428)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.47138977050781 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:03:17.084322
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/03/image_16062025_22_03_25_9672.jpg', 2), ('/home/nano/Desktop/images/16062025/22/03/image_16062025_22_03_15_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/22/02/image_16062025_22_03_05_10695.jpg', 2), ('/home/nano/Desktop/images/16062025/22/02/image_16062025_22_02_54_9672.jpg', 2), ('/home/nano/Desktop/images/16062025/21/59/image_16062025_21_59_15_9717.jpg', 2), ('/home/nano/Desktop/images/16062025/21/58/image_16062025_21_59_05_9665.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/03/image_16062025_22_03_25_9672.jpg', '/home/nano/Desktop/images/16062025/22/03/image_16062025_22_03_15_9668.jpg', '/home/nano/Desktop/images/16062025/22/02/image_16062025_22_03_05_10695.jpg', '/home/nano/Desktop/images/16062025/22/02/image_16062025_22_02_54_9672.jpg', '/home/nano/Desktop/images/16062025/21/59/image_16062025_21_59_15_9717.jpg', '/home/nano/Desktop/images/16062025/21/58/image_16062025_21_59_05_9665.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/03/image_16062025_22_03_25_9672.jpg
/home/nano/Desktop/images/16062025/22/03/image_16062025_22_03_15_9668.jpg
/home/nano/Desktop/images/16062025/22/02/image_16062025_22_03_05_10695.jpg
/home/nano/Desktop/images/16062025/22/02/image_16062025_22_02_54_9672.jpg
/home/nano/Desktop/images/16062025/21/59/image_16062025_21_59_15_9717.jpg
/home/nano/Desktop/images/16062025/21/58/image_16062025_21_59_05_9665.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366598486","1366598459","1366598539","1366598533","1366598509","1366598544"],"photo_ids_order":["1366598459","1366598486","1366598509","1366598533","1366598539","1366598544"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b7a33b0d77eeeb6b8c6b1ed3e8f8de01.jpg","text":"TemporaryFile(/tmp/multipartBody8074029153242528034asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104259174,"filename":"image_16062025_22_03_15_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f8ba1b2d75fdb15d037f4b5da4c6baee.jpg","text":"TemporaryFile(/tmp/multipartBody2629612806636766539asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104259174,"filename":"image_16062025_22_03_25_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e9d8442d681134bd77a7c4f592a8e292.jpg","text":"TemporaryFile(/tmp/multipartBody2159475231077501520asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104259174,"filename":"image_16062025_21_59_15_9717.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/12cde36bf5846fd33bbdeedf21b62708.jpg","text":"TemporaryFile(/tmp/multipartBody4836521193965481741asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104259174,"filename":"image_16062025_22_02_54_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bb261693aa93fabc94555922f0645b2e.jpg","text":"TemporaryFile(/tmp/multipartBody794568899729272446asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104259174,"filename":"image_16062025_22_03_05_10695.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e6eb90297bf4a524bd2cd612a9e681fd.jpg","text":"TemporaryFile(/tmp/multipartBody976702091772780430asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104259174,"filename":"image_16062025_21_59_05_9665.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366598509","file1":"1366598486","file0":"1366598459","file4":"1366598539","file5":"1366598544","file3":"1366598533"},"map_files_photo_id_array":[{"photo_id":"1366598544","filename":"file5"},{"photo_id":"1366598509","filename":"file2"},{"photo_id":"1366598539","filename":"file4"},{"photo_id":"1366598486","filename":"file1"},{"photo_id":"1366598459","filename":"file0"},{"photo_id":"1366598533","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366598486":["hashtag1","hashtag2"]},{"1366598459":["hashtag1","hashtag2"]},{"1366598539":["hashtag1","hashtag2"]},{"1366598533":["hashtag1","hashtag2"]},{"1366598509":["hashtag1","hashtag2"]},{"1366598544":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366598486, 1366598459, 1366598539, 1366598533, 1366598509, 1366598544)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 55.80885457992554 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:04:17.092011
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/04/image_16062025_22_04_45_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/22/04/image_16062025_22_04_35_10695.jpg', 2), ('/home/nano/Desktop/images/16062025/22/04/image_16062025_22_04_25_9665.jpg', 2), ('/home/nano/Desktop/images/16062025/22/04/image_16062025_22_04_15_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/22/03/image_16062025_22_04_05_10682.jpg', 2), ('/home/nano/Desktop/images/16062025/22/03/image_16062025_22_03_35_10673.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/04/image_16062025_22_04_45_9673.jpg', '/home/nano/Desktop/images/16062025/22/04/image_16062025_22_04_35_10695.jpg', '/home/nano/Desktop/images/16062025/22/04/image_16062025_22_04_25_9665.jpg', '/home/nano/Desktop/images/16062025/22/04/image_16062025_22_04_15_9671.jpg', '/home/nano/Desktop/images/16062025/22/03/image_16062025_22_04_05_10682.jpg', '/home/nano/Desktop/images/16062025/22/03/image_16062025_22_03_35_10673.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/04/image_16062025_22_04_45_9673.jpg
/home/nano/Desktop/images/16062025/22/04/image_16062025_22_04_35_10695.jpg
/home/nano/Desktop/images/16062025/22/04/image_16062025_22_04_25_9665.jpg
/home/nano/Desktop/images/16062025/22/04/image_16062025_22_04_15_9671.jpg
/home/nano/Desktop/images/16062025/22/03/image_16062025_22_04_05_10682.jpg
/home/nano/Desktop/images/16062025/22/03/image_16062025_22_03_35_10673.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366598594","1366598585","1366598600","1366598590","1366598587","1366598581"],"photo_ids_order":["1366598581","1366598585","1366598587","1366598590","1366598594","1366598600"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5265ed371b618b0c969ff0667e587033.jpg","text":"TemporaryFile(/tmp/multipartBody190998265913092388asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104319561,"filename":"image_16062025_22_04_05_10682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3292c633488649f9551e530b3cad7356.jpg","text":"TemporaryFile(/tmp/multipartBody3080000459218240935asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104319561,"filename":"image_16062025_22_04_35_10695.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2d3ec718a2547f065887df1e3007af07.jpg","text":"TemporaryFile(/tmp/multipartBody3892068011278691036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104319561,"filename":"image_16062025_22_03_35_10673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b03ada69c959fc4c650916501a058509.jpg","text":"TemporaryFile(/tmp/multipartBody7374548453727309410asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104319561,"filename":"image_16062025_22_04_15_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d28b8dc31f1cf8a7c9ff90deaede4134.jpg","text":"TemporaryFile(/tmp/multipartBody7644431739946122524asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104319561,"filename":"image_16062025_22_04_25_9665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b570c93bfeea201b9c852a4b9e56495e.jpg","text":"TemporaryFile(/tmp/multipartBody1700744700736721552asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104319561,"filename":"image_16062025_22_04_45_9673.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366598587","file1":"1366598585","file0":"1366598581","file4":"1366598594","file5":"1366598600","file3":"1366598590"},"map_files_photo_id_array":[{"photo_id":"1366598600","filename":"file5"},{"photo_id":"1366598587","filename":"file2"},{"photo_id":"1366598594","filename":"file4"},{"photo_id":"1366598585","filename":"file1"},{"photo_id":"1366598581","filename":"file0"},{"photo_id":"1366598590","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366598594":["hashtag1","hashtag2"]},{"1366598585":["hashtag1","hashtag2"]},{"1366598600":["hashtag1","hashtag2"]},{"1366598590":["hashtag1","hashtag2"]},{"1366598587":["hashtag1","hashtag2"]},{"1366598581":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366598594, 1366598585, 1366598600, 1366598590, 1366598587, 1366598581)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 87.54306483268738 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:05:47.178385
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/05/image_16062025_22_05_45_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/22/05/image_16062025_22_05_35_10676.jpg', 2), ('/home/nano/Desktop/images/16062025/22/05/image_16062025_22_05_25_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/22/05/image_16062025_22_05_15_9681.jpg', 2), ('/home/nano/Desktop/images/16062025/22/04/image_16062025_22_05_05_10681.jpg', 2), ('/home/nano/Desktop/images/16062025/22/04/image_16062025_22_04_55_9666.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/05/image_16062025_22_05_45_9669.jpg', '/home/nano/Desktop/images/16062025/22/05/image_16062025_22_05_35_10676.jpg', '/home/nano/Desktop/images/16062025/22/05/image_16062025_22_05_25_9667.jpg', '/home/nano/Desktop/images/16062025/22/05/image_16062025_22_05_15_9681.jpg', '/home/nano/Desktop/images/16062025/22/04/image_16062025_22_05_05_10681.jpg', '/home/nano/Desktop/images/16062025/22/04/image_16062025_22_04_55_9666.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/05/image_16062025_22_05_45_9669.jpg
/home/nano/Desktop/images/16062025/22/05/image_16062025_22_05_35_10676.jpg
/home/nano/Desktop/images/16062025/22/05/image_16062025_22_05_25_9667.jpg
/home/nano/Desktop/images/16062025/22/05/image_16062025_22_05_15_9681.jpg
/home/nano/Desktop/images/16062025/22/04/image_16062025_22_05_05_10681.jpg
/home/nano/Desktop/images/16062025/22/04/image_16062025_22_04_55_9666.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366598640","1366598634","1366598636","1366598612","1366598629","1366598620"],"photo_ids_order":["1366598612","1366598620","1366598629","1366598634","1366598636","1366598640"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e6a922719a7f73cbf0b598308d36b438.jpg","text":"TemporaryFile(/tmp/multipartBody4987598542036574898asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104409768,"filename":"image_16062025_22_04_55_9666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/75c05a40d4cb3700983aa6fad2911651.jpg","text":"TemporaryFile(/tmp/multipartBody3766021719495159512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104409768,"filename":"image_16062025_22_05_15_9681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/555a4a971a48eabeccffd53f4aace05e.jpg","text":"TemporaryFile(/tmp/multipartBody8252441526251648310asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104409768,"filename":"image_16062025_22_05_05_10681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/78aa995eb31c7230963bf6d9fe13d713.jpg","text":"TemporaryFile(/tmp/multipartBody8558705819835061784asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104409768,"filename":"image_16062025_22_05_45_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6850551090ae0a7d40a948a2aea3663b.jpg","text":"TemporaryFile(/tmp/multipartBody7224859458318078936asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104409768,"filename":"image_16062025_22_05_25_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/21c762151a8781223df097eb21cd46a1.jpg","text":"TemporaryFile(/tmp/multipartBody4932314976892137001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104409768,"filename":"image_16062025_22_05_35_10676.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366598629","file1":"1366598620","file0":"1366598612","file4":"1366598636","file5":"1366598640","file3":"1366598634"},"map_files_photo_id_array":[{"photo_id":"1366598640","filename":"file5"},{"photo_id":"1366598629","filename":"file2"},{"photo_id":"1366598636","filename":"file4"},{"photo_id":"1366598620","filename":"file1"},{"photo_id":"1366598612","filename":"file0"},{"photo_id":"1366598634","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366598640":["hashtag1","hashtag2"]},{"1366598634":["hashtag1","hashtag2"]},{"1366598636":["hashtag1","hashtag2"]},{"1366598612":["hashtag1","hashtag2"]},{"1366598629":["hashtag1","hashtag2"]},{"1366598620":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366598640, 1366598634, 1366598636, 1366598612, 1366598629, 1366598620)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 72.4604275226593 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:07:02.954999
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/06/image_16062025_22_06_45_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/22/06/image_16062025_22_06_25_9665.jpg', 2), ('/home/nano/Desktop/images/16062025/22/06/image_16062025_22_06_15_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/22/05/image_16062025_22_06_05_10686.jpg', 2), ('/home/nano/Desktop/images/16062025/22/05/image_16062025_22_05_55_9666.jpg', 2), ('/home/nano/Desktop/images/16062025/21/58/image_16062025_21_58_55_10675.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/06/image_16062025_22_06_45_9669.jpg', '/home/nano/Desktop/images/16062025/22/06/image_16062025_22_06_25_9665.jpg', '/home/nano/Desktop/images/16062025/22/06/image_16062025_22_06_15_9668.jpg', '/home/nano/Desktop/images/16062025/22/05/image_16062025_22_06_05_10686.jpg', '/home/nano/Desktop/images/16062025/22/05/image_16062025_22_05_55_9666.jpg', '/home/nano/Desktop/images/16062025/21/58/image_16062025_21_58_55_10675.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/06/image_16062025_22_06_45_9669.jpg
/home/nano/Desktop/images/16062025/22/06/image_16062025_22_06_25_9665.jpg
/home/nano/Desktop/images/16062025/22/06/image_16062025_22_06_15_9668.jpg
/home/nano/Desktop/images/16062025/22/05/image_16062025_22_06_05_10686.jpg
/home/nano/Desktop/images/16062025/22/05/image_16062025_22_05_55_9666.jpg
/home/nano/Desktop/images/16062025/21/58/image_16062025_21_58_55_10675.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366599158","1366599092","1366598951","1366598756","1366599030","1366598856"],"photo_ids_order":["1366598756","1366598856","1366598951","1366599030","1366599092","1366599158"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2e0fc9b49efa5ecb91b0c8a11038ac2f.jpg","text":"TemporaryFile(/tmp/multipartBody3312681708366811670asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104486819,"filename":"image_16062025_21_58_55_10675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/051f6a6ef6924f7e0b87984526fd566a.jpg","text":"TemporaryFile(/tmp/multipartBody6611597221715900139asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104486819,"filename":"image_16062025_22_05_55_9666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0f97b966db99f0c409f4e75591908900.jpg","text":"TemporaryFile(/tmp/multipartBody158585875898871078asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104486819,"filename":"image_16062025_22_06_15_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/13c4fc0174713b000c3f9d4a07f2e767.jpg","text":"TemporaryFile(/tmp/multipartBody7828200514115965861asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104486819,"filename":"image_16062025_22_06_45_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/02260462dd8daf0aa284f9d64889eb26.jpg","text":"TemporaryFile(/tmp/multipartBody674604161131124694asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104486819,"filename":"image_16062025_22_06_05_10686.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1891d2789a8c25fe9044a3a9eebcbdd7.jpg","text":"TemporaryFile(/tmp/multipartBody1898067579034929461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104486819,"filename":"image_16062025_22_06_25_9665.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366598951","file1":"1366598856","file0":"1366598756","file4":"1366599092","file5":"1366599158","file3":"1366599030"},"map_files_photo_id_array":[{"photo_id":"1366599158","filename":"file5"},{"photo_id":"1366598951","filename":"file2"},{"photo_id":"1366599092","filename":"file4"},{"photo_id":"1366598856","filename":"file1"},{"photo_id":"1366598756","filename":"file0"},{"photo_id":"1366599030","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366599158":["hashtag1","hashtag2"]},{"1366599092":["hashtag1","hashtag2"]},{"1366598951":["hashtag1","hashtag2"]},{"1366598756":["hashtag1","hashtag2"]},{"1366599030":["hashtag1","hashtag2"]},{"1366598856":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366599158, 1366599092, 1366598951, 1366598756, 1366599030, 1366598856)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 82.59148788452148 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:08:32.464755
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/08/image_16062025_22_08_45_10683.jpg', 2), ('/home/nano/Desktop/images/16062025/22/08/image_16062025_22_08_34_9687.jpg', 2), ('/home/nano/Desktop/images/16062025/22/08/image_16062025_22_08_25_9670.jpg', 2), ('/home/nano/Desktop/images/16062025/22/08/image_16062025_22_08_15_10698.jpg', 2), ('/home/nano/Desktop/images/16062025/22/07/image_16062025_22_08_04_9670.jpg', 2), ('/home/nano/Desktop/images/16062025/22/07/image_16062025_22_07_55_9666.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/08/image_16062025_22_08_45_10683.jpg', '/home/nano/Desktop/images/16062025/22/08/image_16062025_22_08_34_9687.jpg', '/home/nano/Desktop/images/16062025/22/08/image_16062025_22_08_25_9670.jpg', '/home/nano/Desktop/images/16062025/22/08/image_16062025_22_08_15_10698.jpg', '/home/nano/Desktop/images/16062025/22/07/image_16062025_22_08_04_9670.jpg', '/home/nano/Desktop/images/16062025/22/07/image_16062025_22_07_55_9666.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/08/image_16062025_22_08_45_10683.jpg
/home/nano/Desktop/images/16062025/22/08/image_16062025_22_08_34_9687.jpg
/home/nano/Desktop/images/16062025/22/08/image_16062025_22_08_25_9670.jpg
/home/nano/Desktop/images/16062025/22/08/image_16062025_22_08_15_10698.jpg
/home/nano/Desktop/images/16062025/22/07/image_16062025_22_08_04_9670.jpg
/home/nano/Desktop/images/16062025/22/07/image_16062025_22_07_55_9666.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366599275","1366599305","1366599320","1366599286","1366599334","1366599300"],"photo_ids_order":["1366599275","1366599286","1366599300","1366599305","1366599320","1366599334"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8fb7f961327ef29ff3f26a02467f4d1c.jpg","text":"TemporaryFile(/tmp/multipartBody4852476067527352374asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104576585,"filename":"image_16062025_22_08_45_10683.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bda9dd0bfb88cf66f5106e40ab3c07cb.jpg","text":"TemporaryFile(/tmp/multipartBody6376279465179871415asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104576585,"filename":"image_16062025_22_08_15_10698.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/396152d64a3588b24d3334343c5b6b7e.jpg","text":"TemporaryFile(/tmp/multipartBody331036091523111320asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104576585,"filename":"image_16062025_22_08_04_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2b30005f6d1a967f20614c0654c401b0.jpg","text":"TemporaryFile(/tmp/multipartBody8013895147009812872asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104576585,"filename":"image_16062025_22_08_34_9687.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f8fe7eb01f35fe2afc4cb1ff4f4601ba.jpg","text":"TemporaryFile(/tmp/multipartBody2905011222103949963asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104576585,"filename":"image_16062025_22_07_55_9666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cc87bc334ebce7e8283456f04b94c51e.jpg","text":"TemporaryFile(/tmp/multipartBody7432102120322813094asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104576585,"filename":"image_16062025_22_08_25_9670.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366599300","file1":"1366599286","file0":"1366599275","file4":"1366599320","file5":"1366599334","file3":"1366599305"},"map_files_photo_id_array":[{"photo_id":"1366599334","filename":"file5"},{"photo_id":"1366599300","filename":"file2"},{"photo_id":"1366599320","filename":"file4"},{"photo_id":"1366599286","filename":"file1"},{"photo_id":"1366599275","filename":"file0"},{"photo_id":"1366599305","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366599275":["hashtag1","hashtag2"]},{"1366599305":["hashtag1","hashtag2"]},{"1366599320":["hashtag1","hashtag2"]},{"1366599286":["hashtag1","hashtag2"]},{"1366599334":["hashtag1","hashtag2"]},{"1366599300":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366599275, 1366599305, 1366599320, 1366599286, 1366599334, 1366599300)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 69.86808371543884 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:09:47.551654
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/09/image_16062025_22_09_35_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/22/09/image_16062025_22_09_25_9666.jpg', 2), ('/home/nano/Desktop/images/16062025/22/09/image_16062025_22_09_15_10702.jpg', 2), ('/home/nano/Desktop/images/16062025/22/08/image_16062025_22_09_05_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/22/08/image_16062025_22_08_55_9684.jpg', 2), ('/home/nano/Desktop/images/16062025/22/07/image_16062025_22_07_45_10682.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/09/image_16062025_22_09_35_9667.jpg', '/home/nano/Desktop/images/16062025/22/09/image_16062025_22_09_25_9666.jpg', '/home/nano/Desktop/images/16062025/22/09/image_16062025_22_09_15_10702.jpg', '/home/nano/Desktop/images/16062025/22/08/image_16062025_22_09_05_9677.jpg', '/home/nano/Desktop/images/16062025/22/08/image_16062025_22_08_55_9684.jpg', '/home/nano/Desktop/images/16062025/22/07/image_16062025_22_07_45_10682.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/09/image_16062025_22_09_35_9667.jpg
/home/nano/Desktop/images/16062025/22/09/image_16062025_22_09_25_9666.jpg
/home/nano/Desktop/images/16062025/22/09/image_16062025_22_09_15_10702.jpg
/home/nano/Desktop/images/16062025/22/08/image_16062025_22_09_05_9677.jpg
/home/nano/Desktop/images/16062025/22/08/image_16062025_22_08_55_9684.jpg
/home/nano/Desktop/images/16062025/22/07/image_16062025_22_07_45_10682.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366599374","1366599382","1366599396","1366599378","1366599387","1366599392"],"photo_ids_order":["1366599374","1366599378","1366599382","1366599387","1366599392","1366599396"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4e63da080733d1069388a7c195d764e0.jpg","text":"TemporaryFile(/tmp/multipartBody1370715149766408535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104654328,"filename":"image_16062025_22_09_35_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/be7e9d7ee706900a7fbc7dc881d1337c.jpg","text":"TemporaryFile(/tmp/multipartBody3207844107775096136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104654328,"filename":"image_16062025_22_09_15_10702.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/866a1da98759343bccd9297b24c3374a.jpg","text":"TemporaryFile(/tmp/multipartBody392357189103437148asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104654328,"filename":"image_16062025_22_07_45_10682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9a659931760597e214679eab739472f9.jpg","text":"TemporaryFile(/tmp/multipartBody4962099371349950400asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104654328,"filename":"image_16062025_22_09_25_9666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ee85d2caf220ef5172ce10355e6fb1eb.jpg","text":"TemporaryFile(/tmp/multipartBody2432979798383360977asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104654328,"filename":"image_16062025_22_09_05_9677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2f61cb703060d53c6688cb87de03e6e9.jpg","text":"TemporaryFile(/tmp/multipartBody9141683788902091305asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104654328,"filename":"image_16062025_22_08_55_9684.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366599382","file1":"1366599378","file0":"1366599374","file4":"1366599392","file5":"1366599396","file3":"1366599387"},"map_files_photo_id_array":[{"photo_id":"1366599396","filename":"file5"},{"photo_id":"1366599382","filename":"file2"},{"photo_id":"1366599392","filename":"file4"},{"photo_id":"1366599378","filename":"file1"},{"photo_id":"1366599374","filename":"file0"},{"photo_id":"1366599387","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366599374":["hashtag1","hashtag2"]},{"1366599382":["hashtag1","hashtag2"]},{"1366599396":["hashtag1","hashtag2"]},{"1366599378":["hashtag1","hashtag2"]},{"1366599387":["hashtag1","hashtag2"]},{"1366599392":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366599374, 1366599382, 1366599396, 1366599378, 1366599387, 1366599392)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 72.54655122756958 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:11:03.609486
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/10/image_16062025_22_10_45_10697.jpg', 2), ('/home/nano/Desktop/images/16062025/22/10/image_16062025_22_10_35_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/22/10/image_16062025_22_10_25_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/22/10/image_16062025_22_10_15_10715.jpg', 2), ('/home/nano/Desktop/images/16062025/22/09/image_16062025_22_10_05_9701.jpg', 2), ('/home/nano/Desktop/images/16062025/22/09/image_16062025_22_09_55_9671.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/10/image_16062025_22_10_45_10697.jpg', '/home/nano/Desktop/images/16062025/22/10/image_16062025_22_10_35_9671.jpg', '/home/nano/Desktop/images/16062025/22/10/image_16062025_22_10_25_9668.jpg', '/home/nano/Desktop/images/16062025/22/10/image_16062025_22_10_15_10715.jpg', '/home/nano/Desktop/images/16062025/22/09/image_16062025_22_10_05_9701.jpg', '/home/nano/Desktop/images/16062025/22/09/image_16062025_22_09_55_9671.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/10/image_16062025_22_10_45_10697.jpg
/home/nano/Desktop/images/16062025/22/10/image_16062025_22_10_35_9671.jpg
/home/nano/Desktop/images/16062025/22/10/image_16062025_22_10_25_9668.jpg
/home/nano/Desktop/images/16062025/22/10/image_16062025_22_10_15_10715.jpg
/home/nano/Desktop/images/16062025/22/09/image_16062025_22_10_05_9701.jpg
/home/nano/Desktop/images/16062025/22/09/image_16062025_22_09_55_9671.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366599504","1366599524","1366599559","1366599547","1366599532","1366599537"],"photo_ids_order":["1366599504","1366599524","1366599532","1366599537","1366599547","1366599559"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e5efda96c2b1baec56136eb8b8c6789f.jpg","text":"TemporaryFile(/tmp/multipartBody1254485101723401710asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104727375,"filename":"image_16062025_22_10_45_10697.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/58cdf9ccd6532cc83f516b762db14367.jpg","text":"TemporaryFile(/tmp/multipartBody4398807102793906asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104727375,"filename":"image_16062025_22_10_35_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f0d5435a0ce288fdfa6f0ba1191e2da6.jpg","text":"TemporaryFile(/tmp/multipartBody4287682133704106974asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104727375,"filename":"image_16062025_22_09_55_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/08c57d4535eb29489ac23592b3af277f.jpg","text":"TemporaryFile(/tmp/multipartBody170069834985481627asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104727375,"filename":"image_16062025_22_10_05_9701.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bc9ef6d513ba2d5b0dc4e1724e596cbc.jpg","text":"TemporaryFile(/tmp/multipartBody8863121995281574636asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104727375,"filename":"image_16062025_22_10_25_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4de622102f1ae173fbb482b13a291098.jpg","text":"TemporaryFile(/tmp/multipartBody9048205619727953867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104727375,"filename":"image_16062025_22_10_15_10715.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366599532","file1":"1366599524","file0":"1366599504","file4":"1366599547","file5":"1366599559","file3":"1366599537"},"map_files_photo_id_array":[{"photo_id":"1366599559","filename":"file5"},{"photo_id":"1366599532","filename":"file2"},{"photo_id":"1366599547","filename":"file4"},{"photo_id":"1366599524","filename":"file1"},{"photo_id":"1366599504","filename":"file0"},{"photo_id":"1366599537","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366599504":["hashtag1","hashtag2"]},{"1366599524":["hashtag1","hashtag2"]},{"1366599559":["hashtag1","hashtag2"]},{"1366599547":["hashtag1","hashtag2"]},{"1366599532":["hashtag1","hashtag2"]},{"1366599537":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366599504, 1366599524, 1366599559, 1366599547, 1366599532, 1366599537)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.68949913978577 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:12:16.942986
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/12/image_16062025_22_12_14_9689.jpg', 2), ('/home/nano/Desktop/images/16062025/22/11/image_16062025_22_11_55_10687.jpg', 2), ('/home/nano/Desktop/images/16062025/22/11/image_16062025_22_11_44_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/22/11/image_16062025_22_11_35_9672.jpg', 2), ('/home/nano/Desktop/images/16062025/22/11/image_16062025_22_11_25_10702.jpg', 2), ('/home/nano/Desktop/images/16062025/22/10/image_16062025_22_11_05_9671.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/12/image_16062025_22_12_14_9689.jpg', '/home/nano/Desktop/images/16062025/22/11/image_16062025_22_11_55_10687.jpg', '/home/nano/Desktop/images/16062025/22/11/image_16062025_22_11_44_9671.jpg', '/home/nano/Desktop/images/16062025/22/11/image_16062025_22_11_35_9672.jpg', '/home/nano/Desktop/images/16062025/22/11/image_16062025_22_11_25_10702.jpg', '/home/nano/Desktop/images/16062025/22/10/image_16062025_22_11_05_9671.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/12/image_16062025_22_12_14_9689.jpg
/home/nano/Desktop/images/16062025/22/11/image_16062025_22_11_55_10687.jpg
/home/nano/Desktop/images/16062025/22/11/image_16062025_22_11_44_9671.jpg
/home/nano/Desktop/images/16062025/22/11/image_16062025_22_11_35_9672.jpg
/home/nano/Desktop/images/16062025/22/11/image_16062025_22_11_25_10702.jpg
/home/nano/Desktop/images/16062025/22/10/image_16062025_22_11_05_9671.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366599656","1366599643","1366599619","1366599604","1366599648","1366599627"],"photo_ids_order":["1366599604","1366599619","1366599627","1366599643","1366599648","1366599656"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d6431c0721fb2ed3ef7ed8dd3c17d17a.jpg","text":"TemporaryFile(/tmp/multipartBody914755816894789680asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104799963,"filename":"image_16062025_22_11_05_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6000e03cc4911d3abc79654b7573c9cf.jpg","text":"TemporaryFile(/tmp/multipartBody3569034097087355867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104799963,"filename":"image_16062025_22_11_35_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a5fc17f7cf3cbfa8c05a99977999c339.jpg","text":"TemporaryFile(/tmp/multipartBody1076614481196977571asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104799963,"filename":"image_16062025_22_11_55_10687.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e7a7ac489f4f8823938cd9868da80e41.jpg","text":"TemporaryFile(/tmp/multipartBody571943567660740930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104799963,"filename":"image_16062025_22_12_14_9689.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0b8274aa90b3cb84aaf1690d55f3b76f.jpg","text":"TemporaryFile(/tmp/multipartBody7554257722828748221asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104799963,"filename":"image_16062025_22_11_25_10702.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/84c30df2982e730831ad2e869f7f361a.jpg","text":"TemporaryFile(/tmp/multipartBody1577320386859049239asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104799963,"filename":"image_16062025_22_11_44_9671.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366599627","file1":"1366599619","file0":"1366599604","file4":"1366599648","file5":"1366599656","file3":"1366599643"},"map_files_photo_id_array":[{"photo_id":"1366599656","filename":"file5"},{"photo_id":"1366599627","filename":"file2"},{"photo_id":"1366599648","filename":"file4"},{"photo_id":"1366599619","filename":"file1"},{"photo_id":"1366599604","filename":"file0"},{"photo_id":"1366599643","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366599656":["hashtag1","hashtag2"]},{"1366599643":["hashtag1","hashtag2"]},{"1366599619":["hashtag1","hashtag2"]},{"1366599604":["hashtag1","hashtag2"]},{"1366599648":["hashtag1","hashtag2"]},{"1366599627":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366599656, 1366599643, 1366599619, 1366599604, 1366599648, 1366599627)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 75.16211915016174 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:13:47.026757
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/13/image_16062025_22_13_45_9666.jpg', 2), ('/home/nano/Desktop/images/16062025/22/13/image_16062025_22_13_35_9666.jpg', 2), ('/home/nano/Desktop/images/16062025/22/13/image_16062025_22_13_25_10685.jpg', 2), ('/home/nano/Desktop/images/16062025/22/13/image_16062025_22_13_15_9685.jpg', 2), ('/home/nano/Desktop/images/16062025/22/12/image_16062025_22_13_05_9692.jpg', 2), ('/home/nano/Desktop/images/16062025/22/12/image_16062025_22_12_35_9667.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/13/image_16062025_22_13_45_9666.jpg', '/home/nano/Desktop/images/16062025/22/13/image_16062025_22_13_35_9666.jpg', '/home/nano/Desktop/images/16062025/22/13/image_16062025_22_13_25_10685.jpg', '/home/nano/Desktop/images/16062025/22/13/image_16062025_22_13_15_9685.jpg', '/home/nano/Desktop/images/16062025/22/12/image_16062025_22_13_05_9692.jpg', '/home/nano/Desktop/images/16062025/22/12/image_16062025_22_12_35_9667.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/13/image_16062025_22_13_45_9666.jpg
/home/nano/Desktop/images/16062025/22/13/image_16062025_22_13_35_9666.jpg
/home/nano/Desktop/images/16062025/22/13/image_16062025_22_13_25_10685.jpg
/home/nano/Desktop/images/16062025/22/13/image_16062025_22_13_15_9685.jpg
/home/nano/Desktop/images/16062025/22/12/image_16062025_22_13_05_9692.jpg
/home/nano/Desktop/images/16062025/22/12/image_16062025_22_12_35_9667.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366599694","1366599688","1366599712","1366599684","1366599703","1366599726"],"photo_ids_order":["1366599684","1366599688","1366599694","1366599703","1366599712","1366599726"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/22a606d21e23ac5b4d22bc92b1ab4da2.jpg","text":"TemporaryFile(/tmp/multipartBody8528194252788443520asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104890147,"filename":"image_16062025_22_13_25_10685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/abf3eef5a1197bddb3b92cef3c23fe3a.jpg","text":"TemporaryFile(/tmp/multipartBody1936096430709991169asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104890147,"filename":"image_16062025_22_13_35_9666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d68f1c48d2426f49c6145bba5c6691ee.jpg","text":"TemporaryFile(/tmp/multipartBody6064866792021472930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104890147,"filename":"image_16062025_22_13_05_9692.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/87ccbc76fe8d90588327c72a64e2059a.jpg","text":"TemporaryFile(/tmp/multipartBody7738539022858055108asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104890147,"filename":"image_16062025_22_13_45_9666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f09b35bbb79a3aa5d1553487f61af620.jpg","text":"TemporaryFile(/tmp/multipartBody3779015149621266763asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104890147,"filename":"image_16062025_22_13_15_9685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2e23d2c523c6e4f2f62d0b00304f48a7.jpg","text":"TemporaryFile(/tmp/multipartBody3528789168524100464asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104890147,"filename":"image_16062025_22_12_35_9667.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366599694","file1":"1366599688","file0":"1366599684","file4":"1366599712","file5":"1366599726","file3":"1366599703"},"map_files_photo_id_array":[{"photo_id":"1366599726","filename":"file5"},{"photo_id":"1366599694","filename":"file2"},{"photo_id":"1366599712","filename":"file4"},{"photo_id":"1366599688","filename":"file1"},{"photo_id":"1366599684","filename":"file0"},{"photo_id":"1366599703","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366599694":["hashtag1","hashtag2"]},{"1366599688":["hashtag1","hashtag2"]},{"1366599712":["hashtag1","hashtag2"]},{"1366599684":["hashtag1","hashtag2"]},{"1366599703":["hashtag1","hashtag2"]},{"1366599726":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366599694, 1366599688, 1366599712, 1366599684, 1366599703, 1366599726)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 53.1721510887146 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:14:47.126195
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/14/image_16062025_22_14_45_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/22/14/image_16062025_22_14_35_9672.jpg', 2), ('/home/nano/Desktop/images/16062025/22/14/image_16062025_22_14_25_10680.jpg', 2), ('/home/nano/Desktop/images/16062025/22/14/image_16062025_22_14_15_9695.jpg', 2), ('/home/nano/Desktop/images/16062025/22/13/image_16062025_22_14_05_9688.jpg', 2), ('/home/nano/Desktop/images/16062025/22/13/image_16062025_22_13_55_10676.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/14/image_16062025_22_14_45_9671.jpg', '/home/nano/Desktop/images/16062025/22/14/image_16062025_22_14_35_9672.jpg', '/home/nano/Desktop/images/16062025/22/14/image_16062025_22_14_25_10680.jpg', '/home/nano/Desktop/images/16062025/22/14/image_16062025_22_14_15_9695.jpg', '/home/nano/Desktop/images/16062025/22/13/image_16062025_22_14_05_9688.jpg', '/home/nano/Desktop/images/16062025/22/13/image_16062025_22_13_55_10676.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/14/image_16062025_22_14_45_9671.jpg
/home/nano/Desktop/images/16062025/22/14/image_16062025_22_14_35_9672.jpg
/home/nano/Desktop/images/16062025/22/14/image_16062025_22_14_25_10680.jpg
/home/nano/Desktop/images/16062025/22/14/image_16062025_22_14_15_9695.jpg
/home/nano/Desktop/images/16062025/22/13/image_16062025_22_14_05_9688.jpg
/home/nano/Desktop/images/16062025/22/13/image_16062025_22_13_55_10676.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366599764","1366599773","1366599761","1366599757","1366599768","1366599777"],"photo_ids_order":["1366599757","1366599761","1366599764","1366599768","1366599773","1366599777"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d395d99189dcc55e7453fbe650b6258f.jpg","text":"TemporaryFile(/tmp/multipartBody1997944377903888379asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104950134,"filename":"image_16062025_22_14_25_10680.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bf593ffaecb9ebd78749e429284ac36b.jpg","text":"TemporaryFile(/tmp/multipartBody5530206027261297374asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104950134,"filename":"image_16062025_22_14_05_9688.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8c5a02611f9b8c7f0cfb98483c134573.jpg","text":"TemporaryFile(/tmp/multipartBody1761906253246292590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104950134,"filename":"image_16062025_22_14_35_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/43fb52e6b050c9918f972dd6cd6884d8.jpg","text":"TemporaryFile(/tmp/multipartBody3465034016119630499asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104950134,"filename":"image_16062025_22_14_45_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b169fad97692b2378d0510ff6adc1415.jpg","text":"TemporaryFile(/tmp/multipartBody124756627057414396asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104950134,"filename":"image_16062025_22_14_15_9695.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9865d97e4f1dba24662e105b47c403d5.jpg","text":"TemporaryFile(/tmp/multipartBody314365396807937207asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750104950134,"filename":"image_16062025_22_13_55_10676.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366599764","file1":"1366599761","file0":"1366599757","file4":"1366599773","file5":"1366599777","file3":"1366599768"},"map_files_photo_id_array":[{"photo_id":"1366599777","filename":"file5"},{"photo_id":"1366599764","filename":"file2"},{"photo_id":"1366599773","filename":"file4"},{"photo_id":"1366599761","filename":"file1"},{"photo_id":"1366599757","filename":"file0"},{"photo_id":"1366599768","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366599764":["hashtag1","hashtag2"]},{"1366599773":["hashtag1","hashtag2"]},{"1366599761":["hashtag1","hashtag2"]},{"1366599757":["hashtag1","hashtag2"]},{"1366599768":["hashtag1","hashtag2"]},{"1366599777":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366599764, 1366599773, 1366599761, 1366599757, 1366599768, 1366599777)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 50.13035440444946 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:15:47.229250
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/15/image_16062025_22_15_24_9665.jpg', 2), ('/home/nano/Desktop/images/16062025/22/14/image_16062025_22_15_05_9691.jpg', 2), ('/home/nano/Desktop/images/16062025/22/14/image_16062025_22_14_55_10683.jpg', 2), ('/home/nano/Desktop/images/16062025/22/10/image_16062025_22_10_55_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/22/07/image_16062025_22_07_34_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/22/07/image_16062025_22_07_25_9671.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/15/image_16062025_22_15_24_9665.jpg', '/home/nano/Desktop/images/16062025/22/14/image_16062025_22_15_05_9691.jpg', '/home/nano/Desktop/images/16062025/22/14/image_16062025_22_14_55_10683.jpg', '/home/nano/Desktop/images/16062025/22/10/image_16062025_22_10_55_9669.jpg', '/home/nano/Desktop/images/16062025/22/07/image_16062025_22_07_34_9673.jpg', '/home/nano/Desktop/images/16062025/22/07/image_16062025_22_07_25_9671.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/15/image_16062025_22_15_24_9665.jpg
/home/nano/Desktop/images/16062025/22/14/image_16062025_22_15_05_9691.jpg
/home/nano/Desktop/images/16062025/22/14/image_16062025_22_14_55_10683.jpg
/home/nano/Desktop/images/16062025/22/10/image_16062025_22_10_55_9669.jpg
/home/nano/Desktop/images/16062025/22/07/image_16062025_22_07_34_9673.jpg
/home/nano/Desktop/images/16062025/22/07/image_16062025_22_07_25_9671.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366599884","1366599815","1366599880","1366599862","1366599829","1366599819"],"photo_ids_order":["1366599815","1366599819","1366599829","1366599862","1366599880","1366599884"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e9196ec0d44d38833dc20ee93b923301.jpg","text":"TemporaryFile(/tmp/multipartBody2102864871751055708asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105010092,"filename":"image_16062025_22_07_25_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1edce58c5d736519c6e108644dbcbe84.jpg","text":"TemporaryFile(/tmp/multipartBody8319116761034720381asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105010092,"filename":"image_16062025_22_15_24_9665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d9ddf910679c685d5215d5f5a7f538c9.jpg","text":"TemporaryFile(/tmp/multipartBody7681070568549418730asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105010092,"filename":"image_16062025_22_07_34_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2045b220f18fe8cc2d44924b6ff4d09f.jpg","text":"TemporaryFile(/tmp/multipartBody5874200272532603986asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105010092,"filename":"image_16062025_22_10_55_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/211c17870d3659fb67d2d0e8d682ac9d.jpg","text":"TemporaryFile(/tmp/multipartBody3898723616184287887asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105010092,"filename":"image_16062025_22_14_55_10683.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/94908da49a3e20c8f9179b725529663d.jpg","text":"TemporaryFile(/tmp/multipartBody4129357455379321459asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105010092,"filename":"image_16062025_22_15_05_9691.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366599829","file1":"1366599819","file0":"1366599815","file4":"1366599880","file5":"1366599884","file3":"1366599862"},"map_files_photo_id_array":[{"photo_id":"1366599884","filename":"file5"},{"photo_id":"1366599829","filename":"file2"},{"photo_id":"1366599880","filename":"file4"},{"photo_id":"1366599819","filename":"file1"},{"photo_id":"1366599815","filename":"file0"},{"photo_id":"1366599862","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366599884":["hashtag1","hashtag2"]},{"1366599815":["hashtag1","hashtag2"]},{"1366599880":["hashtag1","hashtag2"]},{"1366599862":["hashtag1","hashtag2"]},{"1366599829":["hashtag1","hashtag2"]},{"1366599819":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366599884, 1366599815, 1366599880, 1366599862, 1366599829, 1366599819)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 66.09583377838135 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:17:03.240730
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/17/image_16062025_22_17_35_10674.jpg', 2), ('/home/nano/Desktop/images/16062025/22/16/image_16062025_22_16_45_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/22/16/image_16062025_22_16_35_10681.jpg', 2), ('/home/nano/Desktop/images/16062025/22/16/image_16062025_22_16_24_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/22/16/image_16062025_22_16_15_9674.jpg', 2), ('/home/nano/Desktop/images/16062025/22/15/image_16062025_22_16_05_10696.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/17/image_16062025_22_17_35_10674.jpg', '/home/nano/Desktop/images/16062025/22/16/image_16062025_22_16_45_9673.jpg', '/home/nano/Desktop/images/16062025/22/16/image_16062025_22_16_35_10681.jpg', '/home/nano/Desktop/images/16062025/22/16/image_16062025_22_16_24_9671.jpg', '/home/nano/Desktop/images/16062025/22/16/image_16062025_22_16_15_9674.jpg', '/home/nano/Desktop/images/16062025/22/15/image_16062025_22_16_05_10696.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/17/image_16062025_22_17_35_10674.jpg
/home/nano/Desktop/images/16062025/22/16/image_16062025_22_16_45_9673.jpg
/home/nano/Desktop/images/16062025/22/16/image_16062025_22_16_35_10681.jpg
/home/nano/Desktop/images/16062025/22/16/image_16062025_22_16_24_9671.jpg
/home/nano/Desktop/images/16062025/22/16/image_16062025_22_16_15_9674.jpg
/home/nano/Desktop/images/16062025/22/15/image_16062025_22_16_05_10696.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366599944","1366599911","1366599908","1366599973","1366599905","1366599901"],"photo_ids_order":["1366599901","1366599905","1366599908","1366599911","1366599944","1366599973"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a7e51e8e8378dfbe1d2cf1391e6ed0d6.jpg","text":"TemporaryFile(/tmp/multipartBody7462533434767724925asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105085553,"filename":"image_16062025_22_16_15_9674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/69abf4807f12432776671997d59f26c6.jpg","text":"TemporaryFile(/tmp/multipartBody8192528695724451060asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105085553,"filename":"image_16062025_22_16_24_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a93ebd98f8f8da75412d8a8d67dd1974.jpg","text":"TemporaryFile(/tmp/multipartBody5304438197903586456asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105085553,"filename":"image_16062025_22_16_35_10681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/24c22470c1e9f62cedd734a83abf0b22.jpg","text":"TemporaryFile(/tmp/multipartBody2765917878777395902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105085553,"filename":"image_16062025_22_16_05_10696.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/58ac0d114312ce7927b7da680e6ceef4.jpg","text":"TemporaryFile(/tmp/multipartBody8350155607932893474asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105085553,"filename":"image_16062025_22_16_45_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d1eb77f2e8f50a379e1eaa7d99177b4a.jpg","text":"TemporaryFile(/tmp/multipartBody874283427440951827asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105085553,"filename":"image_16062025_22_17_35_10674.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366599908","file1":"1366599905","file0":"1366599901","file4":"1366599944","file5":"1366599973","file3":"1366599911"},"map_files_photo_id_array":[{"photo_id":"1366599973","filename":"file5"},{"photo_id":"1366599908","filename":"file2"},{"photo_id":"1366599944","filename":"file4"},{"photo_id":"1366599905","filename":"file1"},{"photo_id":"1366599901","filename":"file0"},{"photo_id":"1366599911","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366599944":["hashtag1","hashtag2"]},{"1366599911":["hashtag1","hashtag2"]},{"1366599908":["hashtag1","hashtag2"]},{"1366599973":["hashtag1","hashtag2"]},{"1366599905":["hashtag1","hashtag2"]},{"1366599901":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366599944, 1366599911, 1366599908, 1366599973, 1366599905, 1366599901)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 65.66443085670471 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:18:17.563387
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/18/image_16062025_22_18_45_9664.jpg', 2), ('/home/nano/Desktop/images/16062025/22/18/image_16062025_22_18_25_9665.jpg', 2), ('/home/nano/Desktop/images/16062025/22/18/image_16062025_22_18_15_9690.jpg', 2), ('/home/nano/Desktop/images/16062025/22/17/image_16062025_22_18_05_10692.jpg', 2), ('/home/nano/Desktop/images/16062025/22/17/image_16062025_22_17_55_9665.jpg', 2), ('/home/nano/Desktop/images/16062025/22/17/image_16062025_22_17_45_9665.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/18/image_16062025_22_18_45_9664.jpg', '/home/nano/Desktop/images/16062025/22/18/image_16062025_22_18_25_9665.jpg', '/home/nano/Desktop/images/16062025/22/18/image_16062025_22_18_15_9690.jpg', '/home/nano/Desktop/images/16062025/22/17/image_16062025_22_18_05_10692.jpg', '/home/nano/Desktop/images/16062025/22/17/image_16062025_22_17_55_9665.jpg', '/home/nano/Desktop/images/16062025/22/17/image_16062025_22_17_45_9665.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/18/image_16062025_22_18_45_9664.jpg
/home/nano/Desktop/images/16062025/22/18/image_16062025_22_18_25_9665.jpg
/home/nano/Desktop/images/16062025/22/18/image_16062025_22_18_15_9690.jpg
/home/nano/Desktop/images/16062025/22/17/image_16062025_22_18_05_10692.jpg
/home/nano/Desktop/images/16062025/22/17/image_16062025_22_17_55_9665.jpg
/home/nano/Desktop/images/16062025/22/17/image_16062025_22_17_45_9665.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366600007","1366600018","1366600041","1366600065","1366600058","1366600031"],"photo_ids_order":["1366600007","1366600018","1366600031","1366600041","1366600058","1366600065"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/970d916e04cfc894d4293717ed70d25d.jpg","text":"TemporaryFile(/tmp/multipartBody1396722455818935264asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105159756,"filename":"image_16062025_22_18_45_9664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2a8093196f9eb30c4ff67393887e2100.jpg","text":"TemporaryFile(/tmp/multipartBody1009447008562873272asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105159756,"filename":"image_16062025_22_18_25_9665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/608e82232cbbc43a5822c92b45cbcb33.jpg","text":"TemporaryFile(/tmp/multipartBody7297109177325519460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105159756,"filename":"image_16062025_22_18_05_10692.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d398da98a7eb14b37c02cb81cc00a3f1.jpg","text":"TemporaryFile(/tmp/multipartBody2473596350376373898asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105159756,"filename":"image_16062025_22_17_45_9665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/132411257c256f9fc620a1168c498ec0.jpg","text":"TemporaryFile(/tmp/multipartBody430923324519358541asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105159756,"filename":"image_16062025_22_17_55_9665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c1668ed56dbf7f625cd0586f2a00da1c.jpg","text":"TemporaryFile(/tmp/multipartBody3108526099551019409asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105159756,"filename":"image_16062025_22_18_15_9690.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366600031","file1":"1366600018","file0":"1366600007","file4":"1366600058","file5":"1366600065","file3":"1366600041"},"map_files_photo_id_array":[{"photo_id":"1366600065","filename":"file5"},{"photo_id":"1366600031","filename":"file2"},{"photo_id":"1366600058","filename":"file4"},{"photo_id":"1366600018","filename":"file1"},{"photo_id":"1366600007","filename":"file0"},{"photo_id":"1366600041","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366600007":["hashtag1","hashtag2"]},{"1366600018":["hashtag1","hashtag2"]},{"1366600041":["hashtag1","hashtag2"]},{"1366600065":["hashtag1","hashtag2"]},{"1366600058":["hashtag1","hashtag2"]},{"1366600031":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366600007, 1366600018, 1366600041, 1366600065, 1366600058, 1366600031)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 63.66010499000549 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:19:32.662841
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/19/image_16062025_22_19_35_10673.jpg', 2), ('/home/nano/Desktop/images/16062025/22/19/image_16062025_22_19_25_9678.jpg', 2), ('/home/nano/Desktop/images/16062025/22/19/image_16062025_22_19_15_9687.jpg', 2), ('/home/nano/Desktop/images/16062025/22/18/image_16062025_22_19_05_10698.jpg', 2), ('/home/nano/Desktop/images/16062025/22/18/image_16062025_22_18_55_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/22/17/image_16062025_22_17_25_9664.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/19/image_16062025_22_19_35_10673.jpg', '/home/nano/Desktop/images/16062025/22/19/image_16062025_22_19_25_9678.jpg', '/home/nano/Desktop/images/16062025/22/19/image_16062025_22_19_15_9687.jpg', '/home/nano/Desktop/images/16062025/22/18/image_16062025_22_19_05_10698.jpg', '/home/nano/Desktop/images/16062025/22/18/image_16062025_22_18_55_9668.jpg', '/home/nano/Desktop/images/16062025/22/17/image_16062025_22_17_25_9664.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/19/image_16062025_22_19_35_10673.jpg
/home/nano/Desktop/images/16062025/22/19/image_16062025_22_19_25_9678.jpg
/home/nano/Desktop/images/16062025/22/19/image_16062025_22_19_15_9687.jpg
/home/nano/Desktop/images/16062025/22/18/image_16062025_22_19_05_10698.jpg
/home/nano/Desktop/images/16062025/22/18/image_16062025_22_18_55_9668.jpg
/home/nano/Desktop/images/16062025/22/17/image_16062025_22_17_25_9664.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366600189","1366600183","1366600216","1366600201","1366600193","1366600223"],"photo_ids_order":["1366600183","1366600189","1366600193","1366600201","1366600216","1366600223"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e773d7196813e3b4108ead436422ae1d.jpg","text":"TemporaryFile(/tmp/multipartBody8329036193852266893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105239039,"filename":"image_16062025_22_19_25_9678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/464f029c10f394398742235d50934ec9.jpg","text":"TemporaryFile(/tmp/multipartBody123319874640478198asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105239039,"filename":"image_16062025_22_19_35_10673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5bf85da0fbb67239553693056ed627fb.jpg","text":"TemporaryFile(/tmp/multipartBody4784196686640171485asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105239039,"filename":"image_16062025_22_18_55_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b0410fe1770212be649c8fddedeec6d0.jpg","text":"TemporaryFile(/tmp/multipartBody3060661714273763836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105239039,"filename":"image_16062025_22_19_05_10698.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/179b1cd258a4fbbb98eb8c3d78517eb4.jpg","text":"TemporaryFile(/tmp/multipartBody1686707364034200717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105239039,"filename":"image_16062025_22_19_15_9687.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/49c304f6fc7b41253587280cbfbfde37.jpg","text":"TemporaryFile(/tmp/multipartBody9019021134515117349asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105239039,"filename":"image_16062025_22_17_25_9664.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366600193","file1":"1366600189","file0":"1366600183","file4":"1366600216","file5":"1366600223","file3":"1366600201"},"map_files_photo_id_array":[{"photo_id":"1366600223","filename":"file5"},{"photo_id":"1366600193","filename":"file2"},{"photo_id":"1366600216","filename":"file4"},{"photo_id":"1366600189","filename":"file1"},{"photo_id":"1366600183","filename":"file0"},{"photo_id":"1366600201","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366600189":["hashtag1","hashtag2"]},{"1366600183":["hashtag1","hashtag2"]},{"1366600216":["hashtag1","hashtag2"]},{"1366600201":["hashtag1","hashtag2"]},{"1366600193":["hashtag1","hashtag2"]},{"1366600223":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366600189, 1366600183, 1366600216, 1366600201, 1366600193, 1366600223)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 88.85500240325928 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:21:16.935318
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/21/image_16062025_22_21_45_10677.jpg', 2), ('/home/nano/Desktop/images/16062025/22/21/image_16062025_22_21_34_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/22/21/image_16062025_22_21_25_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/22/21/image_16062025_22_21_15_10687.jpg', 2), ('/home/nano/Desktop/images/16062025/22/20/image_16062025_22_21_04_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/22/20/image_16062025_22_20_55_9669.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/21/image_16062025_22_21_45_10677.jpg', '/home/nano/Desktop/images/16062025/22/21/image_16062025_22_21_34_9668.jpg', '/home/nano/Desktop/images/16062025/22/21/image_16062025_22_21_25_9668.jpg', '/home/nano/Desktop/images/16062025/22/21/image_16062025_22_21_15_10687.jpg', '/home/nano/Desktop/images/16062025/22/20/image_16062025_22_21_04_9667.jpg', '/home/nano/Desktop/images/16062025/22/20/image_16062025_22_20_55_9669.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/21/image_16062025_22_21_45_10677.jpg
/home/nano/Desktop/images/16062025/22/21/image_16062025_22_21_34_9668.jpg
/home/nano/Desktop/images/16062025/22/21/image_16062025_22_21_25_9668.jpg
/home/nano/Desktop/images/16062025/22/21/image_16062025_22_21_15_10687.jpg
/home/nano/Desktop/images/16062025/22/20/image_16062025_22_21_04_9667.jpg
/home/nano/Desktop/images/16062025/22/20/image_16062025_22_20_55_9669.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366600309","1366600303","1366600305","1366600298","1366600292","1366600301"],"photo_ids_order":["1366600292","1366600298","1366600301","1366600303","1366600305","1366600309"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a17eff89a04db63ed61cd599bb632cf2.jpg","text":"TemporaryFile(/tmp/multipartBody1230251548526369834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105339302,"filename":"image_16062025_22_20_55_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/422f28c87c1df552233065b5ce6dd47e.jpg","text":"TemporaryFile(/tmp/multipartBody3864948396645296172asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105339302,"filename":"image_16062025_22_21_15_10687.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0edd0000926cd26b1c2a892420d2725f.jpg","text":"TemporaryFile(/tmp/multipartBody4802013147392878453asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105339302,"filename":"image_16062025_22_21_04_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4b7a69641873d247f64eeca61fa000ac.jpg","text":"TemporaryFile(/tmp/multipartBody8313693705312088725asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105339302,"filename":"image_16062025_22_21_34_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8dc77d82835e7e689c257badf6127922.jpg","text":"TemporaryFile(/tmp/multipartBody9129707397245996401asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105339302,"filename":"image_16062025_22_21_45_10677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a20c7ca621619c8ab157720ad4b22d19.jpg","text":"TemporaryFile(/tmp/multipartBody2568134142315794669asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105339302,"filename":"image_16062025_22_21_25_9668.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366600301","file1":"1366600298","file0":"1366600292","file4":"1366600305","file5":"1366600309","file3":"1366600303"},"map_files_photo_id_array":[{"photo_id":"1366600309","filename":"file5"},{"photo_id":"1366600301","filename":"file2"},{"photo_id":"1366600305","filename":"file4"},{"photo_id":"1366600298","filename":"file1"},{"photo_id":"1366600292","filename":"file0"},{"photo_id":"1366600303","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366600309":["hashtag1","hashtag2"]},{"1366600303":["hashtag1","hashtag2"]},{"1366600305":["hashtag1","hashtag2"]},{"1366600298":["hashtag1","hashtag2"]},{"1366600292":["hashtag1","hashtag2"]},{"1366600301":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366600309, 1366600303, 1366600305, 1366600298, 1366600292, 1366600301)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 48.20538258552551 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:22:17.045049
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/22/image_16062025_22_22_35_9686.jpg', 2), ('/home/nano/Desktop/images/16062025/22/22/image_16062025_22_22_25_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/22/22/image_16062025_22_22_15_10701.jpg', 2), ('/home/nano/Desktop/images/16062025/22/21/image_16062025_22_22_05_9679.jpg', 2), ('/home/nano/Desktop/images/16062025/22/21/image_16062025_22_21_55_9670.jpg', 2), ('/home/nano/Desktop/images/16062025/22/20/image_16062025_22_20_45_10684.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/22/image_16062025_22_22_35_9686.jpg', '/home/nano/Desktop/images/16062025/22/22/image_16062025_22_22_25_9667.jpg', '/home/nano/Desktop/images/16062025/22/22/image_16062025_22_22_15_10701.jpg', '/home/nano/Desktop/images/16062025/22/21/image_16062025_22_22_05_9679.jpg', '/home/nano/Desktop/images/16062025/22/21/image_16062025_22_21_55_9670.jpg', '/home/nano/Desktop/images/16062025/22/20/image_16062025_22_20_45_10684.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/22/image_16062025_22_22_35_9686.jpg
/home/nano/Desktop/images/16062025/22/22/image_16062025_22_22_25_9667.jpg
/home/nano/Desktop/images/16062025/22/22/image_16062025_22_22_15_10701.jpg
/home/nano/Desktop/images/16062025/22/21/image_16062025_22_22_05_9679.jpg
/home/nano/Desktop/images/16062025/22/21/image_16062025_22_21_55_9670.jpg
/home/nano/Desktop/images/16062025/22/20/image_16062025_22_20_45_10684.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366600357","1366600324","1366600411","1366600383","1366600394","1366600373"],"photo_ids_order":["1366600324","1366600357","1366600373","1366600383","1366600394","1366600411"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a64aee091b2516a64103dca8749e75e8.jpg","text":"TemporaryFile(/tmp/multipartBody8904007525969248931asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105399337,"filename":"image_16062025_22_22_25_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/eda203084ae206fe1efb80b5b209dca8.jpg","text":"TemporaryFile(/tmp/multipartBody8202792222222013114asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105399337,"filename":"image_16062025_22_22_35_9686.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c9787431d7d381c6d508aa0b08ea517e.jpg","text":"TemporaryFile(/tmp/multipartBody3484369611681633342asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105399337,"filename":"image_16062025_22_20_45_10684.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/199dc04cee9f56abee440d2d929cd143.jpg","text":"TemporaryFile(/tmp/multipartBody4804591934954765819asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105399337,"filename":"image_16062025_22_22_05_9679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8629d063c0fbf16daeb451030d4ce333.jpg","text":"TemporaryFile(/tmp/multipartBody7515132857094039506asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105399337,"filename":"image_16062025_22_21_55_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/87941973240bc44ffdf486bac7bf8f2d.jpg","text":"TemporaryFile(/tmp/multipartBody1634767983423980518asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105399337,"filename":"image_16062025_22_22_15_10701.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366600373","file1":"1366600357","file0":"1366600324","file4":"1366600394","file5":"1366600411","file3":"1366600383"},"map_files_photo_id_array":[{"photo_id":"1366600411","filename":"file5"},{"photo_id":"1366600373","filename":"file2"},{"photo_id":"1366600394","filename":"file4"},{"photo_id":"1366600357","filename":"file1"},{"photo_id":"1366600324","filename":"file0"},{"photo_id":"1366600383","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366600357":["hashtag1","hashtag2"]},{"1366600324":["hashtag1","hashtag2"]},{"1366600411":["hashtag1","hashtag2"]},{"1366600383":["hashtag1","hashtag2"]},{"1366600394":["hashtag1","hashtag2"]},{"1366600373":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366600357, 1366600324, 1366600411, 1366600383, 1366600394, 1366600373)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 72.08490180969238 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:23:32.137692
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/23/image_16062025_22_23_35_9691.jpg', 2), ('/home/nano/Desktop/images/16062025/22/23/image_16062025_22_23_25_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/22/23/image_16062025_22_23_15_10706.jpg', 2), ('/home/nano/Desktop/images/16062025/22/22/image_16062025_22_23_05_9680.jpg', 2), ('/home/nano/Desktop/images/16062025/22/22/image_16062025_22_22_55_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/22/20/image_16062025_22_20_34_9666.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/23/image_16062025_22_23_35_9691.jpg', '/home/nano/Desktop/images/16062025/22/23/image_16062025_22_23_25_9669.jpg', '/home/nano/Desktop/images/16062025/22/23/image_16062025_22_23_15_10706.jpg', '/home/nano/Desktop/images/16062025/22/22/image_16062025_22_23_05_9680.jpg', '/home/nano/Desktop/images/16062025/22/22/image_16062025_22_22_55_9673.jpg', '/home/nano/Desktop/images/16062025/22/20/image_16062025_22_20_34_9666.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/23/image_16062025_22_23_35_9691.jpg
/home/nano/Desktop/images/16062025/22/23/image_16062025_22_23_25_9669.jpg
/home/nano/Desktop/images/16062025/22/23/image_16062025_22_23_15_10706.jpg
/home/nano/Desktop/images/16062025/22/22/image_16062025_22_23_05_9680.jpg
/home/nano/Desktop/images/16062025/22/22/image_16062025_22_22_55_9673.jpg
/home/nano/Desktop/images/16062025/22/20/image_16062025_22_20_34_9666.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366600492","1366600495","1366600483","1366600479","1366600487","1366600454"],"photo_ids_order":["1366600454","1366600479","1366600483","1366600487","1366600492","1366600495"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/40610a54f851cdd6f07282b2eecd4106.jpg","text":"TemporaryFile(/tmp/multipartBody6241327845248218139asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105474988,"filename":"image_16062025_22_22_55_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/78a295122e23edc4ca96476a56f1e363.jpg","text":"TemporaryFile(/tmp/multipartBody7277342467904826632asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105474988,"filename":"image_16062025_22_20_34_9666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/454271b95e8e50286af4319eeb442fc5.jpg","text":"TemporaryFile(/tmp/multipartBody1850033225753937884asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105474988,"filename":"image_16062025_22_23_15_10706.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9a3a13090271e93da1fcd3f2f5e9a924.jpg","text":"TemporaryFile(/tmp/multipartBody1624463904912249748asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105474988,"filename":"image_16062025_22_23_25_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f42f4f1a5aa1c0c2e94ed0ee7e81052d.jpg","text":"TemporaryFile(/tmp/multipartBody8385512087187241506asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105474988,"filename":"image_16062025_22_23_05_9680.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e08678515347f9c77044547ad16ee0f1.jpg","text":"TemporaryFile(/tmp/multipartBody4205403513679127495asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105474988,"filename":"image_16062025_22_23_35_9691.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366600483","file1":"1366600479","file0":"1366600454","file4":"1366600492","file5":"1366600495","file3":"1366600487"},"map_files_photo_id_array":[{"photo_id":"1366600495","filename":"file5"},{"photo_id":"1366600483","filename":"file2"},{"photo_id":"1366600492","filename":"file4"},{"photo_id":"1366600479","filename":"file1"},{"photo_id":"1366600454","filename":"file0"},{"photo_id":"1366600487","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366600492":["hashtag1","hashtag2"]},{"1366600495":["hashtag1","hashtag2"]},{"1366600483":["hashtag1","hashtag2"]},{"1366600479":["hashtag1","hashtag2"]},{"1366600487":["hashtag1","hashtag2"]},{"1366600454":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366600492, 1366600495, 1366600483, 1366600479, 1366600487, 1366600454)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 64.77966380119324 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:24:47.284636
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/24/image_16062025_22_24_44_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/22/24/image_16062025_22_24_35_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/22/24/image_16062025_22_24_25_10677.jpg', 2), ('/home/nano/Desktop/images/16062025/22/24/image_16062025_22_24_14_9691.jpg', 2), ('/home/nano/Desktop/images/16062025/22/23/image_16062025_22_24_05_9684.jpg', 2), ('/home/nano/Desktop/images/16062025/22/23/image_16062025_22_23_45_10675.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/24/image_16062025_22_24_44_9673.jpg', '/home/nano/Desktop/images/16062025/22/24/image_16062025_22_24_35_9667.jpg', '/home/nano/Desktop/images/16062025/22/24/image_16062025_22_24_25_10677.jpg', '/home/nano/Desktop/images/16062025/22/24/image_16062025_22_24_14_9691.jpg', '/home/nano/Desktop/images/16062025/22/23/image_16062025_22_24_05_9684.jpg', '/home/nano/Desktop/images/16062025/22/23/image_16062025_22_23_45_10675.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/24/image_16062025_22_24_44_9673.jpg
/home/nano/Desktop/images/16062025/22/24/image_16062025_22_24_35_9667.jpg
/home/nano/Desktop/images/16062025/22/24/image_16062025_22_24_25_10677.jpg
/home/nano/Desktop/images/16062025/22/24/image_16062025_22_24_14_9691.jpg
/home/nano/Desktop/images/16062025/22/23/image_16062025_22_24_05_9684.jpg
/home/nano/Desktop/images/16062025/22/23/image_16062025_22_23_45_10675.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366600525","1366600533","1366600515","1366600506","1366600520","1366600508"],"photo_ids_order":["1366600506","1366600508","1366600515","1366600520","1366600525","1366600533"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ee44cdf179bc4d1661fcfb4d92a222c8.jpg","text":"TemporaryFile(/tmp/multipartBody4225616502535704391asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105551575,"filename":"image_16062025_22_24_05_9684.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/88ab89768ea4e5476d3438a0005782bf.jpg","text":"TemporaryFile(/tmp/multipartBody1611322682238954360asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105551575,"filename":"image_16062025_22_23_45_10675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9a428a4a895ddccbad5ee7f82fb9c9d4.jpg","text":"TemporaryFile(/tmp/multipartBody6947061042903559661asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105551575,"filename":"image_16062025_22_24_25_10677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3f88a85f0db343f513cb6e86e3e0a102.jpg","text":"TemporaryFile(/tmp/multipartBody155859291006652201asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105551575,"filename":"image_16062025_22_24_44_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/62ca34e355f8b6e7a0919453dcb35cc2.jpg","text":"TemporaryFile(/tmp/multipartBody3975195243915557170asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105551575,"filename":"image_16062025_22_24_14_9691.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/26c0d24e1c9dddd0a58fb14afd610f19.jpg","text":"TemporaryFile(/tmp/multipartBody8251879221575110771asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105551575,"filename":"image_16062025_22_24_35_9667.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366600515","file1":"1366600508","file0":"1366600506","file4":"1366600525","file5":"1366600533","file3":"1366600520"},"map_files_photo_id_array":[{"photo_id":"1366600533","filename":"file5"},{"photo_id":"1366600515","filename":"file2"},{"photo_id":"1366600525","filename":"file4"},{"photo_id":"1366600508","filename":"file1"},{"photo_id":"1366600506","filename":"file0"},{"photo_id":"1366600520","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366600525":["hashtag1","hashtag2"]},{"1366600533":["hashtag1","hashtag2"]},{"1366600515":["hashtag1","hashtag2"]},{"1366600506":["hashtag1","hashtag2"]},{"1366600520":["hashtag1","hashtag2"]},{"1366600508":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366600525, 1366600533, 1366600515, 1366600506, 1366600520, 1366600508)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 92.5047652721405 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:26:32.494668
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/26/image_16062025_22_26_45_9672.jpg', 2), ('/home/nano/Desktop/images/16062025/22/26/image_16062025_22_26_25_10676.jpg', 2), ('/home/nano/Desktop/images/16062025/22/26/image_16062025_22_26_15_9699.jpg', 2), ('/home/nano/Desktop/images/16062025/22/25/image_16062025_22_25_55_10686.jpg', 2), ('/home/nano/Desktop/images/16062025/22/25/image_16062025_22_25_45_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/22/25/image_16062025_22_25_25_10694.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/26/image_16062025_22_26_45_9672.jpg', '/home/nano/Desktop/images/16062025/22/26/image_16062025_22_26_25_10676.jpg', '/home/nano/Desktop/images/16062025/22/26/image_16062025_22_26_15_9699.jpg', '/home/nano/Desktop/images/16062025/22/25/image_16062025_22_25_55_10686.jpg', '/home/nano/Desktop/images/16062025/22/25/image_16062025_22_25_45_9677.jpg', '/home/nano/Desktop/images/16062025/22/25/image_16062025_22_25_25_10694.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/26/image_16062025_22_26_45_9672.jpg
/home/nano/Desktop/images/16062025/22/26/image_16062025_22_26_25_10676.jpg
/home/nano/Desktop/images/16062025/22/26/image_16062025_22_26_15_9699.jpg
/home/nano/Desktop/images/16062025/22/25/image_16062025_22_25_55_10686.jpg
/home/nano/Desktop/images/16062025/22/25/image_16062025_22_25_45_9677.jpg
/home/nano/Desktop/images/16062025/22/25/image_16062025_22_25_25_10694.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366600972","1366600921","1366600738","1366600612","1366600568","1366600679"],"photo_ids_order":["1366600568","1366600612","1366600679","1366600738","1366600921","1366600972"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6edc04a90d344fbd767f2eed910871b5.jpg","text":"TemporaryFile(/tmp/multipartBody1909529437471730211asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105656035,"filename":"image_16062025_22_25_25_10694.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9eac408c5be0cd7314d62eb16f22adeb.jpg","text":"TemporaryFile(/tmp/multipartBody6846939143646646496asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105656035,"filename":"image_16062025_22_25_45_9677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e9284fa65ca7f1430145b94ba125c227.jpg","text":"TemporaryFile(/tmp/multipartBody5807295855618545430asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105656035,"filename":"image_16062025_22_25_55_10686.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5f6deb2c0eebb7b5a25a667d04ce791f.jpg","text":"TemporaryFile(/tmp/multipartBody1912045925428537506asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105656035,"filename":"image_16062025_22_26_25_10676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/95b59156d55d599dc4d773e7a0b4fcc0.jpg","text":"TemporaryFile(/tmp/multipartBody2425121501955700093asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105656035,"filename":"image_16062025_22_26_45_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/90341ad51adf84f59991cdb1aedba917.jpg","text":"TemporaryFile(/tmp/multipartBody6665444995402117486asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105656035,"filename":"image_16062025_22_26_15_9699.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366600679","file1":"1366600612","file0":"1366600568","file4":"1366600921","file5":"1366600972","file3":"1366600738"},"map_files_photo_id_array":[{"photo_id":"1366600972","filename":"file5"},{"photo_id":"1366600679","filename":"file2"},{"photo_id":"1366600921","filename":"file4"},{"photo_id":"1366600612","filename":"file1"},{"photo_id":"1366600568","filename":"file0"},{"photo_id":"1366600738","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366600972":["hashtag1","hashtag2"]},{"1366600921":["hashtag1","hashtag2"]},{"1366600738":["hashtag1","hashtag2"]},{"1366600612":["hashtag1","hashtag2"]},{"1366600568":["hashtag1","hashtag2"]},{"1366600679":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366600972, 1366600921, 1366600738, 1366600612, 1366600568, 1366600679)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 102.49800133705139 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:28:17.682156
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/28/image_16062025_22_28_45_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/22/28/image_16062025_22_28_35_10680.jpg', 2), ('/home/nano/Desktop/images/16062025/22/28/image_16062025_22_28_25_9674.jpg', 2), ('/home/nano/Desktop/images/16062025/22/28/image_16062025_22_28_15_9696.jpg', 2), ('/home/nano/Desktop/images/16062025/22/27/image_16062025_22_27_54_9687.jpg', 2), ('/home/nano/Desktop/images/16062025/22/27/image_16062025_22_27_45_9686.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/28/image_16062025_22_28_45_9677.jpg', '/home/nano/Desktop/images/16062025/22/28/image_16062025_22_28_35_10680.jpg', '/home/nano/Desktop/images/16062025/22/28/image_16062025_22_28_25_9674.jpg', '/home/nano/Desktop/images/16062025/22/28/image_16062025_22_28_15_9696.jpg', '/home/nano/Desktop/images/16062025/22/27/image_16062025_22_27_54_9687.jpg', '/home/nano/Desktop/images/16062025/22/27/image_16062025_22_27_45_9686.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/28/image_16062025_22_28_45_9677.jpg
/home/nano/Desktop/images/16062025/22/28/image_16062025_22_28_35_10680.jpg
/home/nano/Desktop/images/16062025/22/28/image_16062025_22_28_25_9674.jpg
/home/nano/Desktop/images/16062025/22/28/image_16062025_22_28_15_9696.jpg
/home/nano/Desktop/images/16062025/22/27/image_16062025_22_27_54_9687.jpg
/home/nano/Desktop/images/16062025/22/27/image_16062025_22_27_45_9686.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366601085","1366601094","1366601076","1366601121","1366601081","1366601132"],"photo_ids_order":["1366601076","1366601081","1366601085","1366601094","1366601121","1366601132"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7bc9759b349f14c0dfd6b5ee8611246f.jpg","text":"TemporaryFile(/tmp/multipartBody7083273587285795791asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105761363,"filename":"image_16062025_22_28_25_9674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/39b15aeab0b4fe7df075166922d29b72.jpg","text":"TemporaryFile(/tmp/multipartBody8271086400881065867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105761363,"filename":"image_16062025_22_28_15_9696.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2c467ed531189fb3d38074e680c04ee3.jpg","text":"TemporaryFile(/tmp/multipartBody6472547684778964366asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105761363,"filename":"image_16062025_22_28_45_9677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/174f58743607f3145748d572e51e841e.jpg","text":"TemporaryFile(/tmp/multipartBody4671602658556953947asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105761363,"filename":"image_16062025_22_27_54_9687.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/21cc9fa5cb7a7fdbafdba61916b1a51e.jpg","text":"TemporaryFile(/tmp/multipartBody5101022531545495051asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105761363,"filename":"image_16062025_22_28_35_10680.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fa8f3eac0f50b1f0a38156d82d0908e5.jpg","text":"TemporaryFile(/tmp/multipartBody6537227417948741514asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105761363,"filename":"image_16062025_22_27_45_9686.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366601085","file1":"1366601081","file0":"1366601076","file4":"1366601121","file5":"1366601132","file3":"1366601094"},"map_files_photo_id_array":[{"photo_id":"1366601132","filename":"file5"},{"photo_id":"1366601085","filename":"file2"},{"photo_id":"1366601121","filename":"file4"},{"photo_id":"1366601081","filename":"file1"},{"photo_id":"1366601076","filename":"file0"},{"photo_id":"1366601094","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366601085":["hashtag1","hashtag2"]},{"1366601094":["hashtag1","hashtag2"]},{"1366601076":["hashtag1","hashtag2"]},{"1366601121":["hashtag1","hashtag2"]},{"1366601081":["hashtag1","hashtag2"]},{"1366601132":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366601085, 1366601094, 1366601076, 1366601121, 1366601081, 1366601132)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 132.70002603530884 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:30:32.007520
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/30/image_16062025_22_30_45_10683.jpg', 2), ('/home/nano/Desktop/images/16062025/22/30/image_16062025_22_30_34_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/22/30/image_16062025_22_30_25_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/22/29/image_16062025_22_30_04_9703.jpg', 2), ('/home/nano/Desktop/images/16062025/22/29/image_16062025_22_29_55_9698.jpg', 2), ('/home/nano/Desktop/images/16062025/22/29/image_16062025_22_29_45_9673.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/30/image_16062025_22_30_45_10683.jpg', '/home/nano/Desktop/images/16062025/22/30/image_16062025_22_30_34_9667.jpg', '/home/nano/Desktop/images/16062025/22/30/image_16062025_22_30_25_9668.jpg', '/home/nano/Desktop/images/16062025/22/29/image_16062025_22_30_04_9703.jpg', '/home/nano/Desktop/images/16062025/22/29/image_16062025_22_29_55_9698.jpg', '/home/nano/Desktop/images/16062025/22/29/image_16062025_22_29_45_9673.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/30/image_16062025_22_30_45_10683.jpg
/home/nano/Desktop/images/16062025/22/30/image_16062025_22_30_34_9667.jpg
/home/nano/Desktop/images/16062025/22/30/image_16062025_22_30_25_9668.jpg
/home/nano/Desktop/images/16062025/22/29/image_16062025_22_30_04_9703.jpg
/home/nano/Desktop/images/16062025/22/29/image_16062025_22_29_55_9698.jpg
/home/nano/Desktop/images/16062025/22/29/image_16062025_22_29_45_9673.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366601203","1366601193","1366601169","1366601214","1366601237","1366601222"],"photo_ids_order":["1366601169","1366601193","1366601203","1366601214","1366601222","1366601237"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5d4dc1e161490eb1d60de49dba9da087.jpg","text":"TemporaryFile(/tmp/multipartBody3208272979774547842asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105894769,"filename":"image_16062025_22_30_25_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/41122dbc5f90144a9b5832c8d78c6bd5.jpg","text":"TemporaryFile(/tmp/multipartBody2269521892907954519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105894769,"filename":"image_16062025_22_30_34_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e4b50e538d34c185f821dc18c2bcb603.jpg","text":"TemporaryFile(/tmp/multipartBody3895530289198198291asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105894769,"filename":"image_16062025_22_30_45_10683.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/82b66bf45c1c80b0a5631919e3b77864.jpg","text":"TemporaryFile(/tmp/multipartBody81356117625524780asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105894769,"filename":"image_16062025_22_30_04_9703.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/14ade2d52bf50e7bce75d86924515aff.jpg","text":"TemporaryFile(/tmp/multipartBody2372889337816751824asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105894769,"filename":"image_16062025_22_29_45_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5eef9db5b632d3ad44abf0b4186147e8.jpg","text":"TemporaryFile(/tmp/multipartBody3707489208016827491asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105894769,"filename":"image_16062025_22_29_55_9698.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366601203","file1":"1366601193","file0":"1366601169","file4":"1366601222","file5":"1366601237","file3":"1366601214"},"map_files_photo_id_array":[{"photo_id":"1366601237","filename":"file5"},{"photo_id":"1366601203","filename":"file2"},{"photo_id":"1366601222","filename":"file4"},{"photo_id":"1366601193","filename":"file1"},{"photo_id":"1366601169","filename":"file0"},{"photo_id":"1366601214","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366601203":["hashtag1","hashtag2"]},{"1366601193":["hashtag1","hashtag2"]},{"1366601169":["hashtag1","hashtag2"]},{"1366601214":["hashtag1","hashtag2"]},{"1366601237":["hashtag1","hashtag2"]},{"1366601222":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366601203, 1366601193, 1366601169, 1366601214, 1366601237, 1366601222)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 75.44899344444275 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:32:02.657682
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/31/image_16062025_22_31_35_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/22/31/image_16062025_22_31_25_9676.jpg', 2), ('/home/nano/Desktop/images/16062025/22/31/image_16062025_22_31_15_10710.jpg', 2), ('/home/nano/Desktop/images/16062025/22/30/image_16062025_22_31_04_9692.jpg', 2), ('/home/nano/Desktop/images/16062025/22/30/image_16062025_22_30_55_9675.jpg', 2), ('/home/nano/Desktop/images/16062025/22/29/image_16062025_22_29_35_10682.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/31/image_16062025_22_31_35_9671.jpg', '/home/nano/Desktop/images/16062025/22/31/image_16062025_22_31_25_9676.jpg', '/home/nano/Desktop/images/16062025/22/31/image_16062025_22_31_15_10710.jpg', '/home/nano/Desktop/images/16062025/22/30/image_16062025_22_31_04_9692.jpg', '/home/nano/Desktop/images/16062025/22/30/image_16062025_22_30_55_9675.jpg', '/home/nano/Desktop/images/16062025/22/29/image_16062025_22_29_35_10682.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/31/image_16062025_22_31_35_9671.jpg
/home/nano/Desktop/images/16062025/22/31/image_16062025_22_31_25_9676.jpg
/home/nano/Desktop/images/16062025/22/31/image_16062025_22_31_15_10710.jpg
/home/nano/Desktop/images/16062025/22/30/image_16062025_22_31_04_9692.jpg
/home/nano/Desktop/images/16062025/22/30/image_16062025_22_30_55_9675.jpg
/home/nano/Desktop/images/16062025/22/29/image_16062025_22_29_35_10682.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366601376","1366601298","1366601352","1366601310","1366601294","1366601357"],"photo_ids_order":["1366601294","1366601298","1366601310","1366601352","1366601357","1366601376"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1af0887ad7eaa5bcaad0c0fcef0d8c39.jpg","text":"TemporaryFile(/tmp/multipartBody4814105807641140057asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105984468,"filename":"image_16062025_22_29_35_10682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d951e93ea8c43e0e26ad26493339f139.jpg","text":"TemporaryFile(/tmp/multipartBody5368081872422092221asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105984468,"filename":"image_16062025_22_31_25_9676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/195f53ea5751f9f2410e0064d4fe1a94.jpg","text":"TemporaryFile(/tmp/multipartBody4501879003416024832asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105984468,"filename":"image_16062025_22_31_04_9692.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5edbfd6783ab46c0ff475b4d76ef1415.jpg","text":"TemporaryFile(/tmp/multipartBody3369296638768819181asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105984468,"filename":"image_16062025_22_31_15_10710.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7d9118fac39d5d8149b4e858e77614ef.jpg","text":"TemporaryFile(/tmp/multipartBody2038421327799860880asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105984468,"filename":"image_16062025_22_31_35_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9a9ac9a9be0b057e6ae8cb85f57c8ea6.jpg","text":"TemporaryFile(/tmp/multipartBody5656306801557938331asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750105984468,"filename":"image_16062025_22_30_55_9675.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366601310","file1":"1366601298","file0":"1366601294","file4":"1366601357","file5":"1366601376","file3":"1366601352"},"map_files_photo_id_array":[{"photo_id":"1366601376","filename":"file5"},{"photo_id":"1366601310","filename":"file2"},{"photo_id":"1366601357","filename":"file4"},{"photo_id":"1366601298","filename":"file1"},{"photo_id":"1366601294","filename":"file0"},{"photo_id":"1366601352","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366601376":["hashtag1","hashtag2"]},{"1366601298":["hashtag1","hashtag2"]},{"1366601352":["hashtag1","hashtag2"]},{"1366601310":["hashtag1","hashtag2"]},{"1366601294":["hashtag1","hashtag2"]},{"1366601357":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366601376, 1366601298, 1366601352, 1366601310, 1366601294, 1366601357)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 79.66569805145264 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:33:32.312646
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/33/image_16062025_22_33_44_9674.jpg', 2), ('/home/nano/Desktop/images/16062025/22/33/image_16062025_22_33_25_10679.jpg', 2), ('/home/nano/Desktop/images/16062025/22/33/image_16062025_22_33_14_9695.jpg', 2), ('/home/nano/Desktop/images/16062025/22/32/image_16062025_22_33_05_9676.jpg', 2), ('/home/nano/Desktop/images/16062025/22/32/image_16062025_22_32_55_9678.jpg', 2), ('/home/nano/Desktop/images/16062025/22/32/image_16062025_22_32_45_10678.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/33/image_16062025_22_33_44_9674.jpg', '/home/nano/Desktop/images/16062025/22/33/image_16062025_22_33_25_10679.jpg', '/home/nano/Desktop/images/16062025/22/33/image_16062025_22_33_14_9695.jpg', '/home/nano/Desktop/images/16062025/22/32/image_16062025_22_33_05_9676.jpg', '/home/nano/Desktop/images/16062025/22/32/image_16062025_22_32_55_9678.jpg', '/home/nano/Desktop/images/16062025/22/32/image_16062025_22_32_45_10678.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/33/image_16062025_22_33_44_9674.jpg
/home/nano/Desktop/images/16062025/22/33/image_16062025_22_33_25_10679.jpg
/home/nano/Desktop/images/16062025/22/33/image_16062025_22_33_14_9695.jpg
/home/nano/Desktop/images/16062025/22/32/image_16062025_22_33_05_9676.jpg
/home/nano/Desktop/images/16062025/22/32/image_16062025_22_32_55_9678.jpg
/home/nano/Desktop/images/16062025/22/32/image_16062025_22_32_45_10678.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366601457","1366601471","1366601483","1366601450","1366601476","1366601467"],"photo_ids_order":["1366601450","1366601457","1366601467","1366601471","1366601476","1366601483"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bd021a42175326c1b40a8cb1c2da5787.jpg","text":"TemporaryFile(/tmp/multipartBody7447737745507778214asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106075201,"filename":"image_16062025_22_33_25_10679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a2525ccdbd74e783457acfa8deac793a.jpg","text":"TemporaryFile(/tmp/multipartBody8724178653741195417asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106075201,"filename":"image_16062025_22_33_05_9676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a341743d5d120fa11e221f5dbc61eee1.jpg","text":"TemporaryFile(/tmp/multipartBody6109917499508540660asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106075201,"filename":"image_16062025_22_32_45_10678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/46fd0a6cd3c2b066da22d36b6791c611.jpg","text":"TemporaryFile(/tmp/multipartBody515918612145495152asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106075201,"filename":"image_16062025_22_33_44_9674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bc5e2d1503dc27a02058cf6997e0eeb9.jpg","text":"TemporaryFile(/tmp/multipartBody1211735240173886424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106075201,"filename":"image_16062025_22_32_55_9678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fa663c02d7cf3c08b2c48d345ef1d372.jpg","text":"TemporaryFile(/tmp/multipartBody4947409003740530063asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106075201,"filename":"image_16062025_22_33_14_9695.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366601467","file1":"1366601457","file0":"1366601450","file4":"1366601476","file5":"1366601483","file3":"1366601471"},"map_files_photo_id_array":[{"photo_id":"1366601483","filename":"file5"},{"photo_id":"1366601467","filename":"file2"},{"photo_id":"1366601476","filename":"file4"},{"photo_id":"1366601457","filename":"file1"},{"photo_id":"1366601450","filename":"file0"},{"photo_id":"1366601471","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366601457":["hashtag1","hashtag2"]},{"1366601471":["hashtag1","hashtag2"]},{"1366601483":["hashtag1","hashtag2"]},{"1366601450":["hashtag1","hashtag2"]},{"1366601476":["hashtag1","hashtag2"]},{"1366601467":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366601457, 1366601471, 1366601483, 1366601450, 1366601476, 1366601467)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 91.8258900642395 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:35:17.527039
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/35/image_16062025_22_35_55_10676.jpg', 2), ('/home/nano/Desktop/images/16062025/22/35/image_16062025_22_35_35_9674.jpg', 2), ('/home/nano/Desktop/images/16062025/22/35/image_16062025_22_35_25_10677.jpg', 2), ('/home/nano/Desktop/images/16062025/22/35/image_16062025_22_35_15_9690.jpg', 2), ('/home/nano/Desktop/images/16062025/22/34/image_16062025_22_35_05_9687.jpg', 2), ('/home/nano/Desktop/images/16062025/22/34/image_16062025_22_34_55_10679.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/35/image_16062025_22_35_55_10676.jpg', '/home/nano/Desktop/images/16062025/22/35/image_16062025_22_35_35_9674.jpg', '/home/nano/Desktop/images/16062025/22/35/image_16062025_22_35_25_10677.jpg', '/home/nano/Desktop/images/16062025/22/35/image_16062025_22_35_15_9690.jpg', '/home/nano/Desktop/images/16062025/22/34/image_16062025_22_35_05_9687.jpg', '/home/nano/Desktop/images/16062025/22/34/image_16062025_22_34_55_10679.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/35/image_16062025_22_35_55_10676.jpg
/home/nano/Desktop/images/16062025/22/35/image_16062025_22_35_35_9674.jpg
/home/nano/Desktop/images/16062025/22/35/image_16062025_22_35_25_10677.jpg
/home/nano/Desktop/images/16062025/22/35/image_16062025_22_35_15_9690.jpg
/home/nano/Desktop/images/16062025/22/34/image_16062025_22_35_05_9687.jpg
/home/nano/Desktop/images/16062025/22/34/image_16062025_22_34_55_10679.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366601512","1366601509","1366601523","1366601526","1366601498","1366601504"],"photo_ids_order":["1366601498","1366601504","1366601509","1366601512","1366601523","1366601526"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c9e0e668063b4c098cfe479e47f4d03d.jpg","text":"TemporaryFile(/tmp/multipartBody8399424836660272981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106181069,"filename":"image_16062025_22_35_15_9690.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fb2a88e03dba55ac046c703090510df2.jpg","text":"TemporaryFile(/tmp/multipartBody4998508750997835151asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106181069,"filename":"image_16062025_22_35_25_10677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c507944a21837a5b18dec003279440d0.jpg","text":"TemporaryFile(/tmp/multipartBody7036808938868837156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106181069,"filename":"image_16062025_22_35_05_9687.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/41b3316ad2bff987214664e66da4b526.jpg","text":"TemporaryFile(/tmp/multipartBody2974629398600918643asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106181069,"filename":"image_16062025_22_34_55_10679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/37e073109714dc9b4c66d9d77002d69d.jpg","text":"TemporaryFile(/tmp/multipartBody1696446207856662889asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106181069,"filename":"image_16062025_22_35_55_10676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6279f9b182dc8851c61c354ad57fa02f.jpg","text":"TemporaryFile(/tmp/multipartBody6603339898772994481asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106181069,"filename":"image_16062025_22_35_35_9674.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366601509","file1":"1366601504","file0":"1366601498","file4":"1366601523","file5":"1366601526","file3":"1366601512"},"map_files_photo_id_array":[{"photo_id":"1366601526","filename":"file5"},{"photo_id":"1366601509","filename":"file2"},{"photo_id":"1366601523","filename":"file4"},{"photo_id":"1366601504","filename":"file1"},{"photo_id":"1366601498","filename":"file0"},{"photo_id":"1366601512","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366601512":["hashtag1","hashtag2"]},{"1366601509":["hashtag1","hashtag2"]},{"1366601523":["hashtag1","hashtag2"]},{"1366601526":["hashtag1","hashtag2"]},{"1366601498":["hashtag1","hashtag2"]},{"1366601504":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366601512, 1366601509, 1366601523, 1366601526, 1366601498, 1366601504)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 86.57498121261597 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:36:47.628647
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/36/image_16062025_22_36_45_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/22/36/image_16062025_22_36_35_10677.jpg', 2), ('/home/nano/Desktop/images/16062025/22/36/image_16062025_22_36_24_9676.jpg', 2), ('/home/nano/Desktop/images/16062025/22/36/image_16062025_22_36_15_9710.jpg', 2), ('/home/nano/Desktop/images/16062025/22/35/image_16062025_22_36_05_9685.jpg', 2), ('/home/nano/Desktop/images/16062025/22/35/image_16062025_22_35_45_9684.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/36/image_16062025_22_36_45_9667.jpg', '/home/nano/Desktop/images/16062025/22/36/image_16062025_22_36_35_10677.jpg', '/home/nano/Desktop/images/16062025/22/36/image_16062025_22_36_24_9676.jpg', '/home/nano/Desktop/images/16062025/22/36/image_16062025_22_36_15_9710.jpg', '/home/nano/Desktop/images/16062025/22/35/image_16062025_22_36_05_9685.jpg', '/home/nano/Desktop/images/16062025/22/35/image_16062025_22_35_45_9684.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/36/image_16062025_22_36_45_9667.jpg
/home/nano/Desktop/images/16062025/22/36/image_16062025_22_36_35_10677.jpg
/home/nano/Desktop/images/16062025/22/36/image_16062025_22_36_24_9676.jpg
/home/nano/Desktop/images/16062025/22/36/image_16062025_22_36_15_9710.jpg
/home/nano/Desktop/images/16062025/22/35/image_16062025_22_36_05_9685.jpg
/home/nano/Desktop/images/16062025/22/35/image_16062025_22_35_45_9684.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366601548","1366601542","1366601536","1366601561","1366601555","1366601566"],"photo_ids_order":["1366601536","1366601542","1366601548","1366601555","1366601561","1366601566"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ba51a142616c6484e460e12c76b5fa32.jpg","text":"TemporaryFile(/tmp/multipartBody7515378602190693381asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106270382,"filename":"image_16062025_22_36_24_9676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/577535f458b03104d168cf7eb5723b52.jpg","text":"TemporaryFile(/tmp/multipartBody66768216571745519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106270382,"filename":"image_16062025_22_36_35_10677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6c7bbb17b9b6538edf342becb6c8241a.jpg","text":"TemporaryFile(/tmp/multipartBody3608293695482720222asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106270382,"filename":"image_16062025_22_36_45_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7db3ea741d5e1d9777f05a1d647a376f.jpg","text":"TemporaryFile(/tmp/multipartBody4674575386359127467asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106270382,"filename":"image_16062025_22_36_05_9685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1847f51abbffe18c69ea031bda9d0e17.jpg","text":"TemporaryFile(/tmp/multipartBody4535034866462957754asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106270382,"filename":"image_16062025_22_36_15_9710.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9d93c3e205812247c6247fdcfcb19300.jpg","text":"TemporaryFile(/tmp/multipartBody1539012558344882821asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106270382,"filename":"image_16062025_22_35_45_9684.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366601548","file1":"1366601542","file0":"1366601536","file4":"1366601561","file5":"1366601566","file3":"1366601555"},"map_files_photo_id_array":[{"photo_id":"1366601566","filename":"file5"},{"photo_id":"1366601548","filename":"file2"},{"photo_id":"1366601561","filename":"file4"},{"photo_id":"1366601542","filename":"file1"},{"photo_id":"1366601536","filename":"file0"},{"photo_id":"1366601555","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366601548":["hashtag1","hashtag2"]},{"1366601542":["hashtag1","hashtag2"]},{"1366601536":["hashtag1","hashtag2"]},{"1366601561":["hashtag1","hashtag2"]},{"1366601555":["hashtag1","hashtag2"]},{"1366601566":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366601548, 1366601542, 1366601536, 1366601561, 1366601555, 1366601566)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 91.2289707660675 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:38:31.857592
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/38/image_16062025_22_38_45_9675.jpg', 2), ('/home/nano/Desktop/images/16062025/22/38/image_16062025_22_38_35_10675.jpg', 2), ('/home/nano/Desktop/images/16062025/22/38/image_16062025_22_38_25_9670.jpg', 2), ('/home/nano/Desktop/images/16062025/22/38/image_16062025_22_38_15_9695.jpg', 2), ('/home/nano/Desktop/images/16062025/22/37/image_16062025_22_38_05_10699.jpg', 2), ('/home/nano/Desktop/images/16062025/22/37/image_16062025_22_37_54_9669.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/38/image_16062025_22_38_45_9675.jpg', '/home/nano/Desktop/images/16062025/22/38/image_16062025_22_38_35_10675.jpg', '/home/nano/Desktop/images/16062025/22/38/image_16062025_22_38_25_9670.jpg', '/home/nano/Desktop/images/16062025/22/38/image_16062025_22_38_15_9695.jpg', '/home/nano/Desktop/images/16062025/22/37/image_16062025_22_38_05_10699.jpg', '/home/nano/Desktop/images/16062025/22/37/image_16062025_22_37_54_9669.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/38/image_16062025_22_38_45_9675.jpg
/home/nano/Desktop/images/16062025/22/38/image_16062025_22_38_35_10675.jpg
/home/nano/Desktop/images/16062025/22/38/image_16062025_22_38_25_9670.jpg
/home/nano/Desktop/images/16062025/22/38/image_16062025_22_38_15_9695.jpg
/home/nano/Desktop/images/16062025/22/37/image_16062025_22_38_05_10699.jpg
/home/nano/Desktop/images/16062025/22/37/image_16062025_22_37_54_9669.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366601608","1366601655","1366601603","1366601590","1366601644","1366601587"],"photo_ids_order":["1366601587","1366601590","1366601603","1366601608","1366601644","1366601655"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/507449c630e23ec73180e6d1ac4bded5.jpg","text":"TemporaryFile(/tmp/multipartBody5965294342774913745asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106374897,"filename":"image_16062025_22_38_15_9695.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/946344f41a6255a0f9956b63a2e861f6.jpg","text":"TemporaryFile(/tmp/multipartBody315162126306625334asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106374897,"filename":"image_16062025_22_37_54_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3626f2efb945c3fe20f175e85c33dd46.jpg","text":"TemporaryFile(/tmp/multipartBody819980470701858549asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106374897,"filename":"image_16062025_22_38_25_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/aeb8d42cbf3d90b0241280a4590a673d.jpg","text":"TemporaryFile(/tmp/multipartBody2381693397832361644asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106374897,"filename":"image_16062025_22_38_35_10675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1bc8ff86152babd70980b8bddc8d1d71.jpg","text":"TemporaryFile(/tmp/multipartBody8805280700157575960asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106374897,"filename":"image_16062025_22_38_05_10699.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/60fc9226c7bf3e94be7e1709e6535a44.jpg","text":"TemporaryFile(/tmp/multipartBody9008366279196260985asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106374897,"filename":"image_16062025_22_38_45_9675.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366601603","file1":"1366601590","file0":"1366601587","file4":"1366601644","file5":"1366601655","file3":"1366601608"},"map_files_photo_id_array":[{"photo_id":"1366601655","filename":"file5"},{"photo_id":"1366601603","filename":"file2"},{"photo_id":"1366601644","filename":"file4"},{"photo_id":"1366601590","filename":"file1"},{"photo_id":"1366601587","filename":"file0"},{"photo_id":"1366601608","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366601608":["hashtag1","hashtag2"]},{"1366601655":["hashtag1","hashtag2"]},{"1366601603":["hashtag1","hashtag2"]},{"1366601590":["hashtag1","hashtag2"]},{"1366601644":["hashtag1","hashtag2"]},{"1366601587":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366601608, 1366601655, 1366601603, 1366601590, 1366601644, 1366601587)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 90.01916432380676 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:40:17.128205
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/40/image_16062025_22_40_45_9674.jpg', 2), ('/home/nano/Desktop/images/16062025/22/40/image_16062025_22_40_35_10679.jpg', 2), ('/home/nano/Desktop/images/16062025/22/40/image_16062025_22_40_25_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/22/40/image_16062025_22_40_15_9680.jpg', 2), ('/home/nano/Desktop/images/16062025/22/39/image_16062025_22_40_05_10684.jpg', 2), ('/home/nano/Desktop/images/16062025/22/39/image_16062025_22_39_45_9669.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/40/image_16062025_22_40_45_9674.jpg', '/home/nano/Desktop/images/16062025/22/40/image_16062025_22_40_35_10679.jpg', '/home/nano/Desktop/images/16062025/22/40/image_16062025_22_40_25_9667.jpg', '/home/nano/Desktop/images/16062025/22/40/image_16062025_22_40_15_9680.jpg', '/home/nano/Desktop/images/16062025/22/39/image_16062025_22_40_05_10684.jpg', '/home/nano/Desktop/images/16062025/22/39/image_16062025_22_39_45_9669.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/40/image_16062025_22_40_45_9674.jpg
/home/nano/Desktop/images/16062025/22/40/image_16062025_22_40_35_10679.jpg
/home/nano/Desktop/images/16062025/22/40/image_16062025_22_40_25_9667.jpg
/home/nano/Desktop/images/16062025/22/40/image_16062025_22_40_15_9680.jpg
/home/nano/Desktop/images/16062025/22/39/image_16062025_22_40_05_10684.jpg
/home/nano/Desktop/images/16062025/22/39/image_16062025_22_39_45_9669.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366601982","1366601701","1366601874","1366601675","1366601791","1366602037"],"photo_ids_order":["1366601675","1366601701","1366601791","1366601874","1366601982","1366602037"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8dcd9a728247fd06c7a4c80b034a9ba5.jpg","text":"TemporaryFile(/tmp/multipartBody6936686563514998286asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106481607,"filename":"image_16062025_22_40_05_10684.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/83c0bd333136698d29ff11b244fb6afe.jpg","text":"TemporaryFile(/tmp/multipartBody5064743411404231007asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106481607,"filename":"image_16062025_22_40_35_10679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/de010d4deb0bbe837ad6b9512ff34df0.jpg","text":"TemporaryFile(/tmp/multipartBody3066906307918096260asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106481607,"filename":"image_16062025_22_40_15_9680.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/65578e36d1242ef02dad07d9efa33ddf.jpg","text":"TemporaryFile(/tmp/multipartBody7348996174218605381asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106481607,"filename":"image_16062025_22_40_45_9674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f0ff95513383b123f72d7e0441110fd8.jpg","text":"TemporaryFile(/tmp/multipartBody6362944248735285434asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106481607,"filename":"image_16062025_22_40_25_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c2950daaae51295538277152dbca19c2.jpg","text":"TemporaryFile(/tmp/multipartBody506354814477161667asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106481607,"filename":"image_16062025_22_39_45_9669.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366601791","file1":"1366601701","file0":"1366601675","file4":"1366601982","file5":"1366602037","file3":"1366601874"},"map_files_photo_id_array":[{"photo_id":"1366602037","filename":"file5"},{"photo_id":"1366601791","filename":"file2"},{"photo_id":"1366601982","filename":"file4"},{"photo_id":"1366601701","filename":"file1"},{"photo_id":"1366601675","filename":"file0"},{"photo_id":"1366601874","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366601982":["hashtag1","hashtag2"]},{"1366601701":["hashtag1","hashtag2"]},{"1366601874":["hashtag1","hashtag2"]},{"1366601675":["hashtag1","hashtag2"]},{"1366601791":["hashtag1","hashtag2"]},{"1366602037":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366601982, 1366601701, 1366601874, 1366601675, 1366601791, 1366602037)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 127.46697759628296 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:42:32.269474
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_45_10684.jpg', 2), ('/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_34_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_25_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_15_10726.jpg', 2), ('/home/nano/Desktop/images/16062025/22/41/image_16062025_22_42_04_9683.jpg', 2), ('/home/nano/Desktop/images/16062025/22/41/image_16062025_22_41_45_10677.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_45_10684.jpg', '/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_34_9669.jpg', '/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_25_9668.jpg', '/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_15_10726.jpg', '/home/nano/Desktop/images/16062025/22/41/image_16062025_22_42_04_9683.jpg', '/home/nano/Desktop/images/16062025/22/41/image_16062025_22_41_45_10677.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_45_10684.jpg
/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_34_9669.jpg
/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_25_9668.jpg
/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_15_10726.jpg
/home/nano/Desktop/images/16062025/22/41/image_16062025_22_42_04_9683.jpg
/home/nano/Desktop/images/16062025/22/41/image_16062025_22_41_45_10677.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 2.642406702041626 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:42:47.243677
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_45_10684.jpg', 2), ('/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_34_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_25_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_15_10726.jpg', 2), ('/home/nano/Desktop/images/16062025/22/41/image_16062025_22_42_04_9683.jpg', 2), ('/home/nano/Desktop/images/16062025/22/41/image_16062025_22_41_45_10677.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_45_10684.jpg', '/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_34_9669.jpg', '/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_25_9668.jpg', '/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_15_10726.jpg', '/home/nano/Desktop/images/16062025/22/41/image_16062025_22_42_04_9683.jpg', '/home/nano/Desktop/images/16062025/22/41/image_16062025_22_41_45_10677.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_45_10684.jpg
/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_34_9669.jpg
/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_25_9668.jpg
/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_15_10726.jpg
/home/nano/Desktop/images/16062025/22/41/image_16062025_22_42_04_9683.jpg
/home/nano/Desktop/images/16062025/22/41/image_16062025_22_41_45_10677.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366602219","1366602140","1366602224","1366602134","1366602145","1366602192"],"photo_ids_order":["1366602134","1366602140","1366602145","1366602192","1366602219","1366602224"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d2d58c5eefd700f07b8aed19f8735ae1.jpg","text":"TemporaryFile(/tmp/multipartBody6545338990027639242asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106630020,"filename":"image_16062025_22_42_04_9683.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/212d96980d6808a6960e595a372175cd.jpg","text":"TemporaryFile(/tmp/multipartBody2053578279909515341asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106630020,"filename":"image_16062025_22_42_34_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a877c50d96eca8eee19ee1c1d23751c7.jpg","text":"TemporaryFile(/tmp/multipartBody7324728604731736866asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106630020,"filename":"image_16062025_22_41_45_10677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4f17bb9b44237d2b0f383c362416de03.jpg","text":"TemporaryFile(/tmp/multipartBody7435184949904772078asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106630020,"filename":"image_16062025_22_42_45_10684.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/84e39d6845ed5f5d74a583148a704f9d.jpg","text":"TemporaryFile(/tmp/multipartBody2317055234217955154asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106630020,"filename":"image_16062025_22_42_25_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ca7a7cb4645687384e5f5a907e1060cc.jpg","text":"TemporaryFile(/tmp/multipartBody4947609279185827124asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106630020,"filename":"image_16062025_22_42_15_10726.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366602145","file1":"1366602140","file0":"1366602134","file4":"1366602219","file5":"1366602224","file3":"1366602192"},"map_files_photo_id_array":[{"photo_id":"1366602224","filename":"file5"},{"photo_id":"1366602145","filename":"file2"},{"photo_id":"1366602219","filename":"file4"},{"photo_id":"1366602140","filename":"file1"},{"photo_id":"1366602134","filename":"file0"},{"photo_id":"1366602192","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366602219":["hashtag1","hashtag2"]},{"1366602140":["hashtag1","hashtag2"]},{"1366602224":["hashtag1","hashtag2"]},{"1366602134":["hashtag1","hashtag2"]},{"1366602145":["hashtag1","hashtag2"]},{"1366602192":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366602219, 1366602140, 1366602224, 1366602134, 1366602145, 1366602192)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 72.47622036933899 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:44:03.429221
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/43/image_16062025_22_43_45_10679.jpg', 2), ('/home/nano/Desktop/images/16062025/22/43/image_16062025_22_43_35_9676.jpg', 2), ('/home/nano/Desktop/images/16062025/22/43/image_16062025_22_43_15_10706.jpg', 2), ('/home/nano/Desktop/images/16062025/22/42/image_16062025_22_43_05_9674.jpg', 2), ('/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_55_9674.jpg', 2), ('/home/nano/Desktop/images/16062025/22/41/image_16062025_22_41_34_9669.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/43/image_16062025_22_43_45_10679.jpg', '/home/nano/Desktop/images/16062025/22/43/image_16062025_22_43_35_9676.jpg', '/home/nano/Desktop/images/16062025/22/43/image_16062025_22_43_15_10706.jpg', '/home/nano/Desktop/images/16062025/22/42/image_16062025_22_43_05_9674.jpg', '/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_55_9674.jpg', '/home/nano/Desktop/images/16062025/22/41/image_16062025_22_41_34_9669.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/43/image_16062025_22_43_45_10679.jpg
/home/nano/Desktop/images/16062025/22/43/image_16062025_22_43_35_9676.jpg
/home/nano/Desktop/images/16062025/22/43/image_16062025_22_43_15_10706.jpg
/home/nano/Desktop/images/16062025/22/42/image_16062025_22_43_05_9674.jpg
/home/nano/Desktop/images/16062025/22/42/image_16062025_22_42_55_9674.jpg
/home/nano/Desktop/images/16062025/22/41/image_16062025_22_41_34_9669.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366602255","1366602243","1366602249","1366602263","1366602257","1366602236"],"photo_ids_order":["1366602236","1366602243","1366602249","1366602255","1366602257","1366602263"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6e283c70c6e8aaf8a53856432d6331d2.jpg","text":"TemporaryFile(/tmp/multipartBody7765401888405710918asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106705795,"filename":"image_16062025_22_43_05_9674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9946f33d75c414780e6e3cd73b0b6ba3.jpg","text":"TemporaryFile(/tmp/multipartBody4443708993623533398asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106705795,"filename":"image_16062025_22_43_35_9676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d5a4436a0067b80bd0d7d09a687c79a4.jpg","text":"TemporaryFile(/tmp/multipartBody8757614294659713929asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106705795,"filename":"image_16062025_22_43_15_10706.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0eb936749a0628f5717343a26f1d2937.jpg","text":"TemporaryFile(/tmp/multipartBody2873843081496011550asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106705795,"filename":"image_16062025_22_41_34_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d61a50ed1a842bf1998528602829bd6f.jpg","text":"TemporaryFile(/tmp/multipartBody1684207523289217670asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106705795,"filename":"image_16062025_22_42_55_9674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d1f3858eda79b86b17aed783dcea35f8.jpg","text":"TemporaryFile(/tmp/multipartBody1524514726668357523asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106705795,"filename":"image_16062025_22_43_45_10679.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366602249","file1":"1366602243","file0":"1366602236","file4":"1366602257","file5":"1366602263","file3":"1366602255"},"map_files_photo_id_array":[{"photo_id":"1366602263","filename":"file5"},{"photo_id":"1366602249","filename":"file2"},{"photo_id":"1366602257","filename":"file4"},{"photo_id":"1366602243","filename":"file1"},{"photo_id":"1366602236","filename":"file0"},{"photo_id":"1366602255","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366602255":["hashtag1","hashtag2"]},{"1366602243":["hashtag1","hashtag2"]},{"1366602249":["hashtag1","hashtag2"]},{"1366602263":["hashtag1","hashtag2"]},{"1366602257":["hashtag1","hashtag2"]},{"1366602236":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366602255, 1366602243, 1366602249, 1366602263, 1366602257, 1366602236)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 75.22655606269836 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:45:32.614218
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/45/image_16062025_22_45_44_9675.jpg', 2), ('/home/nano/Desktop/images/16062025/22/45/image_16062025_22_45_35_9688.jpg', 2), ('/home/nano/Desktop/images/16062025/22/45/image_16062025_22_45_25_10679.jpg', 2), ('/home/nano/Desktop/images/16062025/22/45/image_16062025_22_45_14_9694.jpg', 2), ('/home/nano/Desktop/images/16062025/22/44/image_16062025_22_45_05_9681.jpg', 2), ('/home/nano/Desktop/images/16062025/22/44/image_16062025_22_44_55_9673.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/45/image_16062025_22_45_44_9675.jpg', '/home/nano/Desktop/images/16062025/22/45/image_16062025_22_45_35_9688.jpg', '/home/nano/Desktop/images/16062025/22/45/image_16062025_22_45_25_10679.jpg', '/home/nano/Desktop/images/16062025/22/45/image_16062025_22_45_14_9694.jpg', '/home/nano/Desktop/images/16062025/22/44/image_16062025_22_45_05_9681.jpg', '/home/nano/Desktop/images/16062025/22/44/image_16062025_22_44_55_9673.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/45/image_16062025_22_45_44_9675.jpg
/home/nano/Desktop/images/16062025/22/45/image_16062025_22_45_35_9688.jpg
/home/nano/Desktop/images/16062025/22/45/image_16062025_22_45_25_10679.jpg
/home/nano/Desktop/images/16062025/22/45/image_16062025_22_45_14_9694.jpg
/home/nano/Desktop/images/16062025/22/44/image_16062025_22_45_05_9681.jpg
/home/nano/Desktop/images/16062025/22/44/image_16062025_22_44_55_9673.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366602321","1366602299","1366602303","1366602313","1366602436","1366602301"],"photo_ids_order":["1366602299","1366602301","1366602303","1366602313","1366602321","1366602436"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/adb6c2d0d448b2a01a64e35400c65eae.jpg","text":"TemporaryFile(/tmp/multipartBody8330404406660600640asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106794987,"filename":"image_16062025_22_45_05_9681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/954be6ae63e375a4de41c62ce1c7e293.jpg","text":"TemporaryFile(/tmp/multipartBody9102196842556282110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106794987,"filename":"image_16062025_22_45_44_9675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/53c7e3525feb72a8b981cd633de1920f.jpg","text":"TemporaryFile(/tmp/multipartBody2380548253386992397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106794987,"filename":"image_16062025_22_45_25_10679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/22ac21a82c3f57526f816b23ffdcc284.jpg","text":"TemporaryFile(/tmp/multipartBody5514293006405277381asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106794987,"filename":"image_16062025_22_45_14_9694.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/353d225b2c71f77fa6d0b26f6afdb8a4.jpg","text":"TemporaryFile(/tmp/multipartBody957066400381158236asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106794987,"filename":"image_16062025_22_44_55_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9739f6fa83db701e6b8d53b6ebe2dadb.jpg","text":"TemporaryFile(/tmp/multipartBody6986234224021756106asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106794987,"filename":"image_16062025_22_45_35_9688.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366602303","file1":"1366602301","file0":"1366602299","file4":"1366602321","file5":"1366602436","file3":"1366602313"},"map_files_photo_id_array":[{"photo_id":"1366602436","filename":"file5"},{"photo_id":"1366602303","filename":"file2"},{"photo_id":"1366602321","filename":"file4"},{"photo_id":"1366602301","filename":"file1"},{"photo_id":"1366602299","filename":"file0"},{"photo_id":"1366602313","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366602321":["hashtag1","hashtag2"]},{"1366602299":["hashtag1","hashtag2"]},{"1366602303":["hashtag1","hashtag2"]},{"1366602313":["hashtag1","hashtag2"]},{"1366602436":["hashtag1","hashtag2"]},{"1366602301":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366602321, 1366602299, 1366602303, 1366602313, 1366602436, 1366602301)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 112.12869811058044 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:47:31.856453
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/47/image_16062025_22_47_45_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/22/47/image_16062025_22_47_35_9666.jpg', 2), ('/home/nano/Desktop/images/16062025/22/47/image_16062025_22_47_25_10680.jpg', 2), ('/home/nano/Desktop/images/16062025/22/47/image_16062025_22_47_15_9697.jpg', 2), ('/home/nano/Desktop/images/16062025/22/46/image_16062025_22_47_05_9685.jpg', 2), ('/home/nano/Desktop/images/16062025/22/46/image_16062025_22_46_55_10677.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/47/image_16062025_22_47_45_9667.jpg', '/home/nano/Desktop/images/16062025/22/47/image_16062025_22_47_35_9666.jpg', '/home/nano/Desktop/images/16062025/22/47/image_16062025_22_47_25_10680.jpg', '/home/nano/Desktop/images/16062025/22/47/image_16062025_22_47_15_9697.jpg', '/home/nano/Desktop/images/16062025/22/46/image_16062025_22_47_05_9685.jpg', '/home/nano/Desktop/images/16062025/22/46/image_16062025_22_46_55_10677.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/47/image_16062025_22_47_45_9667.jpg
/home/nano/Desktop/images/16062025/22/47/image_16062025_22_47_35_9666.jpg
/home/nano/Desktop/images/16062025/22/47/image_16062025_22_47_25_10680.jpg
/home/nano/Desktop/images/16062025/22/47/image_16062025_22_47_15_9697.jpg
/home/nano/Desktop/images/16062025/22/46/image_16062025_22_47_05_9685.jpg
/home/nano/Desktop/images/16062025/22/46/image_16062025_22_46_55_10677.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366602840","1366602767","1366602728","1366602608","1366602859","1366602817"],"photo_ids_order":["1366602608","1366602728","1366602767","1366602817","1366602840","1366602859"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/60caf99a40dea1011e583905b9c94eb0.jpg","text":"TemporaryFile(/tmp/multipartBody3150634738901459686asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106914557,"filename":"image_16062025_22_47_05_9685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5a47564ba6d0316c25af79885d0b3676.jpg","text":"TemporaryFile(/tmp/multipartBody2171498902813538273asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106914557,"filename":"image_16062025_22_47_25_10680.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5f27e22a5c5f1f3306924ba00b4158dc.jpg","text":"TemporaryFile(/tmp/multipartBody6852055670341229649asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106914557,"filename":"image_16062025_22_47_35_9666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6614aefdee7f5bf5943fff33c9f3562b.jpg","text":"TemporaryFile(/tmp/multipartBody5823410507464172917asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106914557,"filename":"image_16062025_22_47_45_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2287b33a0d570be25c6adce800f73980.jpg","text":"TemporaryFile(/tmp/multipartBody3091758631060273087asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106914557,"filename":"image_16062025_22_46_55_10677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/53eb0475c255fd7ec960f595185d284b.jpg","text":"TemporaryFile(/tmp/multipartBody4576949926490427514asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750106914557,"filename":"image_16062025_22_47_15_9697.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366602767","file1":"1366602728","file0":"1366602608","file4":"1366602840","file5":"1366602859","file3":"1366602817"},"map_files_photo_id_array":[{"photo_id":"1366602859","filename":"file5"},{"photo_id":"1366602767","filename":"file2"},{"photo_id":"1366602840","filename":"file4"},{"photo_id":"1366602728","filename":"file1"},{"photo_id":"1366602608","filename":"file0"},{"photo_id":"1366602817","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366602840":["hashtag1","hashtag2"]},{"1366602767":["hashtag1","hashtag2"]},{"1366602728":["hashtag1","hashtag2"]},{"1366602608":["hashtag1","hashtag2"]},{"1366602859":["hashtag1","hashtag2"]},{"1366602817":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366602840, 1366602767, 1366602728, 1366602608, 1366602859, 1366602817)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 105.42012596130371 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:49:31.992339
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/49/image_16062025_22_49_45_9670.jpg', 2), ('/home/nano/Desktop/images/16062025/22/49/image_16062025_22_49_35_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/22/49/image_16062025_22_49_25_10679.jpg', 2), ('/home/nano/Desktop/images/16062025/22/49/image_16062025_22_49_15_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/22/48/image_16062025_22_49_05_9705.jpg', 2), ('/home/nano/Desktop/images/16062025/22/48/image_16062025_22_48_55_10685.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/49/image_16062025_22_49_45_9670.jpg', '/home/nano/Desktop/images/16062025/22/49/image_16062025_22_49_35_9673.jpg', '/home/nano/Desktop/images/16062025/22/49/image_16062025_22_49_25_10679.jpg', '/home/nano/Desktop/images/16062025/22/49/image_16062025_22_49_15_9677.jpg', '/home/nano/Desktop/images/16062025/22/48/image_16062025_22_49_05_9705.jpg', '/home/nano/Desktop/images/16062025/22/48/image_16062025_22_48_55_10685.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/49/image_16062025_22_49_45_9670.jpg
/home/nano/Desktop/images/16062025/22/49/image_16062025_22_49_35_9673.jpg
/home/nano/Desktop/images/16062025/22/49/image_16062025_22_49_25_10679.jpg
/home/nano/Desktop/images/16062025/22/49/image_16062025_22_49_15_9677.jpg
/home/nano/Desktop/images/16062025/22/48/image_16062025_22_49_05_9705.jpg
/home/nano/Desktop/images/16062025/22/48/image_16062025_22_48_55_10685.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366602942","1366602930","1366602918","1366602934","1366602913","1366602925"],"photo_ids_order":["1366602913","1366602918","1366602925","1366602930","1366602934","1366602942"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/629160d2163702494a9f577680e3cf1b.jpg","text":"TemporaryFile(/tmp/multipartBody3977120418357746319asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107034576,"filename":"image_16062025_22_48_55_10685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cbded92f5174e54aeed511ae783f2459.jpg","text":"TemporaryFile(/tmp/multipartBody5698629930863347832asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107034576,"filename":"image_16062025_22_49_15_9677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a4ec434d75fa02d6edbc9661f20cd051.jpg","text":"TemporaryFile(/tmp/multipartBody5780794893545797777asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107034576,"filename":"image_16062025_22_49_35_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4513e358730144c422f0ccc4a25d6964.jpg","text":"TemporaryFile(/tmp/multipartBody5055552519126972711asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107034576,"filename":"image_16062025_22_49_05_9705.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6e2284beb4cb2fb2f891f090e24966e7.jpg","text":"TemporaryFile(/tmp/multipartBody8565267366624003911asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107034576,"filename":"image_16062025_22_49_45_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/68858805c787f7c4bb90388e08bf45cc.jpg","text":"TemporaryFile(/tmp/multipartBody4155019747068448746asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107034576,"filename":"image_16062025_22_49_25_10679.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366602925","file1":"1366602918","file0":"1366602913","file4":"1366602934","file5":"1366602942","file3":"1366602930"},"map_files_photo_id_array":[{"photo_id":"1366602942","filename":"file5"},{"photo_id":"1366602925","filename":"file2"},{"photo_id":"1366602934","filename":"file4"},{"photo_id":"1366602918","filename":"file1"},{"photo_id":"1366602913","filename":"file0"},{"photo_id":"1366602930","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366602942":["hashtag1","hashtag2"]},{"1366602930":["hashtag1","hashtag2"]},{"1366602918":["hashtag1","hashtag2"]},{"1366602934":["hashtag1","hashtag2"]},{"1366602913":["hashtag1","hashtag2"]},{"1366602925":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366602942, 1366602930, 1366602918, 1366602934, 1366602913, 1366602925)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 99.76291060447693 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:51:17.225081
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/51/image_16062025_22_51_35_10696.jpg', 2), ('/home/nano/Desktop/images/16062025/22/51/image_16062025_22_51_15_9695.jpg', 2), ('/home/nano/Desktop/images/16062025/22/50/image_16062025_22_51_05_10696.jpg', 2), ('/home/nano/Desktop/images/16062025/22/50/image_16062025_22_50_54_9670.jpg', 2), ('/home/nano/Desktop/images/16062025/22/50/image_16062025_22_50_45_9672.jpg', 2), ('/home/nano/Desktop/images/16062025/22/50/image_16062025_22_50_35_10678.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/51/image_16062025_22_51_35_10696.jpg', '/home/nano/Desktop/images/16062025/22/51/image_16062025_22_51_15_9695.jpg', '/home/nano/Desktop/images/16062025/22/50/image_16062025_22_51_05_10696.jpg', '/home/nano/Desktop/images/16062025/22/50/image_16062025_22_50_54_9670.jpg', '/home/nano/Desktop/images/16062025/22/50/image_16062025_22_50_45_9672.jpg', '/home/nano/Desktop/images/16062025/22/50/image_16062025_22_50_35_10678.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/51/image_16062025_22_51_35_10696.jpg
/home/nano/Desktop/images/16062025/22/51/image_16062025_22_51_15_9695.jpg
/home/nano/Desktop/images/16062025/22/50/image_16062025_22_51_05_10696.jpg
/home/nano/Desktop/images/16062025/22/50/image_16062025_22_50_54_9670.jpg
/home/nano/Desktop/images/16062025/22/50/image_16062025_22_50_45_9672.jpg
/home/nano/Desktop/images/16062025/22/50/image_16062025_22_50_35_10678.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366603044","1366602965","1366602953","1366602973","1366603024","1366602961"],"photo_ids_order":["1366602953","1366602961","1366602965","1366602973","1366603024","1366603044"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/49c2c428aac8748d4c814c31d61d7c87.jpg","text":"TemporaryFile(/tmp/multipartBody5637355576034364841asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107140947,"filename":"image_16062025_22_50_35_10678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/af01c3911faf4661bf15f7ebd2d1b83c.jpg","text":"TemporaryFile(/tmp/multipartBody5175827344248615393asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107140947,"filename":"image_16062025_22_51_05_10696.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/030dbf87825f5345cf9e0655cf7d6b6f.jpg","text":"TemporaryFile(/tmp/multipartBody1949679869475728283asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107140947,"filename":"image_16062025_22_51_35_10696.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5284cb5249a81bcba224a2b693b321de.jpg","text":"TemporaryFile(/tmp/multipartBody4713750971835369538asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107140947,"filename":"image_16062025_22_50_54_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/836cd06c6cfba5d444e621dd0a415824.jpg","text":"TemporaryFile(/tmp/multipartBody6564301623956368766asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107140947,"filename":"image_16062025_22_50_45_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/11b7f5fba084fa9b9bf6f5cf08d05b00.jpg","text":"TemporaryFile(/tmp/multipartBody2291513973166751207asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107140947,"filename":"image_16062025_22_51_15_9695.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366602965","file1":"1366602961","file0":"1366602953","file4":"1366603024","file5":"1366603044","file3":"1366602973"},"map_files_photo_id_array":[{"photo_id":"1366603044","filename":"file5"},{"photo_id":"1366602965","filename":"file2"},{"photo_id":"1366603024","filename":"file4"},{"photo_id":"1366602961","filename":"file1"},{"photo_id":"1366602953","filename":"file0"},{"photo_id":"1366602973","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366603044":["hashtag1","hashtag2"]},{"1366602965":["hashtag1","hashtag2"]},{"1366602953":["hashtag1","hashtag2"]},{"1366602973":["hashtag1","hashtag2"]},{"1366603024":["hashtag1","hashtag2"]},{"1366602961":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366603044, 1366602965, 1366602953, 1366602973, 1366603024, 1366602961)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 117.33264994621277 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:53:17.415748
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/53/image_16062025_22_53_45_10685.jpg', 2), ('/home/nano/Desktop/images/16062025/22/53/image_16062025_22_53_34_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/22/53/image_16062025_22_53_25_9687.jpg', 2), ('/home/nano/Desktop/images/16062025/22/53/image_16062025_22_53_15_10728.jpg', 2), ('/home/nano/Desktop/images/16062025/22/52/image_16062025_22_53_04_9690.jpg', 2), ('/home/nano/Desktop/images/16062025/22/52/image_16062025_22_52_55_9673.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/53/image_16062025_22_53_45_10685.jpg', '/home/nano/Desktop/images/16062025/22/53/image_16062025_22_53_34_9673.jpg', '/home/nano/Desktop/images/16062025/22/53/image_16062025_22_53_25_9687.jpg', '/home/nano/Desktop/images/16062025/22/53/image_16062025_22_53_15_10728.jpg', '/home/nano/Desktop/images/16062025/22/52/image_16062025_22_53_04_9690.jpg', '/home/nano/Desktop/images/16062025/22/52/image_16062025_22_52_55_9673.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/53/image_16062025_22_53_45_10685.jpg
/home/nano/Desktop/images/16062025/22/53/image_16062025_22_53_34_9673.jpg
/home/nano/Desktop/images/16062025/22/53/image_16062025_22_53_25_9687.jpg
/home/nano/Desktop/images/16062025/22/53/image_16062025_22_53_15_10728.jpg
/home/nano/Desktop/images/16062025/22/52/image_16062025_22_53_04_9690.jpg
/home/nano/Desktop/images/16062025/22/52/image_16062025_22_52_55_9673.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366603214","1366603421","1366603399","1366603144","1366603327","1366603272"],"photo_ids_order":["1366603144","1366603214","1366603272","1366603327","1366603399","1366603421"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ebbbbf3fc434103c02d5e6f768b17523.jpg","text":"TemporaryFile(/tmp/multipartBody1599895311925329792asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107259766,"filename":"image_16062025_22_53_34_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/828816e7108f0860260422dc0f5cda52.jpg","text":"TemporaryFile(/tmp/multipartBody2810418678172734186asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107259766,"filename":"image_16062025_22_52_55_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3a925d3423136ed4e469836663020863.jpg","text":"TemporaryFile(/tmp/multipartBody2406281914059612445asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107259766,"filename":"image_16062025_22_53_04_9690.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8bdbb2932bc00a5aa0830dbfaf20f80f.jpg","text":"TemporaryFile(/tmp/multipartBody8930206812118133663asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107259766,"filename":"image_16062025_22_53_45_10685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/95bb287ce677ba35ee2030d5f0e7ae10.jpg","text":"TemporaryFile(/tmp/multipartBody6608511895329830568asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107259766,"filename":"image_16062025_22_53_15_10728.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/da4d7f511f5b7cb19ceac96a27caf980.jpg","text":"TemporaryFile(/tmp/multipartBody4252688233530860891asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107259766,"filename":"image_16062025_22_53_25_9687.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366603272","file1":"1366603214","file0":"1366603144","file4":"1366603399","file5":"1366603421","file3":"1366603327"},"map_files_photo_id_array":[{"photo_id":"1366603421","filename":"file5"},{"photo_id":"1366603272","filename":"file2"},{"photo_id":"1366603399","filename":"file4"},{"photo_id":"1366603214","filename":"file1"},{"photo_id":"1366603144","filename":"file0"},{"photo_id":"1366603327","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366603214":["hashtag1","hashtag2"]},{"1366603421":["hashtag1","hashtag2"]},{"1366603399":["hashtag1","hashtag2"]},{"1366603144":["hashtag1","hashtag2"]},{"1366603327":["hashtag1","hashtag2"]},{"1366603272":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366603214, 1366603421, 1366603399, 1366603144, 1366603327, 1366603272)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 70.69672751426697 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:54:32.528182
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/54/image_16062025_22_54_35_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/22/54/image_16062025_22_54_25_9667.jpg', 2), ('/home/nano/Desktop/images/16062025/22/54/image_16062025_22_54_15_10705.jpg', 2), ('/home/nano/Desktop/images/16062025/22/53/image_16062025_22_54_05_9691.jpg', 2), ('/home/nano/Desktop/images/16062025/22/53/image_16062025_22_53_55_9665.jpg', 2), ('/home/nano/Desktop/images/16062025/22/52/image_16062025_22_52_45_9674.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/54/image_16062025_22_54_35_9668.jpg', '/home/nano/Desktop/images/16062025/22/54/image_16062025_22_54_25_9667.jpg', '/home/nano/Desktop/images/16062025/22/54/image_16062025_22_54_15_10705.jpg', '/home/nano/Desktop/images/16062025/22/53/image_16062025_22_54_05_9691.jpg', '/home/nano/Desktop/images/16062025/22/53/image_16062025_22_53_55_9665.jpg', '/home/nano/Desktop/images/16062025/22/52/image_16062025_22_52_45_9674.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/54/image_16062025_22_54_35_9668.jpg
/home/nano/Desktop/images/16062025/22/54/image_16062025_22_54_25_9667.jpg
/home/nano/Desktop/images/16062025/22/54/image_16062025_22_54_15_10705.jpg
/home/nano/Desktop/images/16062025/22/53/image_16062025_22_54_05_9691.jpg
/home/nano/Desktop/images/16062025/22/53/image_16062025_22_53_55_9665.jpg
/home/nano/Desktop/images/16062025/22/52/image_16062025_22_52_45_9674.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366603475","1366603469","1366603463","1366603495","1366603501","1366603482"],"photo_ids_order":["1366603463","1366603469","1366603475","1366603482","1366603495","1366603501"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/10264ac3a6f08ad1972784dff9b78b26.jpg","text":"TemporaryFile(/tmp/multipartBody4847696634123262196asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107336489,"filename":"image_16062025_22_54_15_10705.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a98370e982eb5ac36e9588cd86f721cb.jpg","text":"TemporaryFile(/tmp/multipartBody2359599972369167724asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107336489,"filename":"image_16062025_22_54_25_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/07b83e222386cfdb78bfe515d1ab809e.jpg","text":"TemporaryFile(/tmp/multipartBody7158318420051370246asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107336489,"filename":"image_16062025_22_54_35_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/df04abbe3236640f464a3c5f719ef253.jpg","text":"TemporaryFile(/tmp/multipartBody3527867593282791000asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107336489,"filename":"image_16062025_22_53_55_9665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/effa987a5b939846e6e0ee950aa58775.jpg","text":"TemporaryFile(/tmp/multipartBody4682806036928252207asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107336489,"filename":"image_16062025_22_52_45_9674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/15a361dcd0bf95080d08b292cbcdbc77.jpg","text":"TemporaryFile(/tmp/multipartBody3249765626404245397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107336489,"filename":"image_16062025_22_54_05_9691.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366603475","file1":"1366603469","file0":"1366603463","file4":"1366603495","file5":"1366603501","file3":"1366603482"},"map_files_photo_id_array":[{"photo_id":"1366603501","filename":"file5"},{"photo_id":"1366603475","filename":"file2"},{"photo_id":"1366603495","filename":"file4"},{"photo_id":"1366603469","filename":"file1"},{"photo_id":"1366603463","filename":"file0"},{"photo_id":"1366603482","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366603475":["hashtag1","hashtag2"]},{"1366603469":["hashtag1","hashtag2"]},{"1366603463":["hashtag1","hashtag2"]},{"1366603495":["hashtag1","hashtag2"]},{"1366603501":["hashtag1","hashtag2"]},{"1366603482":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366603475, 1366603469, 1366603463, 1366603495, 1366603501, 1366603482)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 105.99124813079834 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:56:32.727093
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/56/image_16062025_22_56_44_9689.jpg', 2), ('/home/nano/Desktop/images/16062025/22/56/image_16062025_22_56_35_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/22/56/image_16062025_22_56_25_10685.jpg', 2), ('/home/nano/Desktop/images/16062025/22/56/image_16062025_22_56_14_9696.jpg', 2), ('/home/nano/Desktop/images/16062025/22/55/image_16062025_22_56_05_9696.jpg', 2), ('/home/nano/Desktop/images/16062025/22/55/image_16062025_22_55_55_9674.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/56/image_16062025_22_56_44_9689.jpg', '/home/nano/Desktop/images/16062025/22/56/image_16062025_22_56_35_9669.jpg', '/home/nano/Desktop/images/16062025/22/56/image_16062025_22_56_25_10685.jpg', '/home/nano/Desktop/images/16062025/22/56/image_16062025_22_56_14_9696.jpg', '/home/nano/Desktop/images/16062025/22/55/image_16062025_22_56_05_9696.jpg', '/home/nano/Desktop/images/16062025/22/55/image_16062025_22_55_55_9674.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/56/image_16062025_22_56_44_9689.jpg
/home/nano/Desktop/images/16062025/22/56/image_16062025_22_56_35_9669.jpg
/home/nano/Desktop/images/16062025/22/56/image_16062025_22_56_25_10685.jpg
/home/nano/Desktop/images/16062025/22/56/image_16062025_22_56_14_9696.jpg
/home/nano/Desktop/images/16062025/22/55/image_16062025_22_56_05_9696.jpg
/home/nano/Desktop/images/16062025/22/55/image_16062025_22_55_55_9674.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366604141","1366603765","1366604085","1366603801","1366603698","1366604010"],"photo_ids_order":["1366603698","1366603765","1366603801","1366604010","1366604085","1366604141"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8102a8e62d455a58f862860a6a8fdbac.jpg","text":"TemporaryFile(/tmp/multipartBody566876289117659005asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107455564,"filename":"image_16062025_22_55_55_9674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ab7045c8c52886ea837e7e91f75420d2.jpg","text":"TemporaryFile(/tmp/multipartBody769991478101128161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107455564,"filename":"image_16062025_22_56_35_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d3a4d368d7db173064c755fa8af9c82e.jpg","text":"TemporaryFile(/tmp/multipartBody159813010323438763asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107455564,"filename":"image_16062025_22_56_05_9696.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/852d95f68dea57f6b70659a069ee9d42.jpg","text":"TemporaryFile(/tmp/multipartBody7466915649988385944asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107455564,"filename":"image_16062025_22_56_25_10685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f0c90b48a023d0c3d6a493ef52aa6465.jpg","text":"TemporaryFile(/tmp/multipartBody7937040214142582280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107455564,"filename":"image_16062025_22_56_44_9689.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/822511b477ef71f15d9fd27e514c893c.jpg","text":"TemporaryFile(/tmp/multipartBody6905816308484610840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107455564,"filename":"image_16062025_22_56_14_9696.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366603801","file1":"1366603765","file0":"1366603698","file4":"1366604085","file5":"1366604141","file3":"1366604010"},"map_files_photo_id_array":[{"photo_id":"1366604141","filename":"file5"},{"photo_id":"1366603801","filename":"file2"},{"photo_id":"1366604085","filename":"file4"},{"photo_id":"1366603765","filename":"file1"},{"photo_id":"1366603698","filename":"file0"},{"photo_id":"1366604010","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366604141":["hashtag1","hashtag2"]},{"1366603765":["hashtag1","hashtag2"]},{"1366604085":["hashtag1","hashtag2"]},{"1366603801":["hashtag1","hashtag2"]},{"1366603698":["hashtag1","hashtag2"]},{"1366604010":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366604141, 1366603765, 1366604085, 1366603801, 1366603698, 1366604010)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 82.94862151145935 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:58:02.575848
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/57/image_16062025_22_57_35_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/22/57/image_16062025_22_57_25_10680.jpg', 2), ('/home/nano/Desktop/images/16062025/22/57/image_16062025_22_57_15_9699.jpg', 2), ('/home/nano/Desktop/images/16062025/22/56/image_16062025_22_57_05_9679.jpg', 2), ('/home/nano/Desktop/images/16062025/22/56/image_16062025_22_56_55_10679.jpg', 2), ('/home/nano/Desktop/images/16062025/22/55/image_16062025_22_55_45_10674.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/57/image_16062025_22_57_35_9669.jpg', '/home/nano/Desktop/images/16062025/22/57/image_16062025_22_57_25_10680.jpg', '/home/nano/Desktop/images/16062025/22/57/image_16062025_22_57_15_9699.jpg', '/home/nano/Desktop/images/16062025/22/56/image_16062025_22_57_05_9679.jpg', '/home/nano/Desktop/images/16062025/22/56/image_16062025_22_56_55_10679.jpg', '/home/nano/Desktop/images/16062025/22/55/image_16062025_22_55_45_10674.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/57/image_16062025_22_57_35_9669.jpg
/home/nano/Desktop/images/16062025/22/57/image_16062025_22_57_25_10680.jpg
/home/nano/Desktop/images/16062025/22/57/image_16062025_22_57_15_9699.jpg
/home/nano/Desktop/images/16062025/22/56/image_16062025_22_57_05_9679.jpg
/home/nano/Desktop/images/16062025/22/56/image_16062025_22_56_55_10679.jpg
/home/nano/Desktop/images/16062025/22/55/image_16062025_22_55_45_10674.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366604375","1366604609","1366604698","1366604506","1366604439","1366604646"],"photo_ids_order":["1366604375","1366604439","1366604506","1366604609","1366604646","1366604698"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3b85df5433993373c9ff80dd5fa46425.jpg","text":"TemporaryFile(/tmp/multipartBody1172864222331674939asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107545728,"filename":"image_16062025_22_57_35_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dbaad1fbf90694d6bd8f435df215358a.jpg","text":"TemporaryFile(/tmp/multipartBody7229525085335283208asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107545728,"filename":"image_16062025_22_57_05_9679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3bd0d7be2b71867b6b0ea02339c1352a.jpg","text":"TemporaryFile(/tmp/multipartBody8057052223115479973asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107545728,"filename":"image_16062025_22_55_45_10674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1d3286b995077cfe8c5a4ac2717e0657.jpg","text":"TemporaryFile(/tmp/multipartBody7147148198908365173asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107545728,"filename":"image_16062025_22_57_15_9699.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/34de6e864bb80367df43d850d99a00d0.jpg","text":"TemporaryFile(/tmp/multipartBody1611460956273796875asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107545728,"filename":"image_16062025_22_57_25_10680.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/67ac936600354df3bd24e46ff93c34b8.jpg","text":"TemporaryFile(/tmp/multipartBody3129319038908611576asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107545728,"filename":"image_16062025_22_56_55_10679.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366604506","file1":"1366604439","file0":"1366604375","file4":"1366604646","file5":"1366604698","file3":"1366604609"},"map_files_photo_id_array":[{"photo_id":"1366604698","filename":"file5"},{"photo_id":"1366604506","filename":"file2"},{"photo_id":"1366604646","filename":"file4"},{"photo_id":"1366604439","filename":"file1"},{"photo_id":"1366604375","filename":"file0"},{"photo_id":"1366604609","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366604375":["hashtag1","hashtag2"]},{"1366604609":["hashtag1","hashtag2"]},{"1366604698":["hashtag1","hashtag2"]},{"1366604506":["hashtag1","hashtag2"]},{"1366604439":["hashtag1","hashtag2"]},{"1366604646":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366604375, 1366604609, 1366604698, 1366604506, 1366604439, 1366604646)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 68.78212833404541 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 22:59:17.748472
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/22/59/image_16062025_22_59_45_9675.jpg', 2), ('/home/nano/Desktop/images/16062025/22/59/image_16062025_22_59_35_10679.jpg', 2), ('/home/nano/Desktop/images/16062025/22/58/image_16062025_22_59_05_9700.jpg', 2), ('/home/nano/Desktop/images/16062025/22/58/image_16062025_22_58_55_10684.jpg', 2), ('/home/nano/Desktop/images/16062025/22/58/image_16062025_22_58_45_9670.jpg', 2), ('/home/nano/Desktop/images/16062025/22/58/image_16062025_22_58_35_9675.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/22/59/image_16062025_22_59_45_9675.jpg', '/home/nano/Desktop/images/16062025/22/59/image_16062025_22_59_35_10679.jpg', '/home/nano/Desktop/images/16062025/22/58/image_16062025_22_59_05_9700.jpg', '/home/nano/Desktop/images/16062025/22/58/image_16062025_22_58_55_10684.jpg', '/home/nano/Desktop/images/16062025/22/58/image_16062025_22_58_45_9670.jpg', '/home/nano/Desktop/images/16062025/22/58/image_16062025_22_58_35_9675.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/22/59/image_16062025_22_59_45_9675.jpg
/home/nano/Desktop/images/16062025/22/59/image_16062025_22_59_35_10679.jpg
/home/nano/Desktop/images/16062025/22/58/image_16062025_22_59_05_9700.jpg
/home/nano/Desktop/images/16062025/22/58/image_16062025_22_58_55_10684.jpg
/home/nano/Desktop/images/16062025/22/58/image_16062025_22_58_45_9670.jpg
/home/nano/Desktop/images/16062025/22/58/image_16062025_22_58_35_9675.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366604825","1366604813","1366604785","1366604796","1366604820","1366604802"],"photo_ids_order":["1366604785","1366604796","1366604802","1366604813","1366604820","1366604825"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0ea376a1420e053afc44fe5200064a17.jpg","text":"TemporaryFile(/tmp/multipartBody4681142801887520068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107620815,"filename":"image_16062025_22_58_35_9675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f7e95dbd30de026e0d55e47b6d9f57c4.jpg","text":"TemporaryFile(/tmp/multipartBody2680398079418391611asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107620815,"filename":"image_16062025_22_58_55_10684.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/64983c6a7197415219f43d6dfcfd8871.jpg","text":"TemporaryFile(/tmp/multipartBody7669828131836432724asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107620815,"filename":"image_16062025_22_59_45_9675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9808d6199790727ac619fd70b1e63287.jpg","text":"TemporaryFile(/tmp/multipartBody6555619522262381010asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107620815,"filename":"image_16062025_22_59_35_10679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/237a22111fddd197bfbc97aa3ff93857.jpg","text":"TemporaryFile(/tmp/multipartBody4240071144555742471asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107620815,"filename":"image_16062025_22_58_45_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/59e059db4045b50837326fe0e9fbb845.jpg","text":"TemporaryFile(/tmp/multipartBody2796096606896575676asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107620815,"filename":"image_16062025_22_59_05_9700.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366604802","file1":"1366604796","file0":"1366604785","file4":"1366604820","file5":"1366604825","file3":"1366604813"},"map_files_photo_id_array":[{"photo_id":"1366604825","filename":"file5"},{"photo_id":"1366604802","filename":"file2"},{"photo_id":"1366604820","filename":"file4"},{"photo_id":"1366604796","filename":"file1"},{"photo_id":"1366604785","filename":"file0"},{"photo_id":"1366604813","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366604825":["hashtag1","hashtag2"]},{"1366604813":["hashtag1","hashtag2"]},{"1366604785":["hashtag1","hashtag2"]},{"1366604796":["hashtag1","hashtag2"]},{"1366604820":["hashtag1","hashtag2"]},{"1366604802":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366604825, 1366604813, 1366604785, 1366604796, 1366604820, 1366604802)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 117.15807819366455 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:01:16.930885
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/01/image_16062025_23_01_45_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/23/01/image_16062025_23_01_35_10677.jpg', 2), ('/home/nano/Desktop/images/16062025/23/01/image_16062025_23_01_25_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/23/01/image_16062025_23_01_15_9670.jpg', 2), ('/home/nano/Desktop/images/16062025/23/00/image_16062025_23_01_05_10704.jpg', 2), ('/home/nano/Desktop/images/16062025/23/00/image_16062025_23_00_55_9669.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/01/image_16062025_23_01_45_9671.jpg', '/home/nano/Desktop/images/16062025/23/01/image_16062025_23_01_35_10677.jpg', '/home/nano/Desktop/images/16062025/23/01/image_16062025_23_01_25_9669.jpg', '/home/nano/Desktop/images/16062025/23/01/image_16062025_23_01_15_9670.jpg', '/home/nano/Desktop/images/16062025/23/00/image_16062025_23_01_05_10704.jpg', '/home/nano/Desktop/images/16062025/23/00/image_16062025_23_00_55_9669.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/01/image_16062025_23_01_45_9671.jpg
/home/nano/Desktop/images/16062025/23/01/image_16062025_23_01_35_10677.jpg
/home/nano/Desktop/images/16062025/23/01/image_16062025_23_01_25_9669.jpg
/home/nano/Desktop/images/16062025/23/01/image_16062025_23_01_15_9670.jpg
/home/nano/Desktop/images/16062025/23/00/image_16062025_23_01_05_10704.jpg
/home/nano/Desktop/images/16062025/23/00/image_16062025_23_00_55_9669.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366604858","1366605076","1366604848","1366604979","1366604853","1366605161"],"photo_ids_order":["1366604848","1366604853","1366604858","1366604979","1366605076","1366605161"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8323decec4ef3c042a693c144adaad7b.jpg","text":"TemporaryFile(/tmp/multipartBody4960859077497149831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107740311,"filename":"image_16062025_23_01_25_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ac639091024ca5377d598ac4bc1dcc1e.jpg","text":"TemporaryFile(/tmp/multipartBody2245243840556229952asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107740311,"filename":"image_16062025_23_01_05_10704.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/723fecab2423666ecffafcd61f89f453.jpg","text":"TemporaryFile(/tmp/multipartBody1215944016834422474asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107740311,"filename":"image_16062025_23_01_45_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7c9fe6446fbb7319a65b335e54ad9d52.jpg","text":"TemporaryFile(/tmp/multipartBody6107873411304942831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107740311,"filename":"image_16062025_23_01_15_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6c5aca9074aad3f4f7ebc80e02775ff0.jpg","text":"TemporaryFile(/tmp/multipartBody8225119273719436768asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107740311,"filename":"image_16062025_23_01_35_10677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/645c3bec639aed5d940d3c03257635be.jpg","text":"TemporaryFile(/tmp/multipartBody6895464376483484701asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107740311,"filename":"image_16062025_23_00_55_9669.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366604858","file1":"1366604853","file0":"1366604848","file4":"1366605076","file5":"1366605161","file3":"1366604979"},"map_files_photo_id_array":[{"photo_id":"1366605161","filename":"file5"},{"photo_id":"1366604858","filename":"file2"},{"photo_id":"1366605076","filename":"file4"},{"photo_id":"1366604853","filename":"file1"},{"photo_id":"1366604848","filename":"file0"},{"photo_id":"1366604979","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366604858":["hashtag1","hashtag2"]},{"1366605076":["hashtag1","hashtag2"]},{"1366604848":["hashtag1","hashtag2"]},{"1366604979":["hashtag1","hashtag2"]},{"1366604853":["hashtag1","hashtag2"]},{"1366605161":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366604858, 1366605076, 1366604848, 1366604979, 1366604853, 1366605161)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 97.45434761047363 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:03:02.856946
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/02/image_16062025_23_02_45_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/23/02/image_16062025_23_02_35_10676.jpg', 2), ('/home/nano/Desktop/images/16062025/23/02/image_16062025_23_02_25_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/23/02/image_16062025_23_02_15_9696.jpg', 2), ('/home/nano/Desktop/images/16062025/23/01/image_16062025_23_02_05_10683.jpg', 2), ('/home/nano/Desktop/images/16062025/23/01/image_16062025_23_01_55_9672.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/02/image_16062025_23_02_45_9677.jpg', '/home/nano/Desktop/images/16062025/23/02/image_16062025_23_02_35_10676.jpg', '/home/nano/Desktop/images/16062025/23/02/image_16062025_23_02_25_9669.jpg', '/home/nano/Desktop/images/16062025/23/02/image_16062025_23_02_15_9696.jpg', '/home/nano/Desktop/images/16062025/23/01/image_16062025_23_02_05_10683.jpg', '/home/nano/Desktop/images/16062025/23/01/image_16062025_23_01_55_9672.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/02/image_16062025_23_02_45_9677.jpg
/home/nano/Desktop/images/16062025/23/02/image_16062025_23_02_35_10676.jpg
/home/nano/Desktop/images/16062025/23/02/image_16062025_23_02_25_9669.jpg
/home/nano/Desktop/images/16062025/23/02/image_16062025_23_02_15_9696.jpg
/home/nano/Desktop/images/16062025/23/01/image_16062025_23_02_05_10683.jpg
/home/nano/Desktop/images/16062025/23/01/image_16062025_23_01_55_9672.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366605308","1366605438","1366605417","1366605362","1366605392","1366605272"],"photo_ids_order":["1366605272","1366605308","1366605362","1366605392","1366605417","1366605438"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/362521eb7826e20cb6faed6a1721af95.jpg","text":"TemporaryFile(/tmp/multipartBody1044059261255794182asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107846651,"filename":"image_16062025_23_02_35_10676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d051d7515ce6e31823729224110b146c.jpg","text":"TemporaryFile(/tmp/multipartBody2452143539772565231asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107846651,"filename":"image_16062025_23_01_55_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9c25de56b9c3a5497d215f22d6a8ad13.jpg","text":"TemporaryFile(/tmp/multipartBody7257070816312292670asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107846651,"filename":"image_16062025_23_02_05_10683.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/829d6a629a80c9cc80646b7963582a56.jpg","text":"TemporaryFile(/tmp/multipartBody4082028318141961492asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107846651,"filename":"image_16062025_23_02_25_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d3f3dbfb9ec73d5a670c8a895ee446ae.jpg","text":"TemporaryFile(/tmp/multipartBody1177326774906131798asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107846651,"filename":"image_16062025_23_02_15_9696.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ea392d7046abad78a97b332cccac5254.jpg","text":"TemporaryFile(/tmp/multipartBody5206714386977444704asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107846651,"filename":"image_16062025_23_02_45_9677.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366605362","file1":"1366605308","file0":"1366605272","file4":"1366605417","file5":"1366605438","file3":"1366605392"},"map_files_photo_id_array":[{"photo_id":"1366605438","filename":"file5"},{"photo_id":"1366605362","filename":"file2"},{"photo_id":"1366605417","filename":"file4"},{"photo_id":"1366605308","filename":"file1"},{"photo_id":"1366605272","filename":"file0"},{"photo_id":"1366605392","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366605308":["hashtag1","hashtag2"]},{"1366605438":["hashtag1","hashtag2"]},{"1366605417":["hashtag1","hashtag2"]},{"1366605362":["hashtag1","hashtag2"]},{"1366605392":["hashtag1","hashtag2"]},{"1366605272":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366605308, 1366605438, 1366605417, 1366605362, 1366605392, 1366605272)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 68.12058734893799 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:04:17.249462
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/04/image_16062025_23_04_45_10679.jpg', 2), ('/home/nano/Desktop/images/16062025/23/04/image_16062025_23_04_34_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/23/04/image_16062025_23_04_25_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/23/04/image_16062025_23_04_15_10702.jpg', 2), ('/home/nano/Desktop/images/16062025/23/03/image_16062025_23_04_04_9674.jpg', 2), ('/home/nano/Desktop/images/16062025/23/03/image_16062025_23_03_55_9671.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/04/image_16062025_23_04_45_10679.jpg', '/home/nano/Desktop/images/16062025/23/04/image_16062025_23_04_34_9669.jpg', '/home/nano/Desktop/images/16062025/23/04/image_16062025_23_04_25_9671.jpg', '/home/nano/Desktop/images/16062025/23/04/image_16062025_23_04_15_10702.jpg', '/home/nano/Desktop/images/16062025/23/03/image_16062025_23_04_04_9674.jpg', '/home/nano/Desktop/images/16062025/23/03/image_16062025_23_03_55_9671.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/04/image_16062025_23_04_45_10679.jpg
/home/nano/Desktop/images/16062025/23/04/image_16062025_23_04_34_9669.jpg
/home/nano/Desktop/images/16062025/23/04/image_16062025_23_04_25_9671.jpg
/home/nano/Desktop/images/16062025/23/04/image_16062025_23_04_15_10702.jpg
/home/nano/Desktop/images/16062025/23/03/image_16062025_23_04_04_9674.jpg
/home/nano/Desktop/images/16062025/23/03/image_16062025_23_03_55_9671.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366605472","1366605469","1366605454","1366605461","1366605464","1366605458"],"photo_ids_order":["1366605454","1366605458","1366605461","1366605464","1366605469","1366605472"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/19e32739e3c8e00f133d64a5af424c24.jpg","text":"TemporaryFile(/tmp/multipartBody2494045472496515049asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107919697,"filename":"image_16062025_23_03_55_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a64717ab65569d5d2fb3c3c3f49013e1.jpg","text":"TemporaryFile(/tmp/multipartBody4767896242612977239asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107919697,"filename":"image_16062025_23_04_04_9674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/368f812bb1c9c90938b8448106660298.jpg","text":"TemporaryFile(/tmp/multipartBody6995767176349464894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107919697,"filename":"image_16062025_23_04_45_10679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/77ec5ee7e330f132d7583fb71bbca15c.jpg","text":"TemporaryFile(/tmp/multipartBody4228165069479225587asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107919697,"filename":"image_16062025_23_04_25_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6ae2d80534a4a14ce75cf702bf88eb70.jpg","text":"TemporaryFile(/tmp/multipartBody4381540989356601832asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107919697,"filename":"image_16062025_23_04_15_10702.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/953ccccbddbe6bd7ac7693988e7a888c.jpg","text":"TemporaryFile(/tmp/multipartBody1213068979188848988asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107919697,"filename":"image_16062025_23_04_34_9669.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366605461","file1":"1366605458","file0":"1366605454","file4":"1366605469","file5":"1366605472","file3":"1366605464"},"map_files_photo_id_array":[{"photo_id":"1366605472","filename":"file5"},{"photo_id":"1366605461","filename":"file2"},{"photo_id":"1366605469","filename":"file4"},{"photo_id":"1366605458","filename":"file1"},{"photo_id":"1366605454","filename":"file0"},{"photo_id":"1366605464","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366605472":["hashtag1","hashtag2"]},{"1366605469":["hashtag1","hashtag2"]},{"1366605454":["hashtag1","hashtag2"]},{"1366605461":["hashtag1","hashtag2"]},{"1366605464":["hashtag1","hashtag2"]},{"1366605458":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366605472, 1366605469, 1366605454, 1366605461, 1366605464, 1366605458)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 71.65161991119385 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:05:32.417282
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/05/image_16062025_23_05_45_10682.jpg', 2), ('/home/nano/Desktop/images/16062025/23/05/image_16062025_23_05_35_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/23/05/image_16062025_23_05_25_9691.jpg', 2), ('/home/nano/Desktop/images/16062025/23/05/image_16062025_23_05_15_10695.jpg', 2), ('/home/nano/Desktop/images/16062025/23/04/image_16062025_23_04_55_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/23/03/image_16062025_23_03_45_10686.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/05/image_16062025_23_05_45_10682.jpg', '/home/nano/Desktop/images/16062025/23/05/image_16062025_23_05_35_9673.jpg', '/home/nano/Desktop/images/16062025/23/05/image_16062025_23_05_25_9691.jpg', '/home/nano/Desktop/images/16062025/23/05/image_16062025_23_05_15_10695.jpg', '/home/nano/Desktop/images/16062025/23/04/image_16062025_23_04_55_9671.jpg', '/home/nano/Desktop/images/16062025/23/03/image_16062025_23_03_45_10686.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/05/image_16062025_23_05_45_10682.jpg
/home/nano/Desktop/images/16062025/23/05/image_16062025_23_05_35_9673.jpg
/home/nano/Desktop/images/16062025/23/05/image_16062025_23_05_25_9691.jpg
/home/nano/Desktop/images/16062025/23/05/image_16062025_23_05_15_10695.jpg
/home/nano/Desktop/images/16062025/23/04/image_16062025_23_04_55_9671.jpg
/home/nano/Desktop/images/16062025/23/03/image_16062025_23_03_45_10686.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366605697","1366605483","1366605489","1366605633","1366605561","1366605761"],"photo_ids_order":["1366605483","1366605489","1366605561","1366605633","1366605697","1366605761"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f06a1dd3a4ca362a1c0594f83d275d5d.jpg","text":"TemporaryFile(/tmp/multipartBody6931488188883780670asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107996331,"filename":"image_16062025_23_04_55_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/daf022c29ff1f005ac0a7e87834bd8bb.jpg","text":"TemporaryFile(/tmp/multipartBody7987516401408461096asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107996331,"filename":"image_16062025_23_05_45_10682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e2318ccbf9118f19306afd8cb41fe78d.jpg","text":"TemporaryFile(/tmp/multipartBody554535228630835694asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107996331,"filename":"image_16062025_23_05_35_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/26faa9fe1c14eb515b0b552fd11d98f7.jpg","text":"TemporaryFile(/tmp/multipartBody6295458514231768029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107996331,"filename":"image_16062025_23_05_15_10695.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bc0460f652a0606ef41bf2e9c8177267.jpg","text":"TemporaryFile(/tmp/multipartBody185363130996906083asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107996331,"filename":"image_16062025_23_05_25_9691.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c55e810af66f0ae43f1aa4e8175879a6.jpg","text":"TemporaryFile(/tmp/multipartBody4674593891101450611asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750107996331,"filename":"image_16062025_23_03_45_10686.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366605561","file1":"1366605489","file0":"1366605483","file4":"1366605697","file5":"1366605761","file3":"1366605633"},"map_files_photo_id_array":[{"photo_id":"1366605761","filename":"file5"},{"photo_id":"1366605561","filename":"file2"},{"photo_id":"1366605697","filename":"file4"},{"photo_id":"1366605489","filename":"file1"},{"photo_id":"1366605483","filename":"file0"},{"photo_id":"1366605633","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366605697":["hashtag1","hashtag2"]},{"1366605483":["hashtag1","hashtag2"]},{"1366605489":["hashtag1","hashtag2"]},{"1366605633":["hashtag1","hashtag2"]},{"1366605561":["hashtag1","hashtag2"]},{"1366605761":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366605697, 1366605483, 1366605489, 1366605633, 1366605561, 1366605761)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 90.25804090499878 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:07:17.559141
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/07/image_16062025_23_07_44_9675.jpg', 2), ('/home/nano/Desktop/images/16062025/23/07/image_16062025_23_07_35_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/23/07/image_16062025_23_07_25_10685.jpg', 2), ('/home/nano/Desktop/images/16062025/23/06/image_16062025_23_07_05_9690.jpg', 2), ('/home/nano/Desktop/images/16062025/23/06/image_16062025_23_06_55_9694.jpg', 2), ('/home/nano/Desktop/images/16062025/23/06/image_16062025_23_06_45_10680.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/07/image_16062025_23_07_44_9675.jpg', '/home/nano/Desktop/images/16062025/23/07/image_16062025_23_07_35_9668.jpg', '/home/nano/Desktop/images/16062025/23/07/image_16062025_23_07_25_10685.jpg', '/home/nano/Desktop/images/16062025/23/06/image_16062025_23_07_05_9690.jpg', '/home/nano/Desktop/images/16062025/23/06/image_16062025_23_06_55_9694.jpg', '/home/nano/Desktop/images/16062025/23/06/image_16062025_23_06_45_10680.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/07/image_16062025_23_07_44_9675.jpg
/home/nano/Desktop/images/16062025/23/07/image_16062025_23_07_35_9668.jpg
/home/nano/Desktop/images/16062025/23/07/image_16062025_23_07_25_10685.jpg
/home/nano/Desktop/images/16062025/23/06/image_16062025_23_07_05_9690.jpg
/home/nano/Desktop/images/16062025/23/06/image_16062025_23_06_55_9694.jpg
/home/nano/Desktop/images/16062025/23/06/image_16062025_23_06_45_10680.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366605889","1366605883","1366605876","1366605879","1366605870","1366605893"],"photo_ids_order":["1366605870","1366605876","1366605879","1366605883","1366605889","1366605893"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fb46524e01767ef7e8fd7ccd811f4a88.jpg","text":"TemporaryFile(/tmp/multipartBody3974433525554976917asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108100167,"filename":"image_16062025_23_06_55_9694.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9a74d11cd22574c9dab0afa57f73a0cc.jpg","text":"TemporaryFile(/tmp/multipartBody4688584977391215991asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108100167,"filename":"image_16062025_23_07_05_9690.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/187cc8f8436ce6211913a982f0e70e94.jpg","text":"TemporaryFile(/tmp/multipartBody5709767225158750794asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108100167,"filename":"image_16062025_23_07_35_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3ad674a65179a1da096aa8008a30ee72.jpg","text":"TemporaryFile(/tmp/multipartBody1160125177418087415asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108100167,"filename":"image_16062025_23_07_25_10685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ddac788a5c07c8088a8d3e424a3608b4.jpg","text":"TemporaryFile(/tmp/multipartBody3130105582817631179asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108100167,"filename":"image_16062025_23_07_44_9675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8e2dfe01b1833c8541893131b46f11d8.jpg","text":"TemporaryFile(/tmp/multipartBody1323933406720632623asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108100167,"filename":"image_16062025_23_06_45_10680.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366605879","file1":"1366605876","file0":"1366605870","file4":"1366605889","file5":"1366605893","file3":"1366605883"},"map_files_photo_id_array":[{"photo_id":"1366605893","filename":"file5"},{"photo_id":"1366605879","filename":"file2"},{"photo_id":"1366605889","filename":"file4"},{"photo_id":"1366605876","filename":"file1"},{"photo_id":"1366605870","filename":"file0"},{"photo_id":"1366605883","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366605889":["hashtag1","hashtag2"]},{"1366605883":["hashtag1","hashtag2"]},{"1366605876":["hashtag1","hashtag2"]},{"1366605879":["hashtag1","hashtag2"]},{"1366605870":["hashtag1","hashtag2"]},{"1366605893":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366605889, 1366605883, 1366605876, 1366605879, 1366605870, 1366605893)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 69.9413890838623 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:08:32.669218
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/08/image_16062025_23_08_45_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/23/08/image_16062025_23_08_35_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/23/08/image_16062025_23_08_25_10679.jpg', 2), ('/home/nano/Desktop/images/16062025/23/08/image_16062025_23_08_15_9711.jpg', 2), ('/home/nano/Desktop/images/16062025/23/07/image_16062025_23_08_05_9692.jpg', 2), ('/home/nano/Desktop/images/16062025/23/07/image_16062025_23_07_55_10686.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/08/image_16062025_23_08_45_9671.jpg', '/home/nano/Desktop/images/16062025/23/08/image_16062025_23_08_35_9673.jpg', '/home/nano/Desktop/images/16062025/23/08/image_16062025_23_08_25_10679.jpg', '/home/nano/Desktop/images/16062025/23/08/image_16062025_23_08_15_9711.jpg', '/home/nano/Desktop/images/16062025/23/07/image_16062025_23_08_05_9692.jpg', '/home/nano/Desktop/images/16062025/23/07/image_16062025_23_07_55_10686.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/08/image_16062025_23_08_45_9671.jpg
/home/nano/Desktop/images/16062025/23/08/image_16062025_23_08_35_9673.jpg
/home/nano/Desktop/images/16062025/23/08/image_16062025_23_08_25_10679.jpg
/home/nano/Desktop/images/16062025/23/08/image_16062025_23_08_15_9711.jpg
/home/nano/Desktop/images/16062025/23/07/image_16062025_23_08_05_9692.jpg
/home/nano/Desktop/images/16062025/23/07/image_16062025_23_07_55_10686.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366605917","1366605926","1366605943","1366605922","1366605933","1366605927"],"photo_ids_order":["1366605917","1366605922","1366605926","1366605927","1366605933","1366605943"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/45ae148c15d85fedb13503bdecdfd274.jpg","text":"TemporaryFile(/tmp/multipartBody6287650186042545689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108175544,"filename":"image_16062025_23_08_45_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/dc03680034e3d1253b8d8497d4b68915.jpg","text":"TemporaryFile(/tmp/multipartBody6532286696607421278asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108175544,"filename":"image_16062025_23_08_25_10679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2c933c9f80812a97e3a8f32b94c7529c.jpg","text":"TemporaryFile(/tmp/multipartBody3495328501350205874asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108175544,"filename":"image_16062025_23_07_55_10686.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7df2b4286be9bb05804a12461affd5f4.jpg","text":"TemporaryFile(/tmp/multipartBody8461684176018514379asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108175544,"filename":"image_16062025_23_08_35_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/feb7b264bfa56aba4eb90497e202a012.jpg","text":"TemporaryFile(/tmp/multipartBody3946898301913919805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108175544,"filename":"image_16062025_23_08_05_9692.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7c2e210a117980df8638a806437c0d53.jpg","text":"TemporaryFile(/tmp/multipartBody8709354901056786138asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108175544,"filename":"image_16062025_23_08_15_9711.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366605926","file1":"1366605922","file0":"1366605917","file4":"1366605933","file5":"1366605943","file3":"1366605927"},"map_files_photo_id_array":[{"photo_id":"1366605943","filename":"file5"},{"photo_id":"1366605926","filename":"file2"},{"photo_id":"1366605933","filename":"file4"},{"photo_id":"1366605922","filename":"file1"},{"photo_id":"1366605917","filename":"file0"},{"photo_id":"1366605927","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366605917":["hashtag1","hashtag2"]},{"1366605926":["hashtag1","hashtag2"]},{"1366605943":["hashtag1","hashtag2"]},{"1366605922":["hashtag1","hashtag2"]},{"1366605933":["hashtag1","hashtag2"]},{"1366605927":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366605917, 1366605926, 1366605943, 1366605922, 1366605933, 1366605927)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 81.4787425994873 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:10:02.558152
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/09/image_16062025_23_09_45_9672.jpg', 2), ('/home/nano/Desktop/images/16062025/23/09/image_16062025_23_09_35_9670.jpg', 2), ('/home/nano/Desktop/images/16062025/23/09/image_16062025_23_09_25_10682.jpg', 2), ('/home/nano/Desktop/images/16062025/23/09/image_16062025_23_09_15_9715.jpg', 2), ('/home/nano/Desktop/images/16062025/23/08/image_16062025_23_09_05_9697.jpg', 2), ('/home/nano/Desktop/images/16062025/23/08/image_16062025_23_08_55_10678.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/09/image_16062025_23_09_45_9672.jpg', '/home/nano/Desktop/images/16062025/23/09/image_16062025_23_09_35_9670.jpg', '/home/nano/Desktop/images/16062025/23/09/image_16062025_23_09_25_10682.jpg', '/home/nano/Desktop/images/16062025/23/09/image_16062025_23_09_15_9715.jpg', '/home/nano/Desktop/images/16062025/23/08/image_16062025_23_09_05_9697.jpg', '/home/nano/Desktop/images/16062025/23/08/image_16062025_23_08_55_10678.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/09/image_16062025_23_09_45_9672.jpg
/home/nano/Desktop/images/16062025/23/09/image_16062025_23_09_35_9670.jpg
/home/nano/Desktop/images/16062025/23/09/image_16062025_23_09_25_10682.jpg
/home/nano/Desktop/images/16062025/23/09/image_16062025_23_09_15_9715.jpg
/home/nano/Desktop/images/16062025/23/08/image_16062025_23_09_05_9697.jpg
/home/nano/Desktop/images/16062025/23/08/image_16062025_23_08_55_10678.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366605979","1366605967","1366605954","1366605963","1366605959","1366605974"],"photo_ids_order":["1366605954","1366605959","1366605963","1366605967","1366605974","1366605979"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4a5de5018be08fa467774e8cfe059805.jpg","text":"TemporaryFile(/tmp/multipartBody4117101566252625726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108267791,"filename":"image_16062025_23_08_55_10678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bd883589f26fa990cee641e0da5914a8.jpg","text":"TemporaryFile(/tmp/multipartBody4412571657009855445asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108267791,"filename":"image_16062025_23_09_15_9715.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/593fda19d5026c76084dd895aa5e6596.jpg","text":"TemporaryFile(/tmp/multipartBody643475727683656371asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108267791,"filename":"image_16062025_23_09_45_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0b1571eb481b65e246027d06fd24ecbb.jpg","text":"TemporaryFile(/tmp/multipartBody2028337946131905057asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108267791,"filename":"image_16062025_23_09_25_10682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fa79288f15bfd4c7ee46e7bab7607478.jpg","text":"TemporaryFile(/tmp/multipartBody1528375221321559091asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108267791,"filename":"image_16062025_23_09_35_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f36b1998e23bb61f808398e055b36e7c.jpg","text":"TemporaryFile(/tmp/multipartBody3845744919361035528asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108267791,"filename":"image_16062025_23_09_05_9697.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366605963","file1":"1366605959","file0":"1366605954","file4":"1366605974","file5":"1366605979","file3":"1366605967"},"map_files_photo_id_array":[{"photo_id":"1366605979","filename":"file5"},{"photo_id":"1366605963","filename":"file2"},{"photo_id":"1366605974","filename":"file4"},{"photo_id":"1366605959","filename":"file1"},{"photo_id":"1366605954","filename":"file0"},{"photo_id":"1366605967","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366605979":["hashtag1","hashtag2"]},{"1366605967":["hashtag1","hashtag2"]},{"1366605954":["hashtag1","hashtag2"]},{"1366605963":["hashtag1","hashtag2"]},{"1366605959":["hashtag1","hashtag2"]},{"1366605974":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366605979, 1366605967, 1366605954, 1366605963, 1366605959, 1366605974)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 60.84946298599243 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:11:17.132259
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/11/image_16062025_23_11_25_9675.jpg', 2), ('/home/nano/Desktop/images/16062025/23/11/image_16062025_23_11_15_9679.jpg', 2), ('/home/nano/Desktop/images/16062025/23/10/image_16062025_23_11_05_10705.jpg', 2), ('/home/nano/Desktop/images/16062025/23/10/image_16062025_23_10_54_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/23/10/image_16062025_23_10_35_10678.jpg', 2), ('/home/nano/Desktop/images/16062025/23/09/image_16062025_23_10_05_10695.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/11/image_16062025_23_11_25_9675.jpg', '/home/nano/Desktop/images/16062025/23/11/image_16062025_23_11_15_9679.jpg', '/home/nano/Desktop/images/16062025/23/10/image_16062025_23_11_05_10705.jpg', '/home/nano/Desktop/images/16062025/23/10/image_16062025_23_10_54_9671.jpg', '/home/nano/Desktop/images/16062025/23/10/image_16062025_23_10_35_10678.jpg', '/home/nano/Desktop/images/16062025/23/09/image_16062025_23_10_05_10695.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/11/image_16062025_23_11_25_9675.jpg
/home/nano/Desktop/images/16062025/23/11/image_16062025_23_11_15_9679.jpg
/home/nano/Desktop/images/16062025/23/10/image_16062025_23_11_05_10705.jpg
/home/nano/Desktop/images/16062025/23/10/image_16062025_23_10_54_9671.jpg
/home/nano/Desktop/images/16062025/23/10/image_16062025_23_10_35_10678.jpg
/home/nano/Desktop/images/16062025/23/09/image_16062025_23_10_05_10695.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366606013","1366606027","1366606021","1366606000","1366605993","1366606004"],"photo_ids_order":["1366605993","1366606000","1366606004","1366606013","1366606021","1366606027"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6b27bb792c21f21c1c7eb38730347783.jpg","text":"TemporaryFile(/tmp/multipartBody6746917763488247125asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108339882,"filename":"image_16062025_23_10_54_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/35ef0119f21e0e158ecd6aef2aba9f22.jpg","text":"TemporaryFile(/tmp/multipartBody524926418273062580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108339882,"filename":"image_16062025_23_10_05_10695.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9ff9d32172951ad717c7aad2ca96c646.jpg","text":"TemporaryFile(/tmp/multipartBody2684384088232075522asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108339882,"filename":"image_16062025_23_10_35_10678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9a5d91939c3187976b41b266617c851a.jpg","text":"TemporaryFile(/tmp/multipartBody7959195799080651031asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108339882,"filename":"image_16062025_23_11_15_9679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/597d8eaf24d3eca5835b357d4f9c8ff6.jpg","text":"TemporaryFile(/tmp/multipartBody917002951614619256asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108339882,"filename":"image_16062025_23_11_25_9675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4f4eccc5e68210958742c0d5997e7931.jpg","text":"TemporaryFile(/tmp/multipartBody1154784020969018098asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108339882,"filename":"image_16062025_23_11_05_10705.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366606004","file1":"1366606000","file0":"1366605993","file4":"1366606021","file5":"1366606027","file3":"1366606013"},"map_files_photo_id_array":[{"photo_id":"1366606027","filename":"file5"},{"photo_id":"1366606004","filename":"file2"},{"photo_id":"1366606021","filename":"file4"},{"photo_id":"1366606000","filename":"file1"},{"photo_id":"1366605993","filename":"file0"},{"photo_id":"1366606013","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366606013":["hashtag1","hashtag2"]},{"1366606027":["hashtag1","hashtag2"]},{"1366606021":["hashtag1","hashtag2"]},{"1366606000":["hashtag1","hashtag2"]},{"1366605993":["hashtag1","hashtag2"]},{"1366606004":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366606013, 1366606027, 1366606021, 1366606000, 1366605993, 1366606004)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 95.30988073348999 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:13:02.964588
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/12/image_16062025_23_12_45_9692.jpg', 2), ('/home/nano/Desktop/images/16062025/23/12/image_16062025_23_12_35_10685.jpg', 2), ('/home/nano/Desktop/images/16062025/23/12/image_16062025_23_12_25_9675.jpg', 2), ('/home/nano/Desktop/images/16062025/23/12/image_16062025_23_12_15_9678.jpg', 2), ('/home/nano/Desktop/images/16062025/23/11/image_16062025_23_12_05_10689.jpg', 2), ('/home/nano/Desktop/images/16062025/23/11/image_16062025_23_11_45_9666.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/12/image_16062025_23_12_45_9692.jpg', '/home/nano/Desktop/images/16062025/23/12/image_16062025_23_12_35_10685.jpg', '/home/nano/Desktop/images/16062025/23/12/image_16062025_23_12_25_9675.jpg', '/home/nano/Desktop/images/16062025/23/12/image_16062025_23_12_15_9678.jpg', '/home/nano/Desktop/images/16062025/23/11/image_16062025_23_12_05_10689.jpg', '/home/nano/Desktop/images/16062025/23/11/image_16062025_23_11_45_9666.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/12/image_16062025_23_12_45_9692.jpg
/home/nano/Desktop/images/16062025/23/12/image_16062025_23_12_35_10685.jpg
/home/nano/Desktop/images/16062025/23/12/image_16062025_23_12_25_9675.jpg
/home/nano/Desktop/images/16062025/23/12/image_16062025_23_12_15_9678.jpg
/home/nano/Desktop/images/16062025/23/11/image_16062025_23_12_05_10689.jpg
/home/nano/Desktop/images/16062025/23/11/image_16062025_23_11_45_9666.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366606057","1366606042","1366606054","1366606050","1366606047","1366606052"],"photo_ids_order":["1366606042","1366606047","1366606050","1366606052","1366606054","1366606057"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c39a2379d323dc4196bdd86673577e71.jpg","text":"TemporaryFile(/tmp/multipartBody6731134016168750836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108445955,"filename":"image_16062025_23_11_45_9666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/62edda95a1cc829af2b86f07bb6a44de.jpg","text":"TemporaryFile(/tmp/multipartBody7068008153418350986asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108445955,"filename":"image_16062025_23_12_45_9692.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f55a0944c8d9b8556c1318f78bb608e7.jpg","text":"TemporaryFile(/tmp/multipartBody5722567549114306185asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108445955,"filename":"image_16062025_23_12_05_10689.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/68efa88bc473db6c477f9bdfe8188535.jpg","text":"TemporaryFile(/tmp/multipartBody4626694851163415286asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108445955,"filename":"image_16062025_23_12_25_9675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fc92177da8d93b43463bd348de44a9eb.jpg","text":"TemporaryFile(/tmp/multipartBody7978670743140869001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108445955,"filename":"image_16062025_23_12_35_10685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/eb10fa3faa79260215858d366f93fcd7.jpg","text":"TemporaryFile(/tmp/multipartBody2040456937980564031asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108445955,"filename":"image_16062025_23_12_15_9678.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366606050","file1":"1366606047","file0":"1366606042","file4":"1366606054","file5":"1366606057","file3":"1366606052"},"map_files_photo_id_array":[{"photo_id":"1366606057","filename":"file5"},{"photo_id":"1366606050","filename":"file2"},{"photo_id":"1366606054","filename":"file4"},{"photo_id":"1366606047","filename":"file1"},{"photo_id":"1366606042","filename":"file0"},{"photo_id":"1366606052","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366606057":["hashtag1","hashtag2"]},{"1366606042":["hashtag1","hashtag2"]},{"1366606054":["hashtag1","hashtag2"]},{"1366606050":["hashtag1","hashtag2"]},{"1366606047":["hashtag1","hashtag2"]},{"1366606052":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366606057, 1366606042, 1366606054, 1366606050, 1366606047, 1366606052)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 63.43570566177368 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:14:17.471642
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/14/image_16062025_23_14_45_10678.jpg', 2), ('/home/nano/Desktop/images/16062025/23/14/image_16062025_23_14_25_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/23/14/image_16062025_23_14_15_9688.jpg', 2), ('/home/nano/Desktop/images/16062025/23/13/image_16062025_23_14_05_10680.jpg', 2), ('/home/nano/Desktop/images/16062025/23/13/image_16062025_23_13_55_9670.jpg', 2), ('/home/nano/Desktop/images/16062025/23/13/image_16062025_23_13_45_9670.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/14/image_16062025_23_14_45_10678.jpg', '/home/nano/Desktop/images/16062025/23/14/image_16062025_23_14_25_9669.jpg', '/home/nano/Desktop/images/16062025/23/14/image_16062025_23_14_15_9688.jpg', '/home/nano/Desktop/images/16062025/23/13/image_16062025_23_14_05_10680.jpg', '/home/nano/Desktop/images/16062025/23/13/image_16062025_23_13_55_9670.jpg', '/home/nano/Desktop/images/16062025/23/13/image_16062025_23_13_45_9670.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/14/image_16062025_23_14_45_10678.jpg
/home/nano/Desktop/images/16062025/23/14/image_16062025_23_14_25_9669.jpg
/home/nano/Desktop/images/16062025/23/14/image_16062025_23_14_15_9688.jpg
/home/nano/Desktop/images/16062025/23/13/image_16062025_23_14_05_10680.jpg
/home/nano/Desktop/images/16062025/23/13/image_16062025_23_13_55_9670.jpg
/home/nano/Desktop/images/16062025/23/13/image_16062025_23_13_45_9670.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366606098","1366606089","1366606080","1366606074","1366606109","1366606103"],"photo_ids_order":["1366606074","1366606080","1366606089","1366606098","1366606103","1366606109"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e00ab632d76c3bf0d2f4c23dc54fdcc9.jpg","text":"TemporaryFile(/tmp/multipartBody4450141875523584564asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108521566,"filename":"image_16062025_23_14_05_10680.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c85c9e6ae0586546293cf8709361825c.jpg","text":"TemporaryFile(/tmp/multipartBody3665567062118417682asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108521566,"filename":"image_16062025_23_14_15_9688.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2fc5f6d3f1cd073e2965650169785e45.jpg","text":"TemporaryFile(/tmp/multipartBody6445425687272307969asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108521566,"filename":"image_16062025_23_14_25_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bca8f7755dc1c4aec6f571ea3321e7e1.jpg","text":"TemporaryFile(/tmp/multipartBody6381987153848098670asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108521566,"filename":"image_16062025_23_14_45_10678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ff71b9797ae3546eab4e96d2fa211d87.jpg","text":"TemporaryFile(/tmp/multipartBody4286932925166774958asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108521566,"filename":"image_16062025_23_13_45_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d3543128210d614c016a323d39728fe6.jpg","text":"TemporaryFile(/tmp/multipartBody6974107585123955573asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108521566,"filename":"image_16062025_23_13_55_9670.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366606089","file1":"1366606080","file0":"1366606074","file4":"1366606103","file5":"1366606109","file3":"1366606098"},"map_files_photo_id_array":[{"photo_id":"1366606109","filename":"file5"},{"photo_id":"1366606089","filename":"file2"},{"photo_id":"1366606103","filename":"file4"},{"photo_id":"1366606080","filename":"file1"},{"photo_id":"1366606074","filename":"file0"},{"photo_id":"1366606098","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366606098":["hashtag1","hashtag2"]},{"1366606089":["hashtag1","hashtag2"]},{"1366606080":["hashtag1","hashtag2"]},{"1366606074":["hashtag1","hashtag2"]},{"1366606109":["hashtag1","hashtag2"]},{"1366606103":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366606098, 1366606089, 1366606080, 1366606074, 1366606109, 1366606103)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 96.41520595550537 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:16:03.175667
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/15/image_16062025_23_15_45_10677.jpg', 2), ('/home/nano/Desktop/images/16062025/23/15/image_16062025_23_15_34_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/23/15/image_16062025_23_15_25_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/23/14/image_16062025_23_14_55_9670.jpg', 2), ('/home/nano/Desktop/images/16062025/23/13/image_16062025_23_13_35_10677.jpg', 2), ('/home/nano/Desktop/images/16062025/23/13/image_16062025_23_13_25_9675.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/15/image_16062025_23_15_45_10677.jpg', '/home/nano/Desktop/images/16062025/23/15/image_16062025_23_15_34_9677.jpg', '/home/nano/Desktop/images/16062025/23/15/image_16062025_23_15_25_9671.jpg', '/home/nano/Desktop/images/16062025/23/14/image_16062025_23_14_55_9670.jpg', '/home/nano/Desktop/images/16062025/23/13/image_16062025_23_13_35_10677.jpg', '/home/nano/Desktop/images/16062025/23/13/image_16062025_23_13_25_9675.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/15/image_16062025_23_15_45_10677.jpg
/home/nano/Desktop/images/16062025/23/15/image_16062025_23_15_34_9677.jpg
/home/nano/Desktop/images/16062025/23/15/image_16062025_23_15_25_9671.jpg
/home/nano/Desktop/images/16062025/23/14/image_16062025_23_14_55_9670.jpg
/home/nano/Desktop/images/16062025/23/13/image_16062025_23_13_35_10677.jpg
/home/nano/Desktop/images/16062025/23/13/image_16062025_23_13_25_9675.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 13.807934522628784 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:16:32.647030
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/16/image_16062025_23_16_35_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/23/16/image_16062025_23_16_25_9672.jpg', 2), ('/home/nano/Desktop/images/16062025/23/15/image_16062025_23_16_05_9695.jpg', 2), ('/home/nano/Desktop/images/16062025/23/15/image_16062025_23_15_55_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/23/15/image_16062025_23_15_45_10677.jpg', 2), ('/home/nano/Desktop/images/16062025/23/15/image_16062025_23_15_34_9677.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/16/image_16062025_23_16_35_9669.jpg', '/home/nano/Desktop/images/16062025/23/16/image_16062025_23_16_25_9672.jpg', '/home/nano/Desktop/images/16062025/23/15/image_16062025_23_16_05_9695.jpg', '/home/nano/Desktop/images/16062025/23/15/image_16062025_23_15_55_9673.jpg', '/home/nano/Desktop/images/16062025/23/15/image_16062025_23_15_45_10677.jpg', '/home/nano/Desktop/images/16062025/23/15/image_16062025_23_15_34_9677.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/16/image_16062025_23_16_35_9669.jpg
/home/nano/Desktop/images/16062025/23/16/image_16062025_23_16_25_9672.jpg
/home/nano/Desktop/images/16062025/23/15/image_16062025_23_16_05_9695.jpg
/home/nano/Desktop/images/16062025/23/15/image_16062025_23_15_55_9673.jpg
/home/nano/Desktop/images/16062025/23/15/image_16062025_23_15_45_10677.jpg
/home/nano/Desktop/images/16062025/23/15/image_16062025_23_15_34_9677.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366606171","1366606405","1366606239","1366606131","1366606125","1366606322"],"photo_ids_order":["1366606125","1366606131","1366606171","1366606239","1366606322","1366606405"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/13350f6316fd38263645af5e6863708d.jpg","text":"TemporaryFile(/tmp/multipartBody555596477658558836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108661843,"filename":"image_16062025_23_16_05_9695.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c1179866b478a76852924be01a9b28e3.jpg","text":"TemporaryFile(/tmp/multipartBody2843489284107232691asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108661843,"filename":"image_16062025_23_15_34_9677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d7716305b9b28b7ba5c9abca582575e8.jpg","text":"TemporaryFile(/tmp/multipartBody833382810027421980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108661843,"filename":"image_16062025_23_15_55_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e30d3e7a3ace24544b3017906cfbbd2c.jpg","text":"TemporaryFile(/tmp/multipartBody1485608981233573137asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108661843,"filename":"image_16062025_23_16_25_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/40f977f7460b1e1378520b345e322297.jpg","text":"TemporaryFile(/tmp/multipartBody2411141397471917036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108661843,"filename":"image_16062025_23_16_35_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/78a292f4548df2a5b7781f229e865a5b.jpg","text":"TemporaryFile(/tmp/multipartBody240701086398582611asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108661843,"filename":"image_16062025_23_15_45_10677.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366606171","file1":"1366606131","file0":"1366606125","file4":"1366606322","file5":"1366606405","file3":"1366606239"},"map_files_photo_id_array":[{"photo_id":"1366606405","filename":"file5"},{"photo_id":"1366606171","filename":"file2"},{"photo_id":"1366606322","filename":"file4"},{"photo_id":"1366606131","filename":"file1"},{"photo_id":"1366606125","filename":"file0"},{"photo_id":"1366606239","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366606171":["hashtag1","hashtag2"]},{"1366606405":["hashtag1","hashtag2"]},{"1366606239":["hashtag1","hashtag2"]},{"1366606131":["hashtag1","hashtag2"]},{"1366606125":["hashtag1","hashtag2"]},{"1366606322":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366606171, 1366606405, 1366606239, 1366606131, 1366606125, 1366606322)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 130.81895351409912 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:18:46.881139
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/18/image_16062025_23_18_35_9685.jpg', 2), ('/home/nano/Desktop/images/16062025/23/18/image_16062025_23_18_25_10680.jpg', 2), ('/home/nano/Desktop/images/16062025/23/18/image_16062025_23_18_14_9693.jpg', 2), ('/home/nano/Desktop/images/16062025/23/17/image_16062025_23_18_05_9705.jpg', 2), ('/home/nano/Desktop/images/16062025/23/17/image_16062025_23_17_55_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/23/17/image_16062025_23_17_45_10679.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/18/image_16062025_23_18_35_9685.jpg', '/home/nano/Desktop/images/16062025/23/18/image_16062025_23_18_25_10680.jpg', '/home/nano/Desktop/images/16062025/23/18/image_16062025_23_18_14_9693.jpg', '/home/nano/Desktop/images/16062025/23/17/image_16062025_23_18_05_9705.jpg', '/home/nano/Desktop/images/16062025/23/17/image_16062025_23_17_55_9677.jpg', '/home/nano/Desktop/images/16062025/23/17/image_16062025_23_17_45_10679.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/18/image_16062025_23_18_35_9685.jpg
/home/nano/Desktop/images/16062025/23/18/image_16062025_23_18_25_10680.jpg
/home/nano/Desktop/images/16062025/23/18/image_16062025_23_18_14_9693.jpg
/home/nano/Desktop/images/16062025/23/17/image_16062025_23_18_05_9705.jpg
/home/nano/Desktop/images/16062025/23/17/image_16062025_23_17_55_9677.jpg
/home/nano/Desktop/images/16062025/23/17/image_16062025_23_17_45_10679.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366607091","1366607130","1366606854","1366606647","1366606716","1366606931"],"photo_ids_order":["1366606647","1366606716","1366606854","1366606931","1366607091","1366607130"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5c9590fa7a7047d3449de19d7af51d76.jpg","text":"TemporaryFile(/tmp/multipartBody6403300343755703592asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108790796,"filename":"image_16062025_23_17_55_9677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/18774dacd06c907356bfc244df22118b.jpg","text":"TemporaryFile(/tmp/multipartBody1620675584722356654asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108790796,"filename":"image_16062025_23_17_45_10679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/11ad3f9df916e4bf793705b975d93005.jpg","text":"TemporaryFile(/tmp/multipartBody6306440988868275570asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108790796,"filename":"image_16062025_23_18_14_9693.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cbba5eaa8be0b7537902fbb9678c4a39.jpg","text":"TemporaryFile(/tmp/multipartBody2708655446539623891asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108790796,"filename":"image_16062025_23_18_35_9685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/21052aa86619f06f0f9970e286bb9d5f.jpg","text":"TemporaryFile(/tmp/multipartBody8813528620864014044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108790796,"filename":"image_16062025_23_18_25_10680.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4a20c92b255e5c6f35b48f162b6dd647.jpg","text":"TemporaryFile(/tmp/multipartBody7678450787779339733asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108790796,"filename":"image_16062025_23_18_05_9705.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366606854","file1":"1366606716","file0":"1366606647","file4":"1366607091","file5":"1366607130","file3":"1366606931"},"map_files_photo_id_array":[{"photo_id":"1366607130","filename":"file5"},{"photo_id":"1366606854","filename":"file2"},{"photo_id":"1366607091","filename":"file4"},{"photo_id":"1366606716","filename":"file1"},{"photo_id":"1366606647","filename":"file0"},{"photo_id":"1366606931","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366607091":["hashtag1","hashtag2"]},{"1366607130":["hashtag1","hashtag2"]},{"1366606854":["hashtag1","hashtag2"]},{"1366606647":["hashtag1","hashtag2"]},{"1366606716":["hashtag1","hashtag2"]},{"1366606931":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366607091, 1366607130, 1366606854, 1366606647, 1366606716, 1366606931)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 146.35304498672485 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:21:17.148077
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/21/image_16062025_23_21_45_9672.jpg', 2), ('/home/nano/Desktop/images/16062025/23/21/image_16062025_23_21_35_10686.jpg', 2), ('/home/nano/Desktop/images/16062025/23/21/image_16062025_23_21_24_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/23/21/image_16062025_23_21_15_9681.jpg', 2), ('/home/nano/Desktop/images/16062025/23/20/image_16062025_23_21_05_9690.jpg', 2), ('/home/nano/Desktop/images/16062025/23/20/image_16062025_23_20_55_10679.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/21/image_16062025_23_21_45_9672.jpg', '/home/nano/Desktop/images/16062025/23/21/image_16062025_23_21_35_10686.jpg', '/home/nano/Desktop/images/16062025/23/21/image_16062025_23_21_24_9669.jpg', '/home/nano/Desktop/images/16062025/23/21/image_16062025_23_21_15_9681.jpg', '/home/nano/Desktop/images/16062025/23/20/image_16062025_23_21_05_9690.jpg', '/home/nano/Desktop/images/16062025/23/20/image_16062025_23_20_55_10679.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/21/image_16062025_23_21_45_9672.jpg
/home/nano/Desktop/images/16062025/23/21/image_16062025_23_21_35_10686.jpg
/home/nano/Desktop/images/16062025/23/21/image_16062025_23_21_24_9669.jpg
/home/nano/Desktop/images/16062025/23/21/image_16062025_23_21_15_9681.jpg
/home/nano/Desktop/images/16062025/23/20/image_16062025_23_21_05_9690.jpg
/home/nano/Desktop/images/16062025/23/20/image_16062025_23_20_55_10679.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366607157","1366607166","1366607150","1366607147","1366607278","1366607201"],"photo_ids_order":["1366607147","1366607150","1366607157","1366607166","1366607201","1366607278"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/350dc11045102e0adec120593fa9691e.jpg","text":"TemporaryFile(/tmp/multipartBody2447193473948942268asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108941176,"filename":"image_16062025_23_21_24_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/162e4cf0cb7a8155617a3cf3cede74e6.jpg","text":"TemporaryFile(/tmp/multipartBody7115943092121309482asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108941176,"filename":"image_16062025_23_21_15_9681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3cedc1281d44ed7d0ffaa085ec91a70b.jpg","text":"TemporaryFile(/tmp/multipartBody1418595090873615867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108941176,"filename":"image_16062025_23_21_35_10686.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/17eb8537326fe867b5292e51cca95992.jpg","text":"TemporaryFile(/tmp/multipartBody4048132965599821243asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108941176,"filename":"image_16062025_23_21_45_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/76222504ab04192031a77356ad76d596.jpg","text":"TemporaryFile(/tmp/multipartBody35906110997389907asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108941176,"filename":"image_16062025_23_20_55_10679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2b4bd816106fb551d977ab81cf27f32f.jpg","text":"TemporaryFile(/tmp/multipartBody5122990012896010672asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750108941176,"filename":"image_16062025_23_21_05_9690.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366607157","file1":"1366607150","file0":"1366607147","file4":"1366607201","file5":"1366607278","file3":"1366607166"},"map_files_photo_id_array":[{"photo_id":"1366607278","filename":"file5"},{"photo_id":"1366607157","filename":"file2"},{"photo_id":"1366607201","filename":"file4"},{"photo_id":"1366607150","filename":"file1"},{"photo_id":"1366607147","filename":"file0"},{"photo_id":"1366607166","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366607157":["hashtag1","hashtag2"]},{"1366607166":["hashtag1","hashtag2"]},{"1366607150":["hashtag1","hashtag2"]},{"1366607147":["hashtag1","hashtag2"]},{"1366607278":["hashtag1","hashtag2"]},{"1366607201":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366607157, 1366607166, 1366607150, 1366607147, 1366607278, 1366607201)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 98.78973579406738 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:23:03.106333
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/22/image_16062025_23_22_24_9673.jpg', 2), ('/home/nano/Desktop/images/16062025/23/22/image_16062025_23_22_15_9683.jpg', 2), ('/home/nano/Desktop/images/16062025/23/21/image_16062025_23_21_54_9670.jpg', 2), ('/home/nano/Desktop/images/16062025/23/20/image_16062025_23_20_45_9671.jpg', 2), ('/home/nano/Desktop/images/16062025/23/20/image_16062025_23_20_35_9675.jpg', 2), ('/home/nano/Desktop/images/16062025/23/20/image_16062025_23_20_25_10685.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/22/image_16062025_23_22_24_9673.jpg', '/home/nano/Desktop/images/16062025/23/22/image_16062025_23_22_15_9683.jpg', '/home/nano/Desktop/images/16062025/23/21/image_16062025_23_21_54_9670.jpg', '/home/nano/Desktop/images/16062025/23/20/image_16062025_23_20_45_9671.jpg', '/home/nano/Desktop/images/16062025/23/20/image_16062025_23_20_35_9675.jpg', '/home/nano/Desktop/images/16062025/23/20/image_16062025_23_20_25_10685.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/22/image_16062025_23_22_24_9673.jpg
/home/nano/Desktop/images/16062025/23/22/image_16062025_23_22_15_9683.jpg
/home/nano/Desktop/images/16062025/23/21/image_16062025_23_21_54_9670.jpg
/home/nano/Desktop/images/16062025/23/20/image_16062025_23_20_45_9671.jpg
/home/nano/Desktop/images/16062025/23/20/image_16062025_23_20_35_9675.jpg
/home/nano/Desktop/images/16062025/23/20/image_16062025_23_20_25_10685.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366607422","1366607396","1366607415","1366607409","1366607387","1366607402"],"photo_ids_order":["1366607387","1366607396","1366607402","1366607409","1366607415","1366607422"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/effac40c3871092b5f50fc788888af03.jpg","text":"TemporaryFile(/tmp/multipartBody2124070307415684234asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109046058,"filename":"image_16062025_23_20_25_10685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5953beffb5842c0f03840c514da77b30.jpg","text":"TemporaryFile(/tmp/multipartBody1060319091111619120asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109046058,"filename":"image_16062025_23_22_15_9683.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3abac56884d019b7683c77426dea775d.jpg","text":"TemporaryFile(/tmp/multipartBody6084852092360295371asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109046058,"filename":"image_16062025_23_20_35_9675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bbab0b4b05b1ecbf88877e3935f227e0.jpg","text":"TemporaryFile(/tmp/multipartBody7488136945166264024asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109046058,"filename":"image_16062025_23_20_45_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/aa4174b34c74308e8774b5b3df8bdaae.jpg","text":"TemporaryFile(/tmp/multipartBody5808649119369875108asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109046058,"filename":"image_16062025_23_22_24_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/23824a4453a1b2758e995ba2faf9e191.jpg","text":"TemporaryFile(/tmp/multipartBody4858426308376073459asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109046058,"filename":"image_16062025_23_21_54_9670.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366607402","file1":"1366607396","file0":"1366607387","file4":"1366607415","file5":"1366607422","file3":"1366607409"},"map_files_photo_id_array":[{"photo_id":"1366607422","filename":"file5"},{"photo_id":"1366607402","filename":"file2"},{"photo_id":"1366607415","filename":"file4"},{"photo_id":"1366607396","filename":"file1"},{"photo_id":"1366607387","filename":"file0"},{"photo_id":"1366607409","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366607422":["hashtag1","hashtag2"]},{"1366607396":["hashtag1","hashtag2"]},{"1366607415":["hashtag1","hashtag2"]},{"1366607409":["hashtag1","hashtag2"]},{"1366607387":["hashtag1","hashtag2"]},{"1366607402":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366607422, 1366607396, 1366607415, 1366607409, 1366607387, 1366607402)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 84.19479966163635 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:24:32.579222
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/24/image_16062025_23_24_45_10679.jpg', 2), ('/home/nano/Desktop/images/16062025/23/24/image_16062025_23_24_34_9707.jpg', 2), ('/home/nano/Desktop/images/16062025/23/24/image_16062025_23_24_25_9672.jpg', 2), ('/home/nano/Desktop/images/16062025/23/24/image_16062025_23_24_15_9695.jpg', 2), ('/home/nano/Desktop/images/16062025/23/23/image_16062025_23_24_05_10705.jpg', 2), ('/home/nano/Desktop/images/16062025/23/23/image_16062025_23_23_55_9676.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/24/image_16062025_23_24_45_10679.jpg', '/home/nano/Desktop/images/16062025/23/24/image_16062025_23_24_34_9707.jpg', '/home/nano/Desktop/images/16062025/23/24/image_16062025_23_24_25_9672.jpg', '/home/nano/Desktop/images/16062025/23/24/image_16062025_23_24_15_9695.jpg', '/home/nano/Desktop/images/16062025/23/23/image_16062025_23_24_05_10705.jpg', '/home/nano/Desktop/images/16062025/23/23/image_16062025_23_23_55_9676.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/24/image_16062025_23_24_45_10679.jpg
/home/nano/Desktop/images/16062025/23/24/image_16062025_23_24_34_9707.jpg
/home/nano/Desktop/images/16062025/23/24/image_16062025_23_24_25_9672.jpg
/home/nano/Desktop/images/16062025/23/24/image_16062025_23_24_15_9695.jpg
/home/nano/Desktop/images/16062025/23/23/image_16062025_23_24_05_10705.jpg
/home/nano/Desktop/images/16062025/23/23/image_16062025_23_23_55_9676.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366607469","1366607478","1366607483","1366607444","1366607438","1366607473"],"photo_ids_order":["1366607438","1366607444","1366607469","1366607473","1366607478","1366607483"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a3daceb25549227c5add8dd0d327f972.jpg","text":"TemporaryFile(/tmp/multipartBody5262624605501562920asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109135896,"filename":"image_16062025_23_24_25_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c7e9ab01420c042fab89bbbbdac93a5f.jpg","text":"TemporaryFile(/tmp/multipartBody2886842882285641592asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109135896,"filename":"image_16062025_23_24_05_10705.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d77d25fa4284f1bd65204d708b911531.jpg","text":"TemporaryFile(/tmp/multipartBody9221105262665222016asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109135896,"filename":"image_16062025_23_23_55_9676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/695fddf828f1e2606aae283c9a2eaeb5.jpg","text":"TemporaryFile(/tmp/multipartBody1940761707187504778asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109135896,"filename":"image_16062025_23_24_34_9707.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8b3d34d224fd1997b9c9a8f600fb96bd.jpg","text":"TemporaryFile(/tmp/multipartBody6737895161610381187asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109135896,"filename":"image_16062025_23_24_45_10679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4d552902babf5645da0b878b02c97c5a.jpg","text":"TemporaryFile(/tmp/multipartBody1295150444044328657asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109135896,"filename":"image_16062025_23_24_15_9695.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366607469","file1":"1366607444","file0":"1366607438","file4":"1366607478","file5":"1366607483","file3":"1366607473"},"map_files_photo_id_array":[{"photo_id":"1366607483","filename":"file5"},{"photo_id":"1366607469","filename":"file2"},{"photo_id":"1366607478","filename":"file4"},{"photo_id":"1366607444","filename":"file1"},{"photo_id":"1366607438","filename":"file0"},{"photo_id":"1366607473","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366607469":["hashtag1","hashtag2"]},{"1366607478":["hashtag1","hashtag2"]},{"1366607483":["hashtag1","hashtag2"]},{"1366607444":["hashtag1","hashtag2"]},{"1366607438":["hashtag1","hashtag2"]},{"1366607473":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366607469, 1366607478, 1366607483, 1366607444, 1366607438, 1366607473)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 138.2434937953949 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:27:02.559950
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/26/image_16062025_23_26_45_10679.jpg', 2), ('/home/nano/Desktop/images/16062025/23/26/image_16062025_23_26_35_9688.jpg', 2), ('/home/nano/Desktop/images/16062025/23/26/image_16062025_23_26_25_9674.jpg', 2), ('/home/nano/Desktop/images/16062025/23/26/image_16062025_23_26_15_10707.jpg', 2), ('/home/nano/Desktop/images/16062025/23/25/image_16062025_23_26_05_9706.jpg', 2), ('/home/nano/Desktop/images/16062025/23/25/image_16062025_23_25_55_9677.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/26/image_16062025_23_26_45_10679.jpg', '/home/nano/Desktop/images/16062025/23/26/image_16062025_23_26_35_9688.jpg', '/home/nano/Desktop/images/16062025/23/26/image_16062025_23_26_25_9674.jpg', '/home/nano/Desktop/images/16062025/23/26/image_16062025_23_26_15_10707.jpg', '/home/nano/Desktop/images/16062025/23/25/image_16062025_23_26_05_9706.jpg', '/home/nano/Desktop/images/16062025/23/25/image_16062025_23_25_55_9677.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/26/image_16062025_23_26_45_10679.jpg
/home/nano/Desktop/images/16062025/23/26/image_16062025_23_26_35_9688.jpg
/home/nano/Desktop/images/16062025/23/26/image_16062025_23_26_25_9674.jpg
/home/nano/Desktop/images/16062025/23/26/image_16062025_23_26_15_10707.jpg
/home/nano/Desktop/images/16062025/23/25/image_16062025_23_26_05_9706.jpg
/home/nano/Desktop/images/16062025/23/25/image_16062025_23_25_55_9677.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366607527","1366607536","1366607517","1366607514","1366607522","1366607539"],"photo_ids_order":["1366607514","1366607517","1366607522","1366607527","1366607536","1366607539"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ce46b5fe8c71b38df859465abdc347c7.jpg","text":"TemporaryFile(/tmp/multipartBody6888341496608604271asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109286870,"filename":"image_16062025_23_26_15_10707.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6ead6dda8f14fce7265cc4303460e299.jpg","text":"TemporaryFile(/tmp/multipartBody4343557315489627846asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109286870,"filename":"image_16062025_23_26_05_9706.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/201bee8239f7a386d8c1ecaf9da2c839.jpg","text":"TemporaryFile(/tmp/multipartBody991902165198837387asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109286870,"filename":"image_16062025_23_26_35_9688.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6aa651e87e78d82fab3f3df6a5f0702a.jpg","text":"TemporaryFile(/tmp/multipartBody2792582890460999796asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109286870,"filename":"image_16062025_23_26_45_10679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/cb2638180dea05a411f2cf0bddfc2b47.jpg","text":"TemporaryFile(/tmp/multipartBody5775472191671366731asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109286870,"filename":"image_16062025_23_26_25_9674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a3d6c0422a9716863cf52805adc1fabb.jpg","text":"TemporaryFile(/tmp/multipartBody3090205212618172266asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109286870,"filename":"image_16062025_23_25_55_9677.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366607522","file1":"1366607517","file0":"1366607514","file4":"1366607536","file5":"1366607539","file3":"1366607527"},"map_files_photo_id_array":[{"photo_id":"1366607539","filename":"file5"},{"photo_id":"1366607522","filename":"file2"},{"photo_id":"1366607536","filename":"file4"},{"photo_id":"1366607517","filename":"file1"},{"photo_id":"1366607514","filename":"file0"},{"photo_id":"1366607527","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366607527":["hashtag1","hashtag2"]},{"1366607536":["hashtag1","hashtag2"]},{"1366607517":["hashtag1","hashtag2"]},{"1366607514":["hashtag1","hashtag2"]},{"1366607522":["hashtag1","hashtag2"]},{"1366607539":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366607527, 1366607536, 1366607517, 1366607514, 1366607522, 1366607539)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 90.65927481651306 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:28:46.967089
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/28/image_16062025_23_28_45_9689.jpg', 2), ('/home/nano/Desktop/images/16062025/23/28/image_16062025_23_28_25_10678.jpg', 2), ('/home/nano/Desktop/images/16062025/23/28/image_16062025_23_28_14_9692.jpg', 2), ('/home/nano/Desktop/images/16062025/23/27/image_16062025_23_28_05_9676.jpg', 2), ('/home/nano/Desktop/images/16062025/23/27/image_16062025_23_27_44_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/23/27/image_16062025_23_27_35_9674.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/28/image_16062025_23_28_45_9689.jpg', '/home/nano/Desktop/images/16062025/23/28/image_16062025_23_28_25_10678.jpg', '/home/nano/Desktop/images/16062025/23/28/image_16062025_23_28_14_9692.jpg', '/home/nano/Desktop/images/16062025/23/27/image_16062025_23_28_05_9676.jpg', '/home/nano/Desktop/images/16062025/23/27/image_16062025_23_27_44_9669.jpg', '/home/nano/Desktop/images/16062025/23/27/image_16062025_23_27_35_9674.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/28/image_16062025_23_28_45_9689.jpg
/home/nano/Desktop/images/16062025/23/28/image_16062025_23_28_25_10678.jpg
/home/nano/Desktop/images/16062025/23/28/image_16062025_23_28_14_9692.jpg
/home/nano/Desktop/images/16062025/23/27/image_16062025_23_28_05_9676.jpg
/home/nano/Desktop/images/16062025/23/27/image_16062025_23_27_44_9669.jpg
/home/nano/Desktop/images/16062025/23/27/image_16062025_23_27_35_9674.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366607571","1366607565","1366607577","1366607556","1366607561","1366607575"],"photo_ids_order":["1366607556","1366607561","1366607565","1366607571","1366607575","1366607577"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/17836d50470f59d3e72c76284b162cf3.jpg","text":"TemporaryFile(/tmp/multipartBody8909066418475516725asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109389999,"filename":"image_16062025_23_28_05_9676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/04e50e6889919d1d2975d5477a5dbfe1.jpg","text":"TemporaryFile(/tmp/multipartBody4139458784187029288asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109389999,"filename":"image_16062025_23_28_14_9692.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0c66c0853d99efae0e8446e4558876da.jpg","text":"TemporaryFile(/tmp/multipartBody6298063853926826901asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109389999,"filename":"image_16062025_23_27_35_9674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7928989d484c2c6ccf5bd5f263fffa8d.jpg","text":"TemporaryFile(/tmp/multipartBody3015174807383922592asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109389999,"filename":"image_16062025_23_28_45_9689.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/689128eacc27b63f1ece81617f3162c9.jpg","text":"TemporaryFile(/tmp/multipartBody6247064689663977304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109389999,"filename":"image_16062025_23_28_25_10678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/51fdebf88e19f6cc02340ccc1dcb589a.jpg","text":"TemporaryFile(/tmp/multipartBody562718366995135470asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109389999,"filename":"image_16062025_23_27_44_9669.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366607565","file1":"1366607561","file0":"1366607556","file4":"1366607575","file5":"1366607577","file3":"1366607571"},"map_files_photo_id_array":[{"photo_id":"1366607577","filename":"file5"},{"photo_id":"1366607565","filename":"file2"},{"photo_id":"1366607575","filename":"file4"},{"photo_id":"1366607561","filename":"file1"},{"photo_id":"1366607556","filename":"file0"},{"photo_id":"1366607571","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366607571":["hashtag1","hashtag2"]},{"1366607565":["hashtag1","hashtag2"]},{"1366607577":["hashtag1","hashtag2"]},{"1366607556":["hashtag1","hashtag2"]},{"1366607561":["hashtag1","hashtag2"]},{"1366607575":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366607571, 1366607565, 1366607577, 1366607556, 1366607561, 1366607575)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 65.26856827735901 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:30:02.731278
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/29/image_16062025_23_29_45_9675.jpg', 2), ('/home/nano/Desktop/images/16062025/23/29/image_16062025_23_29_35_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/23/29/image_16062025_23_29_25_10678.jpg', 2), ('/home/nano/Desktop/images/16062025/23/29/image_16062025_23_29_15_9701.jpg', 2), ('/home/nano/Desktop/images/16062025/23/28/image_16062025_23_29_05_9694.jpg', 2), ('/home/nano/Desktop/images/16062025/23/28/image_16062025_23_28_55_10678.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/29/image_16062025_23_29_45_9675.jpg', '/home/nano/Desktop/images/16062025/23/29/image_16062025_23_29_35_9668.jpg', '/home/nano/Desktop/images/16062025/23/29/image_16062025_23_29_25_10678.jpg', '/home/nano/Desktop/images/16062025/23/29/image_16062025_23_29_15_9701.jpg', '/home/nano/Desktop/images/16062025/23/28/image_16062025_23_29_05_9694.jpg', '/home/nano/Desktop/images/16062025/23/28/image_16062025_23_28_55_10678.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/29/image_16062025_23_29_45_9675.jpg
/home/nano/Desktop/images/16062025/23/29/image_16062025_23_29_35_9668.jpg
/home/nano/Desktop/images/16062025/23/29/image_16062025_23_29_25_10678.jpg
/home/nano/Desktop/images/16062025/23/29/image_16062025_23_29_15_9701.jpg
/home/nano/Desktop/images/16062025/23/28/image_16062025_23_29_05_9694.jpg
/home/nano/Desktop/images/16062025/23/28/image_16062025_23_28_55_10678.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366607646","1366607655","1366607684","1366607674","1366607638","1366607623"],"photo_ids_order":["1366607623","1366607638","1366607646","1366607655","1366607674","1366607684"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0d0005793324b4f60b002cb95403dd95.jpg","text":"TemporaryFile(/tmp/multipartBody8304985737220227879asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109473414,"filename":"image_16062025_23_29_25_10678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5792ceacb47753b3f4b0664cf13294b0.jpg","text":"TemporaryFile(/tmp/multipartBody4255853939443431145asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109473414,"filename":"image_16062025_23_29_15_9701.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/83a41abff42390d9e529761363041a7e.jpg","text":"TemporaryFile(/tmp/multipartBody4940075196502766190asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109473414,"filename":"image_16062025_23_28_55_10678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6a851f362559d200131b24f963467ff5.jpg","text":"TemporaryFile(/tmp/multipartBody8838352992711957452asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109473414,"filename":"image_16062025_23_29_05_9694.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1bc844695db66a75fac8e3e8431b9ab7.jpg","text":"TemporaryFile(/tmp/multipartBody1578666087782634340asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109473414,"filename":"image_16062025_23_29_35_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1f77d4824197f0853244d6d1ca336da8.jpg","text":"TemporaryFile(/tmp/multipartBody1517482962882993099asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109473414,"filename":"image_16062025_23_29_45_9675.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366607646","file1":"1366607638","file0":"1366607623","file4":"1366607674","file5":"1366607684","file3":"1366607655"},"map_files_photo_id_array":[{"photo_id":"1366607684","filename":"file5"},{"photo_id":"1366607646","filename":"file2"},{"photo_id":"1366607674","filename":"file4"},{"photo_id":"1366607638","filename":"file1"},{"photo_id":"1366607623","filename":"file0"},{"photo_id":"1366607655","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366607646":["hashtag1","hashtag2"]},{"1366607655":["hashtag1","hashtag2"]},{"1366607684":["hashtag1","hashtag2"]},{"1366607674":["hashtag1","hashtag2"]},{"1366607638":["hashtag1","hashtag2"]},{"1366607623":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366607646, 1366607655, 1366607684, 1366607674, 1366607638, 1366607623)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 115.75364589691162 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:32:02.856868
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/31/image_16062025_23_31_45_9672.jpg', 2), ('/home/nano/Desktop/images/16062025/23/31/image_16062025_23_31_35_10698.jpg', 2), ('/home/nano/Desktop/images/16062025/23/31/image_16062025_23_31_24_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/23/31/image_16062025_23_31_15_9676.jpg', 2), ('/home/nano/Desktop/images/16062025/23/30/image_16062025_23_31_05_10689.jpg', 2), ('/home/nano/Desktop/images/16062025/23/30/image_16062025_23_30_45_9673.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/31/image_16062025_23_31_45_9672.jpg', '/home/nano/Desktop/images/16062025/23/31/image_16062025_23_31_35_10698.jpg', '/home/nano/Desktop/images/16062025/23/31/image_16062025_23_31_24_9677.jpg', '/home/nano/Desktop/images/16062025/23/31/image_16062025_23_31_15_9676.jpg', '/home/nano/Desktop/images/16062025/23/30/image_16062025_23_31_05_10689.jpg', '/home/nano/Desktop/images/16062025/23/30/image_16062025_23_30_45_9673.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/31/image_16062025_23_31_45_9672.jpg
/home/nano/Desktop/images/16062025/23/31/image_16062025_23_31_35_10698.jpg
/home/nano/Desktop/images/16062025/23/31/image_16062025_23_31_24_9677.jpg
/home/nano/Desktop/images/16062025/23/31/image_16062025_23_31_15_9676.jpg
/home/nano/Desktop/images/16062025/23/30/image_16062025_23_31_05_10689.jpg
/home/nano/Desktop/images/16062025/23/30/image_16062025_23_30_45_9673.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366607710","1366607736","1366607724","1366607706","1366607698","1366607702"],"photo_ids_order":["1366607698","1366607702","1366607706","1366607710","1366607724","1366607736"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/feb6462c3c8a63500b10d07b85aedf31.jpg","text":"TemporaryFile(/tmp/multipartBody2467211058144677605asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109585140,"filename":"image_16062025_23_31_15_9676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/47aee499b0bdc22ed88b5e90a17a1de4.jpg","text":"TemporaryFile(/tmp/multipartBody759749230523243947asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109585140,"filename":"image_16062025_23_30_45_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/07fc7d9bf728c823dedf50edaea99c7e.jpg","text":"TemporaryFile(/tmp/multipartBody7369342048290795693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109585140,"filename":"image_16062025_23_31_05_10689.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/664c2a9afbd8ba76223ed09cd4884156.jpg","text":"TemporaryFile(/tmp/multipartBody2768249322536776630asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109585140,"filename":"image_16062025_23_31_24_9677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/29f1dab0b6fa2ac232787b16990f94e6.jpg","text":"TemporaryFile(/tmp/multipartBody3492741566112174192asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109585140,"filename":"image_16062025_23_31_45_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e164d6dfd7c5020d836dc58df429b56c.jpg","text":"TemporaryFile(/tmp/multipartBody6004291540169377581asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109585140,"filename":"image_16062025_23_31_35_10698.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366607706","file1":"1366607702","file0":"1366607698","file4":"1366607724","file5":"1366607736","file3":"1366607710"},"map_files_photo_id_array":[{"photo_id":"1366607736","filename":"file5"},{"photo_id":"1366607706","filename":"file2"},{"photo_id":"1366607724","filename":"file4"},{"photo_id":"1366607702","filename":"file1"},{"photo_id":"1366607698","filename":"file0"},{"photo_id":"1366607710","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366607710":["hashtag1","hashtag2"]},{"1366607736":["hashtag1","hashtag2"]},{"1366607724":["hashtag1","hashtag2"]},{"1366607706":["hashtag1","hashtag2"]},{"1366607698":["hashtag1","hashtag2"]},{"1366607702":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366607710, 1366607736, 1366607724, 1366607706, 1366607698, 1366607702)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 93.25249457359314 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:33:47.451667
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/33/image_16062025_23_33_45_9657.jpg', 2), ('/home/nano/Desktop/images/16062025/23/33/image_16062025_23_33_35_10668.jpg', 2), ('/home/nano/Desktop/images/16062025/23/33/image_16062025_23_33_25_9654.jpg', 2), ('/home/nano/Desktop/images/16062025/23/33/image_16062025_23_33_15_9668.jpg', 2), ('/home/nano/Desktop/images/16062025/23/32/image_16062025_23_33_05_10697.jpg', 2), ('/home/nano/Desktop/images/16062025/23/32/image_16062025_23_32_55_9674.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/33/image_16062025_23_33_45_9657.jpg', '/home/nano/Desktop/images/16062025/23/33/image_16062025_23_33_35_10668.jpg', '/home/nano/Desktop/images/16062025/23/33/image_16062025_23_33_25_9654.jpg', '/home/nano/Desktop/images/16062025/23/33/image_16062025_23_33_15_9668.jpg', '/home/nano/Desktop/images/16062025/23/32/image_16062025_23_33_05_10697.jpg', '/home/nano/Desktop/images/16062025/23/32/image_16062025_23_32_55_9674.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/33/image_16062025_23_33_45_9657.jpg
/home/nano/Desktop/images/16062025/23/33/image_16062025_23_33_35_10668.jpg
/home/nano/Desktop/images/16062025/23/33/image_16062025_23_33_25_9654.jpg
/home/nano/Desktop/images/16062025/23/33/image_16062025_23_33_15_9668.jpg
/home/nano/Desktop/images/16062025/23/32/image_16062025_23_33_05_10697.jpg
/home/nano/Desktop/images/16062025/23/32/image_16062025_23_32_55_9674.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366607778","1366607766","1366607774","1366607771","1366607750","1366607761"],"photo_ids_order":["1366607750","1366607761","1366607766","1366607771","1366607774","1366607778"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/45dcfa2d4c08ca94257a6269757e9096.jpg","text":"TemporaryFile(/tmp/multipartBody8313697119898031943asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109690090,"filename":"image_16062025_23_32_55_9674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a127df0c1dd71f6c149f504ddafe1bd8.jpg","text":"TemporaryFile(/tmp/multipartBody6990485385299127200asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109690090,"filename":"image_16062025_23_33_25_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/240b14bf7bdc130be06fcf9586c31e97.jpg","text":"TemporaryFile(/tmp/multipartBody371285764189299995asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109690090,"filename":"image_16062025_23_33_05_10697.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/56fdb178deaf782f1c5402a841636333.jpg","text":"TemporaryFile(/tmp/multipartBody8495099453877965226asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109690090,"filename":"image_16062025_23_33_15_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/16678cbfa2166783137d642b7bcc6371.jpg","text":"TemporaryFile(/tmp/multipartBody6224064910000063554asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109690090,"filename":"image_16062025_23_33_45_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5c83105a45c336af8efe67c876e93263.jpg","text":"TemporaryFile(/tmp/multipartBody150501135224946793asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109690090,"filename":"image_16062025_23_33_35_10668.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366607766","file1":"1366607761","file0":"1366607750","file4":"1366607774","file5":"1366607778","file3":"1366607771"},"map_files_photo_id_array":[{"photo_id":"1366607778","filename":"file5"},{"photo_id":"1366607766","filename":"file2"},{"photo_id":"1366607774","filename":"file4"},{"photo_id":"1366607761","filename":"file1"},{"photo_id":"1366607750","filename":"file0"},{"photo_id":"1366607771","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366607778":["hashtag1","hashtag2"]},{"1366607766":["hashtag1","hashtag2"]},{"1366607774":["hashtag1","hashtag2"]},{"1366607771":["hashtag1","hashtag2"]},{"1366607750":["hashtag1","hashtag2"]},{"1366607761":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366607778, 1366607766, 1366607774, 1366607771, 1366607750, 1366607761)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 117.33319211006165 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:35:47.681180
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/35/image_16062025_23_35_45_9629.jpg', 2), ('/home/nano/Desktop/images/16062025/23/35/image_16062025_23_35_35_9625.jpg', 2), ('/home/nano/Desktop/images/16062025/23/35/image_16062025_23_35_25_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/23/33/image_16062025_23_34_05_10640.jpg', 2), ('/home/nano/Desktop/images/16062025/23/33/image_16062025_23_33_55_9655.jpg', 2), ('/home/nano/Desktop/images/16062025/23/32/image_16062025_23_32_35_10678.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/35/image_16062025_23_35_45_9629.jpg', '/home/nano/Desktop/images/16062025/23/35/image_16062025_23_35_35_9625.jpg', '/home/nano/Desktop/images/16062025/23/35/image_16062025_23_35_25_10618.jpg', '/home/nano/Desktop/images/16062025/23/33/image_16062025_23_34_05_10640.jpg', '/home/nano/Desktop/images/16062025/23/33/image_16062025_23_33_55_9655.jpg', '/home/nano/Desktop/images/16062025/23/32/image_16062025_23_32_35_10678.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/35/image_16062025_23_35_45_9629.jpg
/home/nano/Desktop/images/16062025/23/35/image_16062025_23_35_35_9625.jpg
/home/nano/Desktop/images/16062025/23/35/image_16062025_23_35_25_10618.jpg
/home/nano/Desktop/images/16062025/23/33/image_16062025_23_34_05_10640.jpg
/home/nano/Desktop/images/16062025/23/33/image_16062025_23_33_55_9655.jpg
/home/nano/Desktop/images/16062025/23/32/image_16062025_23_32_35_10678.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366607803","1366607793","1366607811","1366607798","1366607831","1366607815"],"photo_ids_order":["1366607793","1366607798","1366607803","1366607811","1366607815","1366607831"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/da64cbcbe4ce6f39d3f36055f64afefb.jpg","text":"TemporaryFile(/tmp/multipartBody7095590774267972693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109815387,"filename":"image_16062025_23_35_25_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bf945237130cefe072f7514c23c99e13.jpg","text":"TemporaryFile(/tmp/multipartBody6093918387954321588asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109815387,"filename":"image_16062025_23_35_45_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0523fe801f2702015728294f6469e465.jpg","text":"TemporaryFile(/tmp/multipartBody3158484990975805550asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109815387,"filename":"image_16062025_23_34_05_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/be6f2aed1f0670ca403e0de048e64d6c.jpg","text":"TemporaryFile(/tmp/multipartBody833321219118489188asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109815387,"filename":"image_16062025_23_35_35_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8506d3a2abb5961b9ae6012acaf68cbb.jpg","text":"TemporaryFile(/tmp/multipartBody4626986930158086783asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109815387,"filename":"image_16062025_23_32_35_10678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/3d5aa5fd1e8d60ae5d5632f56ba29437.jpg","text":"TemporaryFile(/tmp/multipartBody2508317215783738289asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109815387,"filename":"image_16062025_23_33_55_9655.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366607803","file1":"1366607798","file0":"1366607793","file4":"1366607815","file5":"1366607831","file3":"1366607811"},"map_files_photo_id_array":[{"photo_id":"1366607831","filename":"file5"},{"photo_id":"1366607803","filename":"file2"},{"photo_id":"1366607815","filename":"file4"},{"photo_id":"1366607798","filename":"file1"},{"photo_id":"1366607793","filename":"file0"},{"photo_id":"1366607811","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366607803":["hashtag1","hashtag2"]},{"1366607793":["hashtag1","hashtag2"]},{"1366607811":["hashtag1","hashtag2"]},{"1366607798":["hashtag1","hashtag2"]},{"1366607831":["hashtag1","hashtag2"]},{"1366607815":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366607803, 1366607793, 1366607811, 1366607798, 1366607831, 1366607815)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 109.59205961227417 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:37:46.902955
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/37/image_16062025_23_37_45_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/23/36/image_16062025_23_36_55_9619.jpg', 2), ('/home/nano/Desktop/images/16062025/23/36/image_16062025_23_36_45_10623.jpg', 2), ('/home/nano/Desktop/images/16062025/23/35/image_16062025_23_35_55_10624.jpg', 2), ('/home/nano/Desktop/images/16062025/23/32/image_16062025_23_32_25_9670.jpg', 2), ('/home/nano/Desktop/images/16062025/23/32/image_16062025_23_32_15_9684.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/37/image_16062025_23_37_45_10624.jpg', '/home/nano/Desktop/images/16062025/23/36/image_16062025_23_36_55_9619.jpg', '/home/nano/Desktop/images/16062025/23/36/image_16062025_23_36_45_10623.jpg', '/home/nano/Desktop/images/16062025/23/35/image_16062025_23_35_55_10624.jpg', '/home/nano/Desktop/images/16062025/23/32/image_16062025_23_32_25_9670.jpg', '/home/nano/Desktop/images/16062025/23/32/image_16062025_23_32_15_9684.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/37/image_16062025_23_37_45_10624.jpg
/home/nano/Desktop/images/16062025/23/36/image_16062025_23_36_55_9619.jpg
/home/nano/Desktop/images/16062025/23/36/image_16062025_23_36_45_10623.jpg
/home/nano/Desktop/images/16062025/23/35/image_16062025_23_35_55_10624.jpg
/home/nano/Desktop/images/16062025/23/32/image_16062025_23_32_25_9670.jpg
/home/nano/Desktop/images/16062025/23/32/image_16062025_23_32_15_9684.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366607905","1366607963","1366608020","1366608154","1366608061","1366608109"],"photo_ids_order":["1366607905","1366607963","1366608020","1366608061","1366608109","1366608154"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bad2cdc9f7152181ec6f59e3ab8652e2.jpg","text":"TemporaryFile(/tmp/multipartBody6669482597043255953asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109929124,"filename":"image_16062025_23_37_45_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/773339e7fc649bd2c83b1ff8d2b7da12.jpg","text":"TemporaryFile(/tmp/multipartBody1657039592656066852asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109929124,"filename":"image_16062025_23_36_55_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ca3652c48ece42dd4f85813821fac743.jpg","text":"TemporaryFile(/tmp/multipartBody4418856742433543415asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109929124,"filename":"image_16062025_23_36_45_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4253687fbeb5477ee25b01896d4c3cd2.jpg","text":"TemporaryFile(/tmp/multipartBody8769424239269628697asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109929124,"filename":"image_16062025_23_32_15_9684.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1d734b3d5ba1f3c43ce180d3ab8eac5d.jpg","text":"TemporaryFile(/tmp/multipartBody4849435205632222440asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109929124,"filename":"image_16062025_23_35_55_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a04c35467164eaa3814d55e8caeefb88.jpg","text":"TemporaryFile(/tmp/multipartBody8959569736914850208asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750109929124,"filename":"image_16062025_23_32_25_9670.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366608020","file1":"1366607963","file0":"1366607905","file4":"1366608109","file5":"1366608154","file3":"1366608061"},"map_files_photo_id_array":[{"photo_id":"1366608154","filename":"file5"},{"photo_id":"1366608020","filename":"file2"},{"photo_id":"1366608109","filename":"file4"},{"photo_id":"1366607963","filename":"file1"},{"photo_id":"1366607905","filename":"file0"},{"photo_id":"1366608061","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366607905":["hashtag1","hashtag2"]},{"1366607963":["hashtag1","hashtag2"]},{"1366608020":["hashtag1","hashtag2"]},{"1366608154":["hashtag1","hashtag2"]},{"1366608061":["hashtag1","hashtag2"]},{"1366608109":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366607905, 1366607963, 1366608020, 1366608154, 1366608061, 1366608109)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 71.40845561027527 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:39:02.952095
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/38/image_16062025_23_38_45_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/23/38/image_16062025_23_38_35_10620.jpg', 2), ('/home/nano/Desktop/images/16062025/23/38/image_16062025_23_38_25_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/23/37/image_16062025_23_37_55_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/23/31/image_16062025_23_32_05_10713.jpg', 2), ('/home/nano/Desktop/images/16062025/23/31/image_16062025_23_31_54_9688.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/38/image_16062025_23_38_45_9615.jpg', '/home/nano/Desktop/images/16062025/23/38/image_16062025_23_38_35_10620.jpg', '/home/nano/Desktop/images/16062025/23/38/image_16062025_23_38_25_9615.jpg', '/home/nano/Desktop/images/16062025/23/37/image_16062025_23_37_55_9612.jpg', '/home/nano/Desktop/images/16062025/23/31/image_16062025_23_32_05_10713.jpg', '/home/nano/Desktop/images/16062025/23/31/image_16062025_23_31_54_9688.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/38/image_16062025_23_38_45_9615.jpg
/home/nano/Desktop/images/16062025/23/38/image_16062025_23_38_35_10620.jpg
/home/nano/Desktop/images/16062025/23/38/image_16062025_23_38_25_9615.jpg
/home/nano/Desktop/images/16062025/23/37/image_16062025_23_37_55_9612.jpg
/home/nano/Desktop/images/16062025/23/31/image_16062025_23_32_05_10713.jpg
/home/nano/Desktop/images/16062025/23/31/image_16062025_23_31_54_9688.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366608261","1366608315","1366608299","1366608269","1366608277","1366608310"],"photo_ids_order":["1366608261","1366608269","1366608277","1366608299","1366608310","1366608315"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c32a4edb4b10171c84a9eb44dc44f32d.jpg","text":"TemporaryFile(/tmp/multipartBody1372906030479839829asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110006501,"filename":"image_16062025_23_38_45_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/4d278799475b1c98544ebad93a10ed36.jpg","text":"TemporaryFile(/tmp/multipartBody259785396016594333asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110006501,"filename":"image_16062025_23_31_54_9688.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e7afedaa2543119267de216f91984619.jpg","text":"TemporaryFile(/tmp/multipartBody8268213028436466404asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110006501,"filename":"image_16062025_23_37_55_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a79f9c7e18c585e8d5cc42cefa70f51f.jpg","text":"TemporaryFile(/tmp/multipartBody3020278316542783396asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110006501,"filename":"image_16062025_23_38_35_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0413b3b859857b9a9348f6873481d68f.jpg","text":"TemporaryFile(/tmp/multipartBody1613220429768285638asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110006501,"filename":"image_16062025_23_38_25_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a842c2f48f1042470350db57cc7058b3.jpg","text":"TemporaryFile(/tmp/multipartBody1909332550711904144asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110006501,"filename":"image_16062025_23_32_05_10713.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366608277","file1":"1366608269","file0":"1366608261","file4":"1366608310","file5":"1366608315","file3":"1366608299"},"map_files_photo_id_array":[{"photo_id":"1366608315","filename":"file5"},{"photo_id":"1366608277","filename":"file2"},{"photo_id":"1366608310","filename":"file4"},{"photo_id":"1366608269","filename":"file1"},{"photo_id":"1366608261","filename":"file0"},{"photo_id":"1366608299","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366608261":["hashtag1","hashtag2"]},{"1366608315":["hashtag1","hashtag2"]},{"1366608299":["hashtag1","hashtag2"]},{"1366608269":["hashtag1","hashtag2"]},{"1366608277":["hashtag1","hashtag2"]},{"1366608310":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366608261, 1366608315, 1366608299, 1366608269, 1366608277, 1366608310)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 130.37041354179382 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:41:17.382497
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/41/image_16062025_23_41_45_9617.jpg', 2), ('/home/nano/Desktop/images/16062025/23/40/image_16062025_23_40_55_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/23/40/image_16062025_23_40_45_10619.jpg', 2), ('/home/nano/Desktop/images/16062025/23/40/image_16062025_23_40_15_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/23/39/image_16062025_23_40_05_9618.jpg', 2), ('/home/nano/Desktop/images/16062025/23/39/image_16062025_23_39_25_10621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/41/image_16062025_23_41_45_9617.jpg', '/home/nano/Desktop/images/16062025/23/40/image_16062025_23_40_55_9616.jpg', '/home/nano/Desktop/images/16062025/23/40/image_16062025_23_40_45_10619.jpg', '/home/nano/Desktop/images/16062025/23/40/image_16062025_23_40_15_10643.jpg', '/home/nano/Desktop/images/16062025/23/39/image_16062025_23_40_05_9618.jpg', '/home/nano/Desktop/images/16062025/23/39/image_16062025_23_39_25_10621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/41/image_16062025_23_41_45_9617.jpg
/home/nano/Desktop/images/16062025/23/40/image_16062025_23_40_55_9616.jpg
/home/nano/Desktop/images/16062025/23/40/image_16062025_23_40_45_10619.jpg
/home/nano/Desktop/images/16062025/23/40/image_16062025_23_40_15_10643.jpg
/home/nano/Desktop/images/16062025/23/39/image_16062025_23_40_05_9618.jpg
/home/nano/Desktop/images/16062025/23/39/image_16062025_23_39_25_10621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366608708","1366608803","1366608329","1366608475","1366608337","1366608811"],"photo_ids_order":["1366608329","1366608337","1366608475","1366608708","1366608803","1366608811"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2ac62dbfa44c60dcf21300cbd017389a.jpg","text":"TemporaryFile(/tmp/multipartBody1250109112691091049asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110139558,"filename":"image_16062025_23_40_15_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/649edff5b4f88dd8bb57de5289f7a466.jpg","text":"TemporaryFile(/tmp/multipartBody8160737699174890165asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110139558,"filename":"image_16062025_23_40_05_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/85902972bb2e0c4008e325a2f0f63647.jpg","text":"TemporaryFile(/tmp/multipartBody8954865385250087479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110139558,"filename":"image_16062025_23_41_45_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/42f5472ad676d8ab4188e4961204299e.jpg","text":"TemporaryFile(/tmp/multipartBody4178262132575905240asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110139558,"filename":"image_16062025_23_40_45_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/55c94145593863b88fac7e558788b7a2.jpg","text":"TemporaryFile(/tmp/multipartBody7243731662740728025asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110139558,"filename":"image_16062025_23_40_55_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/15c1511e3a196b14f3aca373a3c2313a.jpg","text":"TemporaryFile(/tmp/multipartBody600622675759560222asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110139558,"filename":"image_16062025_23_39_25_10621.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366608475","file1":"1366608337","file0":"1366608329","file4":"1366608803","file5":"1366608811","file3":"1366608708"},"map_files_photo_id_array":[{"photo_id":"1366608811","filename":"file5"},{"photo_id":"1366608475","filename":"file2"},{"photo_id":"1366608803","filename":"file4"},{"photo_id":"1366608337","filename":"file1"},{"photo_id":"1366608329","filename":"file0"},{"photo_id":"1366608708","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366608708":["hashtag1","hashtag2"]},{"1366608803":["hashtag1","hashtag2"]},{"1366608329":["hashtag1","hashtag2"]},{"1366608475":["hashtag1","hashtag2"]},{"1366608337":["hashtag1","hashtag2"]},{"1366608811":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366608708, 1366608803, 1366608329, 1366608475, 1366608337, 1366608811)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 139.47321248054504 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:43:47.577800
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/39/image_16062025_23_39_15_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/23/38/image_16062025_23_38_54_9616.jpg', 2), ('/home/nano/Desktop/images/16062025/23/30/image_16062025_23_30_35_9677.jpg', 2), ('/home/nano/Desktop/images/16062025/23/29/image_16062025_23_30_05_9700.jpg', 2), ('/home/nano/Desktop/images/16062025/23/29/image_16062025_23_29_55_10678.jpg', 2), ('/home/nano/Desktop/images/16062025/23/27/image_16062025_23_27_15_10708.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/39/image_16062025_23_39_15_9612.jpg', '/home/nano/Desktop/images/16062025/23/38/image_16062025_23_38_54_9616.jpg', '/home/nano/Desktop/images/16062025/23/30/image_16062025_23_30_35_9677.jpg', '/home/nano/Desktop/images/16062025/23/29/image_16062025_23_30_05_9700.jpg', '/home/nano/Desktop/images/16062025/23/29/image_16062025_23_29_55_10678.jpg', '/home/nano/Desktop/images/16062025/23/27/image_16062025_23_27_15_10708.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/39/image_16062025_23_39_15_9612.jpg
/home/nano/Desktop/images/16062025/23/38/image_16062025_23_38_54_9616.jpg
/home/nano/Desktop/images/16062025/23/30/image_16062025_23_30_35_9677.jpg
/home/nano/Desktop/images/16062025/23/29/image_16062025_23_30_05_9700.jpg
/home/nano/Desktop/images/16062025/23/29/image_16062025_23_29_55_10678.jpg
/home/nano/Desktop/images/16062025/23/27/image_16062025_23_27_15_10708.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366608978","1366608998","1366608992","1366609003","1366608949","1366608987"],"photo_ids_order":["1366608949","1366608978","1366608987","1366608992","1366608998","1366609003"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2fa678ad5dfd0d233699859c4d274050.jpg","text":"TemporaryFile(/tmp/multipartBody7340511688616234285asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110289815,"filename":"image_16062025_23_38_54_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/86503fc417f93b92c2d210de5c379fe7.jpg","text":"TemporaryFile(/tmp/multipartBody4136247881231597546asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110289815,"filename":"image_16062025_23_29_55_10678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2d37148a7219fbe8bc20ae721c935109.jpg","text":"TemporaryFile(/tmp/multipartBody2445340689811260155asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110289815,"filename":"image_16062025_23_30_05_9700.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/eac5a29f6992f7eb817d188c2a6210cf.jpg","text":"TemporaryFile(/tmp/multipartBody7407603580056660816asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110289815,"filename":"image_16062025_23_27_15_10708.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b403a6d53dc7c4dae3af57daeafa3d44.jpg","text":"TemporaryFile(/tmp/multipartBody6530872898339313805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110289815,"filename":"image_16062025_23_39_15_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8fe09573f3522cc48e9a6d8e469122ab.jpg","text":"TemporaryFile(/tmp/multipartBody7960918965788626179asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110289815,"filename":"image_16062025_23_30_35_9677.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366608987","file1":"1366608978","file0":"1366608949","file4":"1366608998","file5":"1366609003","file3":"1366608992"},"map_files_photo_id_array":[{"photo_id":"1366609003","filename":"file5"},{"photo_id":"1366608987","filename":"file2"},{"photo_id":"1366608998","filename":"file4"},{"photo_id":"1366608978","filename":"file1"},{"photo_id":"1366608949","filename":"file0"},{"photo_id":"1366608992","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366608978":["hashtag1","hashtag2"]},{"1366608998":["hashtag1","hashtag2"]},{"1366608992":["hashtag1","hashtag2"]},{"1366609003":["hashtag1","hashtag2"]},{"1366608949":["hashtag1","hashtag2"]},{"1366608987":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366608978, 1366608998, 1366608992, 1366609003, 1366608949, 1366608987)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 69.31613206863403 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:45:02.490212
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/44/image_16062025_23_44_25_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/23/44/image_16062025_23_44_15_10642.jpg', 2), ('/home/nano/Desktop/images/16062025/23/43/image_16062025_23_44_05_9621.jpg', 2), ('/home/nano/Desktop/images/16062025/23/41/image_16062025_23_41_55_9628.jpg', 2), ('/home/nano/Desktop/images/16062025/23/26/image_16062025_23_27_05_9685.jpg', 2), ('/home/nano/Desktop/images/16062025/23/26/image_16062025_23_26_55_9671.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/44/image_16062025_23_44_25_9615.jpg', '/home/nano/Desktop/images/16062025/23/44/image_16062025_23_44_15_10642.jpg', '/home/nano/Desktop/images/16062025/23/43/image_16062025_23_44_05_9621.jpg', '/home/nano/Desktop/images/16062025/23/41/image_16062025_23_41_55_9628.jpg', '/home/nano/Desktop/images/16062025/23/26/image_16062025_23_27_05_9685.jpg', '/home/nano/Desktop/images/16062025/23/26/image_16062025_23_26_55_9671.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/44/image_16062025_23_44_25_9615.jpg
/home/nano/Desktop/images/16062025/23/44/image_16062025_23_44_15_10642.jpg
/home/nano/Desktop/images/16062025/23/43/image_16062025_23_44_05_9621.jpg
/home/nano/Desktop/images/16062025/23/41/image_16062025_23_41_55_9628.jpg
/home/nano/Desktop/images/16062025/23/26/image_16062025_23_27_05_9685.jpg
/home/nano/Desktop/images/16062025/23/26/image_16062025_23_26_55_9671.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366609026","1366609011","1366609031","1366609039","1366609015","1366609020"],"photo_ids_order":["1366609011","1366609015","1366609020","1366609026","1366609031","1366609039"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1bc80e01a81d968db44da85e8297f70f.jpg","text":"TemporaryFile(/tmp/multipartBody4367124069635358000asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110366056,"filename":"image_16062025_23_41_55_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/2700dd5fbed11787a7c0de28ef3260bd.jpg","text":"TemporaryFile(/tmp/multipartBody1380149387279005643asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110366056,"filename":"image_16062025_23_44_25_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d61ba280bce48018286385a6a6665204.jpg","text":"TemporaryFile(/tmp/multipartBody8998670003588476958asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110366056,"filename":"image_16062025_23_27_05_9685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a91b5cd9a6af31e6906f86aa317f47d0.jpg","text":"TemporaryFile(/tmp/multipartBody8813948935400353220asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110366056,"filename":"image_16062025_23_26_55_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9a080aa5c3ea4d61c2c52fada23e0875.jpg","text":"TemporaryFile(/tmp/multipartBody3666341098496058057asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110366056,"filename":"image_16062025_23_44_15_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6e92cb275d58e8b9d9fa9e99363a8382.jpg","text":"TemporaryFile(/tmp/multipartBody3671485799199648666asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110366056,"filename":"image_16062025_23_44_05_9621.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366609020","file1":"1366609015","file0":"1366609011","file4":"1366609031","file5":"1366609039","file3":"1366609026"},"map_files_photo_id_array":[{"photo_id":"1366609039","filename":"file5"},{"photo_id":"1366609020","filename":"file2"},{"photo_id":"1366609031","filename":"file4"},{"photo_id":"1366609015","filename":"file1"},{"photo_id":"1366609011","filename":"file0"},{"photo_id":"1366609026","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366609026":["hashtag1","hashtag2"]},{"1366609011":["hashtag1","hashtag2"]},{"1366609031":["hashtag1","hashtag2"]},{"1366609039":["hashtag1","hashtag2"]},{"1366609015":["hashtag1","hashtag2"]},{"1366609020":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366609026, 1366609011, 1366609031, 1366609039, 1366609015, 1366609020)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 92.35849285125732 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:46:46.909390
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/46/image_16062025_23_46_35_10626.jpg', 2), ('/home/nano/Desktop/images/16062025/23/45/image_16062025_23_45_45_9611.jpg', 2), ('/home/nano/Desktop/images/16062025/23/45/image_16062025_23_45_35_10622.jpg', 2), ('/home/nano/Desktop/images/16062025/23/44/image_16062025_23_44_35_9608.jpg', 2), ('/home/nano/Desktop/images/16062025/23/25/image_16062025_23_25_45_10679.jpg', 2), ('/home/nano/Desktop/images/16062025/23/25/image_16062025_23_25_34_9669.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/46/image_16062025_23_46_35_10626.jpg', '/home/nano/Desktop/images/16062025/23/45/image_16062025_23_45_45_9611.jpg', '/home/nano/Desktop/images/16062025/23/45/image_16062025_23_45_35_10622.jpg', '/home/nano/Desktop/images/16062025/23/44/image_16062025_23_44_35_9608.jpg', '/home/nano/Desktop/images/16062025/23/25/image_16062025_23_25_45_10679.jpg', '/home/nano/Desktop/images/16062025/23/25/image_16062025_23_25_34_9669.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/46/image_16062025_23_46_35_10626.jpg
/home/nano/Desktop/images/16062025/23/45/image_16062025_23_45_45_9611.jpg
/home/nano/Desktop/images/16062025/23/45/image_16062025_23_45_35_10622.jpg
/home/nano/Desktop/images/16062025/23/44/image_16062025_23_44_35_9608.jpg
/home/nano/Desktop/images/16062025/23/25/image_16062025_23_25_45_10679.jpg
/home/nano/Desktop/images/16062025/23/25/image_16062025_23_25_34_9669.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366609088","1366609055","1366609096","1366609075","1366609084","1366609066"],"photo_ids_order":["1366609055","1366609066","1366609075","1366609084","1366609088","1366609096"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/51fbadaa0ca4e1a85cb9d54b4fe220a0.jpg","text":"TemporaryFile(/tmp/multipartBody1183078740048520424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110469155,"filename":"image_16062025_23_25_45_10679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/8300f7ac071e7cf8223a684bbc9607c6.jpg","text":"TemporaryFile(/tmp/multipartBody4486684899565437297asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110469155,"filename":"image_16062025_23_46_35_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5a47ebbcf85486f5442ced442bb590b0.jpg","text":"TemporaryFile(/tmp/multipartBody5371637472445194349asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110469155,"filename":"image_16062025_23_25_34_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/b2463aada0f9562b36d8a50018fc9ac7.jpg","text":"TemporaryFile(/tmp/multipartBody5657375154382643566asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110469155,"filename":"image_16062025_23_45_35_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c29b6f2f52d18f4a8d6d979eeb51b148.jpg","text":"TemporaryFile(/tmp/multipartBody4331537911540210831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110469155,"filename":"image_16062025_23_44_35_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/e81b7a7ce865032a926720fab9a5c721.jpg","text":"TemporaryFile(/tmp/multipartBody4319252162761235495asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110469155,"filename":"image_16062025_23_45_45_9611.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366609075","file1":"1366609066","file0":"1366609055","file4":"1366609088","file5":"1366609096","file3":"1366609084"},"map_files_photo_id_array":[{"photo_id":"1366609096","filename":"file5"},{"photo_id":"1366609075","filename":"file2"},{"photo_id":"1366609088","filename":"file4"},{"photo_id":"1366609066","filename":"file1"},{"photo_id":"1366609055","filename":"file0"},{"photo_id":"1366609084","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366609088":["hashtag1","hashtag2"]},{"1366609055":["hashtag1","hashtag2"]},{"1366609096":["hashtag1","hashtag2"]},{"1366609075":["hashtag1","hashtag2"]},{"1366609084":["hashtag1","hashtag2"]},{"1366609066":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366609088, 1366609055, 1366609096, 1366609075, 1366609084, 1366609066)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 140.70470881462097 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:49:17.213490
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/49/image_16062025_23_49_35_10621.jpg', 2), ('/home/nano/Desktop/images/16062025/23/49/image_16062025_23_49_15_9623.jpg', 2), ('/home/nano/Desktop/images/16062025/23/48/image_16062025_23_49_05_10628.jpg', 2), ('/home/nano/Desktop/images/16062025/23/48/image_16062025_23_48_25_9615.jpg', 2), ('/home/nano/Desktop/images/16062025/23/46/image_16062025_23_46_45_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/23/25/image_16062025_23_25_25_9671.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/49/image_16062025_23_49_35_10621.jpg', '/home/nano/Desktop/images/16062025/23/49/image_16062025_23_49_15_9623.jpg', '/home/nano/Desktop/images/16062025/23/48/image_16062025_23_49_05_10628.jpg', '/home/nano/Desktop/images/16062025/23/48/image_16062025_23_48_25_9615.jpg', '/home/nano/Desktop/images/16062025/23/46/image_16062025_23_46_45_9612.jpg', '/home/nano/Desktop/images/16062025/23/25/image_16062025_23_25_25_9671.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/49/image_16062025_23_49_35_10621.jpg
/home/nano/Desktop/images/16062025/23/49/image_16062025_23_49_15_9623.jpg
/home/nano/Desktop/images/16062025/23/48/image_16062025_23_49_05_10628.jpg
/home/nano/Desktop/images/16062025/23/48/image_16062025_23_48_25_9615.jpg
/home/nano/Desktop/images/16062025/23/46/image_16062025_23_46_45_9612.jpg
/home/nano/Desktop/images/16062025/23/25/image_16062025_23_25_25_9671.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366609151","1366609141","1366609135","1366609129","1366609146","1366609155"],"photo_ids_order":["1366609129","1366609135","1366609141","1366609146","1366609151","1366609155"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/0136cee85de49fd1b602017a0beb2f12.jpg","text":"TemporaryFile(/tmp/multipartBody6278198952632272575asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110641205,"filename":"image_16062025_23_46_45_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/5f27f6990dce424d036e4166192cbeb9.jpg","text":"TemporaryFile(/tmp/multipartBody8244007457873904872asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110641205,"filename":"image_16062025_23_49_05_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/bd66f7124d41076778b6f4c32f1f058c.jpg","text":"TemporaryFile(/tmp/multipartBody7578661727524608133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110641205,"filename":"image_16062025_23_49_15_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/56c1ebe15a3e37a14053486e93a39ca4.jpg","text":"TemporaryFile(/tmp/multipartBody4734860842852515550asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110641205,"filename":"image_16062025_23_49_35_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/a18df3ff6c3464e43879b386a970c79e.jpg","text":"TemporaryFile(/tmp/multipartBody3815968597861308299asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110641205,"filename":"image_16062025_23_48_25_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1c0b834003155b6733890acd4e1eae89.jpg","text":"TemporaryFile(/tmp/multipartBody3797288832549559320asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110641205,"filename":"image_16062025_23_25_25_9671.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366609141","file1":"1366609135","file0":"1366609129","file4":"1366609151","file5":"1366609155","file3":"1366609146"},"map_files_photo_id_array":[{"photo_id":"1366609155","filename":"file5"},{"photo_id":"1366609141","filename":"file2"},{"photo_id":"1366609151","filename":"file4"},{"photo_id":"1366609135","filename":"file1"},{"photo_id":"1366609129","filename":"file0"},{"photo_id":"1366609146","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366609151":["hashtag1","hashtag2"]},{"1366609141":["hashtag1","hashtag2"]},{"1366609135":["hashtag1","hashtag2"]},{"1366609129":["hashtag1","hashtag2"]},{"1366609146":["hashtag1","hashtag2"]},{"1366609155":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366609151, 1366609141, 1366609135, 1366609129, 1366609146, 1366609155)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 106.922780752182 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:51:17.419952
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/51/image_16062025_23_51_45_10618.jpg', 2), ('/home/nano/Desktop/images/16062025/23/51/image_16062025_23_51_35_9613.jpg', 2), ('/home/nano/Desktop/images/16062025/23/51/image_16062025_23_51_25_10627.jpg', 2), ('/home/nano/Desktop/images/16062025/23/51/image_16062025_23_51_14_9634.jpg', 2), ('/home/nano/Desktop/images/16062025/23/50/image_16062025_23_51_05_9630.jpg', 2), ('/home/nano/Desktop/images/16062025/23/50/image_16062025_23_50_55_10620.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/51/image_16062025_23_51_45_10618.jpg', '/home/nano/Desktop/images/16062025/23/51/image_16062025_23_51_35_9613.jpg', '/home/nano/Desktop/images/16062025/23/51/image_16062025_23_51_25_10627.jpg', '/home/nano/Desktop/images/16062025/23/51/image_16062025_23_51_14_9634.jpg', '/home/nano/Desktop/images/16062025/23/50/image_16062025_23_51_05_9630.jpg', '/home/nano/Desktop/images/16062025/23/50/image_16062025_23_50_55_10620.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/51/image_16062025_23_51_45_10618.jpg
/home/nano/Desktop/images/16062025/23/51/image_16062025_23_51_35_9613.jpg
/home/nano/Desktop/images/16062025/23/51/image_16062025_23_51_25_10627.jpg
/home/nano/Desktop/images/16062025/23/51/image_16062025_23_51_14_9634.jpg
/home/nano/Desktop/images/16062025/23/50/image_16062025_23_51_05_9630.jpg
/home/nano/Desktop/images/16062025/23/50/image_16062025_23_50_55_10620.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366609187","1366609169","1366609202","1366609165","1366609179","1366609194"],"photo_ids_order":["1366609165","1366609169","1366609179","1366609187","1366609194","1366609202"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1a78453d4795022716d4fad42d55ebfc.jpg","text":"TemporaryFile(/tmp/multipartBody3300545139312121302asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110739527,"filename":"image_16062025_23_51_14_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f721eb8f1075620b9a3459fd93d7e421.jpg","text":"TemporaryFile(/tmp/multipartBody8462404621844378972asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110739527,"filename":"image_16062025_23_51_35_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/792efb31410c8db74f4526343665d7d9.jpg","text":"TemporaryFile(/tmp/multipartBody7071811108792502363asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110739527,"filename":"image_16062025_23_50_55_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/fc7f41d7189e9bd4ec3ca28eb68e6a34.jpg","text":"TemporaryFile(/tmp/multipartBody7910877594532611755asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110739527,"filename":"image_16062025_23_51_45_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/57d37305acca946f7f28b25f0a95b2b1.jpg","text":"TemporaryFile(/tmp/multipartBody6674534721278720291asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110739527,"filename":"image_16062025_23_51_25_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/c7ec56a59345f8d03c2b2adbecd27687.jpg","text":"TemporaryFile(/tmp/multipartBody8062226699052980875asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110739527,"filename":"image_16062025_23_51_05_9630.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366609179","file1":"1366609169","file0":"1366609165","file4":"1366609194","file5":"1366609202","file3":"1366609187"},"map_files_photo_id_array":[{"photo_id":"1366609202","filename":"file5"},{"photo_id":"1366609179","filename":"file2"},{"photo_id":"1366609194","filename":"file4"},{"photo_id":"1366609169","filename":"file1"},{"photo_id":"1366609165","filename":"file0"},{"photo_id":"1366609187","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366609187":["hashtag1","hashtag2"]},{"1366609169":["hashtag1","hashtag2"]},{"1366609202":["hashtag1","hashtag2"]},{"1366609165":["hashtag1","hashtag2"]},{"1366609179":["hashtag1","hashtag2"]},{"1366609194":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366609187, 1366609169, 1366609202, 1366609165, 1366609179, 1366609194)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 96.64934468269348 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:53:03.339664
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/52/image_16062025_23_52_45_10647.jpg', 2), ('/home/nano/Desktop/images/16062025/23/51/image_16062025_23_51_55_9669.jpg', 2), ('/home/nano/Desktop/images/16062025/23/50/image_16062025_23_50_45_9609.jpg', 2), ('/home/nano/Desktop/images/16062025/23/50/image_16062025_23_50_35_9632.jpg', 2), ('/home/nano/Desktop/images/16062025/23/49/image_16062025_23_49_45_9612.jpg', 2), ('/home/nano/Desktop/images/16062025/23/25/image_16062025_23_25_15_10710.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/52/image_16062025_23_52_45_10647.jpg', '/home/nano/Desktop/images/16062025/23/51/image_16062025_23_51_55_9669.jpg', '/home/nano/Desktop/images/16062025/23/50/image_16062025_23_50_45_9609.jpg', '/home/nano/Desktop/images/16062025/23/50/image_16062025_23_50_35_9632.jpg', '/home/nano/Desktop/images/16062025/23/49/image_16062025_23_49_45_9612.jpg', '/home/nano/Desktop/images/16062025/23/25/image_16062025_23_25_15_10710.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/52/image_16062025_23_52_45_10647.jpg
/home/nano/Desktop/images/16062025/23/51/image_16062025_23_51_55_9669.jpg
/home/nano/Desktop/images/16062025/23/50/image_16062025_23_50_45_9609.jpg
/home/nano/Desktop/images/16062025/23/50/image_16062025_23_50_35_9632.jpg
/home/nano/Desktop/images/16062025/23/49/image_16062025_23_49_45_9612.jpg
/home/nano/Desktop/images/16062025/23/25/image_16062025_23_25_15_10710.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366609221","1366609239","1366609230","1366609212","1366609226","1366609246"],"photo_ids_order":["1366609212","1366609221","1366609226","1366609230","1366609239","1366609246"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/9a54fc758eee47762422af2740f4aaf2.jpg","text":"TemporaryFile(/tmp/multipartBody4019284987437473896asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110846068,"filename":"image_16062025_23_51_55_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/679e25cc6abc278d89e33d0b323ced95.jpg","text":"TemporaryFile(/tmp/multipartBody4871968335572906136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110846068,"filename":"image_16062025_23_49_45_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/ae2cea5821cdeca670d15f9e53cc4437.jpg","text":"TemporaryFile(/tmp/multipartBody7165582911436837342asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110846068,"filename":"image_16062025_23_50_35_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/7531fd394a08c4bdb617a3bfc779eb39.jpg","text":"TemporaryFile(/tmp/multipartBody8430430333036248019asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110846068,"filename":"image_16062025_23_52_45_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f922b3c45ea595d79b1cd35a3fbb28c6.jpg","text":"TemporaryFile(/tmp/multipartBody2105265031574411633asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110846068,"filename":"image_16062025_23_50_45_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/1e8955409e0616e8345222c4169e13de.jpg","text":"TemporaryFile(/tmp/multipartBody1958250277431594540asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110846068,"filename":"image_16062025_23_25_15_10710.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366609226","file1":"1366609221","file0":"1366609212","file4":"1366609239","file5":"1366609246","file3":"1366609230"},"map_files_photo_id_array":[{"photo_id":"1366609246","filename":"file5"},{"photo_id":"1366609226","filename":"file2"},{"photo_id":"1366609239","filename":"file4"},{"photo_id":"1366609221","filename":"file1"},{"photo_id":"1366609212","filename":"file0"},{"photo_id":"1366609230","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366609221":["hashtag1","hashtag2"]},{"1366609239":["hashtag1","hashtag2"]},{"1366609230":["hashtag1","hashtag2"]},{"1366609212":["hashtag1","hashtag2"]},{"1366609226":["hashtag1","hashtag2"]},{"1366609246":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366609221, 1366609239, 1366609230, 1366609212, 1366609226, 1366609246)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 99.48932600021362 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:54:47.706278
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/54/image_16062025_23_54_15_10665.jpg', 2), ('/home/nano/Desktop/images/16062025/23/53/image_16062025_23_53_45_10650.jpg', 2), ('/home/nano/Desktop/images/16062025/23/53/image_16062025_23_53_34_9637.jpg', 2), ('/home/nano/Desktop/images/16062025/23/52/image_16062025_23_52_55_9643.jpg', 2), ('/home/nano/Desktop/images/16062025/23/24/image_16062025_23_25_04_9685.jpg', 2), ('/home/nano/Desktop/images/16062025/23/24/image_16062025_23_24_55_9691.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/54/image_16062025_23_54_15_10665.jpg', '/home/nano/Desktop/images/16062025/23/53/image_16062025_23_53_45_10650.jpg', '/home/nano/Desktop/images/16062025/23/53/image_16062025_23_53_34_9637.jpg', '/home/nano/Desktop/images/16062025/23/52/image_16062025_23_52_55_9643.jpg', '/home/nano/Desktop/images/16062025/23/24/image_16062025_23_25_04_9685.jpg', '/home/nano/Desktop/images/16062025/23/24/image_16062025_23_24_55_9691.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/54/image_16062025_23_54_15_10665.jpg
/home/nano/Desktop/images/16062025/23/53/image_16062025_23_53_45_10650.jpg
/home/nano/Desktop/images/16062025/23/53/image_16062025_23_53_34_9637.jpg
/home/nano/Desktop/images/16062025/23/52/image_16062025_23_52_55_9643.jpg
/home/nano/Desktop/images/16062025/23/24/image_16062025_23_25_04_9685.jpg
/home/nano/Desktop/images/16062025/23/24/image_16062025_23_24_55_9691.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1366609274","1366609259","1366609279","1366609270","1366609284","1366609263"],"photo_ids_order":["1366609259","1366609263","1366609270","1366609274","1366609279","1366609284"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d0edde5ce9c637397871320747fad845.jpg","text":"TemporaryFile(/tmp/multipartBody8322151896222461014asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110951685,"filename":"image_16062025_23_52_55_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/6f687fd1ccbc5464860d6856219a08ac.jpg","text":"TemporaryFile(/tmp/multipartBody7165275405541315086asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110951685,"filename":"image_16062025_23_54_15_10665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/f6bd5e71d65fb9edc90e66d4577b86fd.jpg","text":"TemporaryFile(/tmp/multipartBody6317304828142756765asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110951685,"filename":"image_16062025_23_25_04_9685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/abd8af1e98bcd76f1e135ba0f226e455.jpg","text":"TemporaryFile(/tmp/multipartBody5709016340759377472asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110951685,"filename":"image_16062025_23_53_34_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/86483038d8d2074832671c64332fa441.jpg","text":"TemporaryFile(/tmp/multipartBody1352519211567376104asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110951685,"filename":"image_16062025_23_24_55_9691.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/16/d206906089bacb3f0f1e9363adbbc214.jpg","text":"TemporaryFile(/tmp/multipartBody1848392435375854790asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1750110951685,"filename":"image_16062025_23_53_45_10650.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1366609270","file1":"1366609263","file0":"1366609259","file4":"1366609279","file5":"1366609284","file3":"1366609274"},"map_files_photo_id_array":[{"photo_id":"1366609284","filename":"file5"},{"photo_id":"1366609270","filename":"file2"},{"photo_id":"1366609279","filename":"file4"},{"photo_id":"1366609263","filename":"file1"},{"photo_id":"1366609259","filename":"file0"},{"photo_id":"1366609274","filename":"file3"}],"portfolio_id":24047662,"hashtag_by_photo_ids":[{"1366609274":["hashtag1","hashtag2"]},{"1366609259":["hashtag1","hashtag2"]},{"1366609279":["hashtag1","hashtag2"]},{"1366609270":["hashtag1","hashtag2"]},{"1366609284":["hashtag1","hashtag2"]},{"1366609263":["hashtag1","hashtag2"]}],"comms":"Portfolio 24047662 used, photo_id : ArrayBuffer(1366609274, 1366609259, 1366609279, 1366609270, 1366609284, 1366609263)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 111.95616960525513 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-06-16 23:56:46.914239
  port_id : 24047662
  datou_current_id : 3125498
in upload_from_sqlite, uploading in 24047662
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250616 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16062025/23/56/image_16062025_23_56_24_9633.jpg', 2), ('/home/nano/Desktop/images/16062025/23/55/image_16062025_23_56_05_10686.jpg', 2), ('/home/nano/Desktop/images/16062025/23/55/image_16062025_23_55_54_9631.jpg', 2), ('/home/nano/Desktop/images/16062025/23/55/image_16062025_23_55_45_9638.jpg', 2), ('/home/nano/Desktop/images/16062025/23/55/image_16062025_23_55_35_10643.jpg', 2), ('/home/nano/Desktop/images/16062025/23/55/image_16062025_23_55_25_9632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16062025/23/56/image_16062025_23_56_24_9633.jpg', '/home/nano/Desktop/images/16062025/23/55/image_16062025_23_56_05_10686.jpg', '/home/nano/Desktop/images/16062025/23/55/image_16062025_23_55_54_9631.jpg', '/home/nano/Desktop/images/16062025/23/55/image_16062025_23_55_45_9638.jpg', '/home/nano/Desktop/images/16062025/23/55/image_16062025_23_55_35_10643.jpg', '/home/nano/Desktop/images/16062025/23/55/image_16062025_23_55_25_9632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3125498&datou=0
/home/nano/Desktop/images/16062025/23/56/image_16062025_23_56_24_9633.jpg
/home/nano/Desktop/images/16062025/23/55/image_16062025_23_56_05_10686.jpg
/home/nano/Desktop/images/16062025/23/55/image_16062025_23_55_54_9631.jpg
/home/nano/Desktop/images/16062025/23/55/image_16062025_23_55_45_9638.jpg
/home/nano/Desktop/images/16062025/23/55/image_16062025_23_55_35_10643.jpg
/home/nano/Desktop/images/16062025/23/55/image_16062025_23_55_25_9632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
